Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Brain HURTZ: two window.onload?

    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/showthre...266#post402266

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

    Thanks,
    PoJ

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    You will find a very good tutorial at
    http://www.javascriptkit.com/javatut...iplejava.shtml

  • #3
    New Coder
    Join Date
    Jan 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


    Code:
    <SCRIPT type="text/javascript" language="javascript1.2" 
    SRC="http://www.cnsnews.com/ticker/horizontal_code.js"></SCRIPT>
    Code:
     <script type="text/javascript" language="javascript" src="calendar.js"></script>
    Any idea?
    I will check that site out... thanks for the link.

    Thanks,
    poJ

  • #4
    New Coder
    Join Date
    Jan 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Solved

    I figured it out... there was a window.onload event on the marquee javascript which is called from a url.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •