Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   General Conversation Archives (11/2000 - 01/2005) (http://www.ironworksforum.com/forum/forumdisplay.php?f=28)
-   -   JavaScript help needed!! (http://www.ironworksforum.com/forum/showthread.php?t=75319)

Talthyr Malkaviel 05-25-2002 08:37 PM

If anyone who is patient and knows JavaScript quite fluently, could you please help, I would be very grateful as it always helps to have a second person look at something when it doesn't work.
This is a script I've done so far, can anyone tell me if they can see any glaring mistakes???
BTW, in case you were wondering, yes, the normal brackets around the SCRIPT tags are syupposed to be like that (for now) because JavaScript isn't usable in here of course, but other than that.....
D'oh, and I'v had to temporarily change the eval tags to evl, sorry if this script looks a bit like odds and ends now, but otherwose I can't post it.

(SCRIPT LANGUAGE= "JavaScript")

{
alt0 = new Image();
alt0.src = "basicflip.jpg";

alt1 = new Image();
alt1.src = "homeflip.jpg";

alt2 = new Image();
alt2.src = "otherflip.jpg";

alt3 = new Image();
alt3.src = "other2flip.jpg";

alt4 = new Image();
alt4.src = "guestflip.jpg";

alt5 = new Image();
alt5.src = "thoughtsflip.jpg";

alt6 = new Image();
alt6.src = "mailflip.jpg";

graphic1 = new Image();
graphic1.src = "home.jpg";
graphic1on = new Image();
graphic1on.src = "home.jpg";

graphic2 = new Image();
graphic2.src = "other.jpg";
graphic2on = new Image();
graphic2on.src = "other.jpg";

graphic3 = new Image();
graphic3.src = "other2.jpg";
graphic3on = new Image();
graphic3on.src = "other2.jpg";

graphic4 = new Image();
graphic4.src = "guest.jpg";
graphic4on = new Image();
graphic4on.src = "guest.jpg";

graphic5 = new Image();
graphic5.src = "thought.jpg";
graphic5on = new Image();
graphic5on.src = "thought.jpg";

graphic6 = new Image();
graphic6.src = "mail.jpg";
graphic6on = new Image();
graphic6on.src = "mail.jpg";
}

function imageChange(imageID,imageName,imageID2,imageName2, imageID3,imageName3,imageID4,imageName4,imageID5,i mageName5,imageID6,imageName6)
{

{
document.images[ImageID].src = evl(imageName + ".src");
document.images[ImageID2].src = evl(imageName2 + ".src");
document.images[ImageID3].src = evl(imageName3 + ".src");
document.images[ImageID4].src = evl(imageName4 + ".src");
document.images[ImageID5].src = evl(imageName5 + ".src");
document.images[ImageID6].src = evl(imageName6 + ".src");
}

}
(/SCRIPT)

Talthyr Malkaviel 05-25-2002 09:06 PM

Hmm... it's doing those old tricks again, it's got the title of my thread, but Rudy's overclocking one.
D'oh!

EDIT: A-ha! Posting in it seemed to do the job!

[ 05-25-2002, 09:07 PM: Message edited by: Talthyr Malkaviel ]

Talthyr Malkaviel 05-25-2002 09:24 PM

One shameless bump before I go and try to catch a little sleep.

RudeDawg 05-25-2002 10:06 PM

Can't find any mistakes...
I'd prefer if you used a text editor to place the exact script in a .txt file and sent it to me for proofing... I may find the mistake then...
BTW, what DID happen to my post? [img]graemlins/saywhat.gif[/img]

Talthyr Malkaviel 05-26-2002 07:24 AM

Cheers for the help, and I'll probably go send the part of the file to you if that's ok.
And I have absolutely no idea what happened to your thread, but it's happened before which is annoying.


All times are GMT -4. The time now is 08:15 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved