Search code examples
htmlcsstextmarquee

Controlling the marquee text


I have seen in many websites that the text which is flowing stops as soon as we hover our mouse over it , like in this site ,http://www.sofworld.org, how is it done ?


Solution

  • See the source code of that page ,

    <marquee 
     onmouseout="this.setAttribute('scrollamount', 6, 0);" 
     onmouseover="this.setAttribute('scrollamount', 0, 0);"
     scrolldelay="150" scrollamount="6">
      Text
    </marquee>