H
Heavens.To.Murgatroid
Using SM 1.1
I have a very simple automatic scroll. See below. What I want to do
is have a mouse on to stop/pause the scrolling and mouse off to
restart it. Plus I want to be able to use it for sending out my clubs
newsletters.
So, could someone tell me what I would need to do this? And can you
explain it in simple terms.
Thanks
scroll script
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>3</title>
</head>
<body onload="initialize()">
<script><head>
<script><head>
<script></script>
<script language="JavaScript1.2">var
currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+1
else
currentpos=window.pageYOffset+1
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",40)
}
</script> <br>
I have a very simple automatic scroll. See below. What I want to do
is have a mouse on to stop/pause the scrolling and mouse off to
restart it. Plus I want to be able to use it for sending out my clubs
newsletters.
So, could someone tell me what I would need to do this? And can you
explain it in simple terms.
Thanks
scroll script
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>3</title>
</head>
<body onload="initialize()">
<script><head>
<script><head>
<script></script>
<script language="JavaScript1.2">var
currentpos=0,alt=1,curpos1=0,curpos2=-1
function initialize(){
startit()
}
function scrollwindow(){
if (document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if (alt==0)
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+1
else
currentpos=window.pageYOffset+1
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",40)
}
</script> <br>