Need some help with my scrolling marquee. Only works after mouseover

Discussion in 'JavaScript' started by ratinakage, Nov 14, 2008.

  1. #1
    Hi guys,

    I am pretty new to Javascript. I pulled some code of a tutorial website to make a scrolling marquee, then adjusted it to the size of my images. It seems to work OK.

    The only problem is, it only starts working when you put your mouse over it. I need to start scrolling automatically when the page is loaded.

    Does anyone know how I need to alter the script to make this happen?

    I put up the site on:

    http://djpsyguy.com/marqueetest/
    http://djpsyguy.com/marqueetest/marquee.js - that's the javascipt.
    http://djpsyguy.com/marqueetest/test.zip - the test site complete with images, if you feel like messing around...


    Any help would be much appreciated.

    Thanks!!
    G
     
    ratinakage, Nov 14, 2008 IP
  2. cc2365

    cc2365 Member

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Try adding this line to the bottom of the *.js file:

    window.onload = mqRotate(mqr);
     
    cc2365, Nov 16, 2008 IP