Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

marquee javascript

Thread Tools
 
Search this Thread
 
Old 21 November 2007, 10:44 PM
  #1  
wwp8
Scooby Regular
Thread Starter
 
wwp8's Avatar
 
Join Date: Nov 2001
Location: sheffield
Posts: 4,093
Likes: 0
Received 0 Likes on 0 Posts
Default marquee javascript

can anyone help me

whats the html/java code for scrolling text from bottom to up continuously, at a slow pace, and for it to stop when the mouse goes over it?
Old 22 November 2007, 12:10 PM
  #2  
AllenJ
Scooby Regular
 
AllenJ's Avatar
 
Join Date: Mar 2004
Posts: 752
Likes: 0
Received 0 Likes on 0 Posts
Default

Remove the comment tag and voila.

On load of the page the scroller fires off javascrit to start your marquee, when you place the mouse over the text it stops, once removed, voila.

Hope that helps.

<!--html>
<head>
</head>
<body onLoad="javascript:scroller.start();">
<marquee id="scroller" style="background-color:lightyellow;border:1px solid black"
onMouseover="this.scrollAmount=0" onMouseOut="this.scrollAmount=5">Hi there</marquee><br>


<script>
if (document.all)
scroller.stop()
</script>
</html-->
Old 22 November 2007, 12:13 PM
  #3  
AllenJ
Scooby Regular
 
AllenJ's Avatar
 
Join Date: Mar 2004
Posts: 752
Likes: 0
Received 0 Likes on 0 Posts
Default

For text to go from bottom up add -- direction=up -- as an attribute to the marquee tag.
Old 22 November 2007, 06:19 PM
  #4  
wwp8
Scooby Regular
Thread Starter
 
wwp8's Avatar
 
Join Date: Nov 2001
Location: sheffield
Posts: 4,093
Likes: 0
Received 0 Likes on 0 Posts
Default

thx, just wondering is there a way to slow it down a tiny bit?
Old 23 November 2007, 10:00 AM
  #5  
AllenJ
Scooby Regular
 
AllenJ's Avatar
 
Join Date: Mar 2004
Posts: 752
Likes: 0
Received 0 Likes on 0 Posts
Default

To slow it down, reduce the value of the ScrollAmount i.e ScrollAmount = 1
Old 23 November 2007, 08:59 PM
  #6  
wwp8
Scooby Regular
Thread Starter
 
wwp8's Avatar
 
Join Date: Nov 2001
Location: sheffield
Posts: 4,093
Likes: 0
Received 0 Likes on 0 Posts
Default

it seems ok now, it starts off fast until you roll your mouse over it, then it goes slow thx anyway
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
astraboy
Non Scooby Related
7
12 August 2003 11:21 AM



Quick Reply: marquee javascript



All times are GMT +1. The time now is 03:49 PM.