View Full Version : Adding onmouseover event to asp script

06-29-2004, 05:21 PM
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> |



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.



06-29-2004, 05:50 PM
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"

Willy Duitt
06-29-2004, 07:29 PM
Then there is always javascripts builtin stop() & start() functions....

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