View Single Post
Old 05-25-2002, 08:37 PM   #1
Talthyr Malkaviel
Ma'at - Goddess of Truth & Justice
 

Join Date: August 31, 2001
Location: Land of the Britons
Age: 38
Posts: 3,224
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)
__________________
Resident cantankerous sorcerer of the Clan HADB<br />and Sorcerous Nuttella salesman of the O.R.T<br /> <br /><br />Say NO to the Trouser Tyranny! Can I drill you about this?
Talthyr Malkaviel is offline