Current location: Hot Scripts Forums » General Web Coding » JavaScript » marquee click event


marquee click event

Reply
  #1 (permalink)  
Old 10-11-06, 11:00 AM
Anisking Anisking is offline
Newbie Coder
 
Join Date: Sep 2006
Location: Chennai
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Question marquee click event

hi,
do u know at the time of using marquee, how to stop when the mouse pointer go to inside that marquee box? those scrolling text which has a link for click
Reply With Quote
  #2 (permalink)  
Old 10-11-06, 11:03 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Topic moved to Javascript.
Reply With Quote
  #3 (permalink)  
Old 10-11-06, 08:09 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
<head>
<script>

function initStopper(){
  var marquee = document.getElementById('myScroller')
  marquee.onmouseover = stopScroller
  marquee.onmouseout = startScroller
}

function startScroller(){
  document.getElementById('myScroller').start()
}

function stopScroller(){
  document.getElementById('myScroller').stop()
}
</script>
</head>
<body onload="initStopper()">
<marquee id="myScroller" ..... >
</body>
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i output something the moment i click on an option under select tag? d_maniger06 JavaScript 2 06-10-06 01:07 PM
Resellers: Don't click here...if all you want is cheap hosting vortech General Advertisements 0 07-06-05 01:17 PM
One click multimedia downloads? LittleWildheart JavaScript 2 10-11-04 12:10 PM
Single click refreshing with target of _top Deezul ASP 0 09-22-04 06:57 PM


All times are GMT -5. The time now is 11:20 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.