Skip to content Skip to sidebar Skip to footer

Marquee Stop Onload

silly question, but I've tried with and without javascript, and I don't seem to be able to stop the marquees by default. Basically I want them to start moving on mousover, but to b

Solution 1:

Try this

<marquee class="tracks_marquee" behavior="alternate" scrollamount="0"  >
  some text here
</marquee>



   $(document).ready(function()
{
$(".tracks_marquee").hover
  (
    function()
    {
       $(this).attr("scrollamount","1");
       $(this).start();  
    },
    function()
    {
       $(this).attr("scrollamount","0");
       $(this).stop();
    }
  )
})

Check this live in fiddle

http://jsfiddle.net/BM2Cq/


Post a Comment for "Marquee Stop Onload"