Her Hansi
Taget fra min hjemmeside på hjem.get2net.dk/EJMJ
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<script>
/********************************************************************************
This script is made by and copyrighted to Thomas Brattli at
www.bratta.comVisit for more great scripts.
This may be used freely as long as this msg is intact!
********************************************************************************
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0
//If you want it to move faster you can set this lower:
var speed=50
//Sets variables to keep track of what's happening
var loop, timer
//Object constructor
function makeObj(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
this.scrollHeight=n?this.css.document.height:eval(obj+'.offsetHeight')
this.up=goUp
this.down=goDown
this.obj = obj + "Object"
eval(this.obj + "=this")
return this
}
//Makes the object go up
function goDown(move){
if(parseInt(this.css.top)>-this.scrollHeight+contHeight){
this.css.top=parseInt(this.css.top)-move
if(loop) timer=setTimeout(this.obj+".down("+move+")",speed)
}
}
//Makes the object go down
function goUp(move){
if(parseInt(this.css.top)<0){
this.css.top=parseInt(this.css.top)+move
if(loop) timer=setTimeout(this.obj+".up("+move+")",speed)
}
}
//Stops the scrolling (called on mouseout)
function noScroll(){
loop=false
clearTimeout(timer)
}
//Makes the object
function scrollInit(){
contHeight=ie?divCont.style.pixelHeight:document.divCont.clip.bottom;
oScroll=makeObj('divText','divCont')
}
</SCRIPT>
<BODY onLoad="scrollInit()" link="ffffff" vlink="ffffff" alink="ffffff">
<div id="divCont" style="position:absolute; width:720; height:410; top:137; left:55; z-index: 10; background: ffffff; clip:rect(0,720,410,0)">
<div id="divText" style="position:relative; top:3; left:3; width:716">
Fyld tekst ind her
</div>
</div>
<div id="divUp" style="position:absolute; left:40; top:120; width=750; background=000000; height=10">
<TABLE BORDER="0" CELLSPACING=3 CELLPADDING=0 width=100%><TR>
<TD width=33% align=left> <a href="#" onmouseover="loop=true; oScroll.up(2)" onmouseout="noScroll()" class=mover>slow</a></TD>
<TD width=33% align=center> <a href="#" onmouseover="loop=true; oScroll.up(7)" onmouseout="noScroll()" class=mover>medium</a></TD>
<TD width=33% align=right> <a href="#" onmouseover="loop=true; oScroll.up(15)" onmouseout="noScroll()" class=mover>fast</a></TD>
</TR>
<TR>
<TD width=15 bgcolor="000000">
<TD width=620 height=410>
<TD width=15 bgcolor="000000">
</TR>
<TR>
<TD width=33% align=left> <a href="#" onmouseover="loop=true; oScroll.down(2)" onmouseout="noScroll()" class=mover>slow</a></TD>
<TD width=33% align=center> <a href="#" onmouseover="loop=true; oScroll.down(7)" onmouseout="noScroll()" class=mover>medium</a></TD>
<TD width=33% align=right> <a href="#" onmouseover="loop=true; oScroll.down(15)" onmouseout="noScroll()" class=mover>fast</a></TD>
</TR>
</TABLE>
</div>