View Full Version : More than one body onload tag? Is it possible? Also need help finding a certain clock
AgaBoogaBoo
05-31-2003, 02:35 AM
Well, with two body onload tags, my javascript can't be run correctly. I either need one of the following:
1. A way to run two body onload tags without interference
OR
2. A clock script that updates every minute, does not use a form, does not display within a button, and does not use the body onload tag.
liorean
05-31-2003, 02:41 AM
You aren't allowed to have more than one body tag. You are not allowed to have more than one onload attribute on that tag. However, you can insert several function calls in that attribute, like this:
<body onload="function1();function2();...;functionn();">
AgaBoogaBoo
05-31-2003, 04:11 AM
Thats not working for me. It still is only letting one of the two scripts use it.
The first script, has this in it:
onload = "scroller.init();"
which is found at the end of the script. The other script is a clock script which uses the body onload tag as well.
liorean
05-31-2003, 04:31 AM
Think you could send us the URL so that we could have a look at it?
AgaBoogaBoo
05-31-2003, 03:55 PM
Alright, give a day or so and I'll put it up. I still have some work to do on it that I can hoefully finish to night.
AgaBoogaBoo
06-02-2003, 05:20 AM
Actually, give me more like 3 or 4 days because of finals. I'll update this thread when its ready.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.