...

View Full Version : Brain HURTZ: two window.onload?



prophetofjah
01-29-2006, 07:54 AM
Howdy,
I got this code... I have been pouring over it like mad. I cant figure this out:(

Supposedly there are two functions that should run when my page's window loads. One for my clock and one for my new ticker. I can locate the clock function on window.onload, but not the one for the marquee that would stop it from working.

Right now the way the code is show on my post: http://www.codingforums.com/showthread.php?p=402266#post402266

The marquee is working, but the clock is not. What am I doing wrong?

Thanks,
PoJ

Philip M
01-29-2006, 09:13 AM
You will find a very good tutorial at
http://www.javascriptkit.com/javatutors/multiplejava.shtml

prophetofjah
01-29-2006, 10:17 AM
Philip,
Thank you so much for the help. I went through the tutorial. The thing is there is no "<body ONLOAD" and there is only one "window.onload". This is why I am confused. Depending on what order I have them in, the script coded first is the one that will work.



<SCRIPT type="text/javascript" language="javascript1.2"
SRC="http://www.cnsnews.com/ticker/horizontal_code.js"></SCRIPT>


<script type="text/javascript" language="javascript" src="calendar.js"></script>

Any idea?
I will check that site out... thanks for the link.

Thanks,
poJ

prophetofjah
01-30-2006, 03:29 AM
I figured it out... there was a window.onload event on the marquee javascript which is called from a url.

Thanks :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum