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 Nov 21, 2007 | 10:44 PM
  #1  
wwp8's Avatar
wwp8
Thread Starter
Scooby Regular
 
Joined: Nov 2001
Posts: 4,093
Likes: 0
From: sheffield
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?
Reply
Old Nov 22, 2007 | 12:10 PM
  #2  
AllenJ's Avatar
AllenJ
Scooby Regular
 
Joined: Mar 2004
Posts: 752
Likes: 0
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-->
Reply
Old Nov 22, 2007 | 12:13 PM
  #3  
AllenJ's Avatar
AllenJ
Scooby Regular
 
Joined: Mar 2004
Posts: 752
Likes: 0
Default

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

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

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

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




All times are GMT +1. The time now is 10:38 AM.