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 to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding onmouseover event to asp script

    Hi there, I am calling in a dynamic news ticker that will be updated by some of my users. It is called in via an include page and the main script in the body tag is as follows

    <form name="form1" method="post" action="">
    <%
    While ((Repeat1__numRows <> 0) AND (NOT rs_news.EOF))
    %>
    <A HREF="news_story.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "news_id=" & rs_news.Fields.Item("news_id").Value %>" class="librarysubmenu"><%=(rs_news.Fields.Item("news_title").Value)%> </A> |

    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs_news.MoveNext()
    Wend
    %>


    </form>


    This is inside simple marquee tags so it scrolls across the page. I need to know if it is possible to put in a onmouseover script to pause the marquee when a user has their mouse over one of the news stories that scroll by?

    I know there a loads of scripts out there which have this effect but as this ticker is pulling the info from a database im not to sure to work my way round it.

    Regards

    Mat

  • #2
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok scrap that question now, Just added the following code to the marquee tag and its working. Should of tried harder I guess

    onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3"

  • #3
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Then there is always javascripts builtin stop() & start() functions....

    <marquee onmouseover="stop()" onmouseout="start()">xxxxxx</marquee>


  •  

    Posting Permissions

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