Closed Thread Icon

Preserved Topic: Body onload (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18243" title="Pages that link to Preserved Topic: Body onload (Page 1 of 1)" rel="nofollow" >Preserved Topic: Body onload <span class="small">(Page 1 of 1)</span>\

 
Dark
Neurotic (0) Inmate
Newly admitted
posted posted 08-17-2001 19:41

<BODY onLoad="goforit()" "preload('home_back.jpg')">
_____________________________________________________________________________

Ok the "goforit()" is on thing....and the preload is another, am I missing anything? I cant tell if it is preloading the image or not. It feels like I am missing something in the code, I understand you have to combine the onload functions to get 2 javascripts to work, right?





[This message has been edited by Dark (edited 08-17-2001).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-17-2001 19:45

If you want to do multiple things, you put them all in the same set of quotes, separated by semicolons. Just as though it's a tiny little script with multiple statements - which is, in fact, the case.

<body onload="goforit(); preload('http://www.angelfire.com/ego/lts/home_back.jpg')">

Putting another set of quotes is like doing

<p align="center" "right"> or <div class="bigfont" "redlinks">

just doesn't really make sense. The entire onload event goes in one set of quotes.

Dark
Neurotic (0) Inmate
Newly admitted
posted posted 08-17-2001 19:46

Thanks so much slime

« BackwardsOnwards »

Show Forum Drop Down Menu