Closed Thread Icon

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

 
Deviant
Bipolar (III) Inmate

From: the states
Insane since: Aug 2000

posted posted 09-12-2000 22:18

How to you make multiple commands load with the Onload Command <BODY Onload="blahh()"....??

-Deviant

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-13-2000 01:01

Well first of all, if you're going to use any capitalization at all, use onLoad, which is proper - the "on" is never the capitalized letter. It should all work, but use one of these:

onload
ONLOAD
onLoad

Shouldn't matter anyway, but I believe those are what are *supposed* to be supported.

Anyway, You can either do one of the following:

onLoad="firststatement; secondstatement; thirdstatement;"

a statement can be *anything*, like a function call or a variable assignment, or whatever you want it to be. The other way of doing it, which I prefer, is this:

<script etc etc>
function init()
{
statementone;
statementtwo;
statementthree;
}
</script>

(that goes wherever you want it to)

<body onload="init();">

Does that help?

Deviant
Bipolar (III) Inmate

From: the states
Insane since: Aug 2000

posted posted 09-13-2000 16:53

Yes.. and no. See the scripts that im trying to load are the swarm script, and a random quote generator. And one will load but not the other. Can I send you my script so you can take a look at it? or should I pot it here? I need major help.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 09-13-2000 17:41

use a comma , to seperate the commands.

onload="init(),swarm(),quote()" that would do what you are looking for I believe.

Deviant
Bipolar (III) Inmate

From: the states
Insane since: Aug 2000

posted posted 09-13-2000 20:12

Thanks that worked.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-13-2000 23:02

Augh! A comma? What the heck? How does that work? I've never... what the ...

I'd think it would be semicolons, they're what I always used, and what are supposed to separate statements.

Oh well. I don't care anymore.

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 09-14-2000 09:06

Yes, commas won't work. If they worked before, that was only because they were not exposed to the combined doubting power of both Slime and myself, which should be enough to stop any script in it's tracks! There! This,will,not,work. This;should;work;great! Sorry about that!

Your pal, -doc-

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-14-2000 21:14

Ah, yes, that must have been the reason.

« BackwardsOnwards »

Show Forum Drop Down Menu