Author Topic: Need some scripting help for cycling images+links+user interface.  (Read 5761 times)

0 Members and 1 Guest are viewing this topic.

fesworks

  • Administrator
  • *****
  • Posts: 923
    • View Profile
    • http://www.fesworks.com
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?

Omega0

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://omega0.xepher.net
Need some scripting help for cycling images+links+user interface.
« Reply #1 on: February 01, 2007, 09:32:49 pm »
I believe this bit of code from the .js performs the magic
Code: [Select]
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

fesworks

  • Administrator
  • *****
  • Posts: 923
    • View Profile
    • http://www.fesworks.com
Need some scripting help for cycling images+links+user interface.
« Reply #2 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!

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,328
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Need some scripting help for cycling images+links+user interface.
« Reply #3 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.

fesworks

  • Administrator
  • *****
  • Posts: 923
    • View Profile
    • http://www.fesworks.com
Need some scripting help for cycling images+links+user interface.
« Reply #4 on: February 03, 2007, 12:43:55 am »
ooo fun :D, I'll see what I can do with this.