SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2011
    Location
    India
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    marquee tags ... want to control my text on mouseover...

    Hi,

    I m using below tags in my website for Latest News section for that I am using Marquee Tags below, but the content is scrolling up on mouseover it should stop there n there and should start when on mouseout, please have a look and let me know where i am going wrong..

    <div id="scroller">
    <marquee class="textscroller" direction="up" scrollamount="2" onMouseOver="stop" onMouseOut="start" loop="8">
    <a href="#"> ththt thtt tht tht tht tht tht sgh gdg sddkks sjffjf k </a>
    </marquee>
    </div> <!-- end scroller -->

    other way:

    <div id="scroller">
    <marquee class="textscroller" direction="up" scrollamount="2" onMouseOver="this.scrollamount='0'" onMouseOut="this.scrollamount'2'">
    <a href="#"> ththt thtt tht tht tht tht tht sgh gdg sddkks sjffjf k </a>
    </marquee>
    </div> <!-- end scroller -->

    please revert at the earliest..

    Warm Regards,

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,786
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    There is no such thing as a marquee tag in HTML - that is a proprietary tag that only some browsers have implemented and they don't all implement it the same way.

    To get a marquee that works properly across all browsers you should use JavaScript to generate it - see http://www.felgall.com/jstip109.htm for an example.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Tags for this Thread

Bookmarks

Posting Permissions

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