Xepher.Net Forums

Community => Knowhow Trading Post => Topic started by: fesworks on February 01, 2007, 07:31:50 PM

Title: Need some scripting help for cycling images+links+user interface.
Post by: fesworks on February 01, 2007, 07:31:50 PM
Basically, I'd like to know if anyone can do this:

http://www.cornstalker.com/comics/cornbox/cornbox-light.html

The Cornstalkers have this on their pages in some place... this one is on the bottom left:
http://goforit.comicgen.com/

I mean, I can copy the code easily, but what I can't figure out is from the code I copied, is how they are linked together with the text and buttons! All the image and text locations seem to be somewhere else and not in the code, so I don't know how they did it.

If anyone can adapt this code to exist together, or can tell me how to complete it (like a couple examples, then I can add more on my own), that would be awesome, but I understand this might be difficult.

What I'd like to do, once I get the base code to, was to put together the same idea, only for "Xepher Comics" or something. Webcomickers on Xepher could put it in their links page if they'd like, or whatever.... Possibly to use the 468x60 ad banners instead of the avatar size.

But that's my idea. If I could figure out the Base code, I could compile all the images and text and fine tuning.

Anyone have any thoughts?
Title: Need some scripting help for cycling images+links+user interface.
Post by: Omega0 on February 01, 2007, 09:32:49 PM
I believe this bit of code from the .js performs the magic
function getcornboxes()
{
crequest.open('GET', './cornbox.xml',true);
crequest.onreadystatechange = parseInfoC;
crequest.send(null);

}
by yanking data in from this file: http://www.cornstalker.com/comics/cornbox/cornbox.xml
Title: Need some scripting help for cycling images+links+user interface.
Post by: fesworks on February 01, 2007, 10:47:44 PM
Cool! I'll check that out! May take a while to figure out and implement, but this is what I was looking for! :D

Thanks!
Title: Need some scripting help for cycling images+links+user interface.
Post by: Xepher on February 02, 2007, 07:35:12 PM
Umm... that's just the function calls. You need the entire .js file that defines those functions. http://www.cornstalker.com/comics/cornbox/cornbox2.js

I'm not that great with Java, so I probably can't help you deconstruct it too well.
Title: Need some scripting help for cycling images+links+user interface.
Post by: fesworks on February 03, 2007, 12:43:55 AM
ooo fun :D, I'll see what I can do with this.