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 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2006
    Location
    Illinois
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer How to Make Marquee Pause onMouseOver

    Hi,
    We have a marquee that we use occasionally at work when we want to announce something important. The text is dynamic and will sometimes contain links. I need to make it so that the marquee stops when you mouseover it and then begins again when you mouseout. I can get this to work just fine. The problem is, I want the pause to happen when you hover over the text ONLY, not the entire 690 width TD! I tried wrapping a span around the text and putting an action on it, but the marquee still stops even when you have your cursor out in never-never land to the right. Does anyone know how to make this work in IE without using a huge JavaScript file like on Dynamic Drive?

    Code:
    <td width="690" valign="middle" class="headerNewsFlash">
    	<marquee onMouseOver="this.stop();" onMouseOut="this.start();" scrolldelay="0" scrollamount="4">News Flash Text Goes Here</marquee>
    </td>
    Thanks!
    Sarah

  • #2
    New Coder
    Join Date
    Aug 2006
    Location
    Illinois
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    No-break tag to the rescue! In case anyone is interested, here is how I was able to get this to work. I have no idea if it works on non-IE browsers, but this is an internal site so I can get away with it.

    Code:
    <td width="690" valign="middle" class="headerNewsFlash">
    	<marquee id="newsFlash" scrolldelay="0" scrollamount="4"><div style="width: 0px" onMouseOver="newsFlash.stop();" onMouseOut="newsFlash.start();"><nobr>News Flash Text Goes Here</nobr></div></marquee>
    </td>
    Sarah

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Location
    Illinois
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for this post! I was able to get my marquee to pause on mouseover. Works great in IE8 but does not pause with Firefox.

    Again, thanks - I was able to get what I needed.


  •  

    Posting Permissions

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