Scroll funktion
HalloEr der nogen som har tid og lyst til at forklare mig hvor man kan redigere størrelsen på området i hvor man kan scrolle i dette script samt bestemme hvor mange linier man kan scrolle på:
<TABLE WIDTH=\"520\" HEIGHT=\"400\" BORDER=\"0\" BGCOLOR=\"#E8EBEC\" id=\"branding\" style=\"position:absolute; visibility:show; left:10px; top:60px; z-index:0\">
<tr bgcolor=#E8EBEC><TD STYLE=\"text-align:left;font-size:x-small;text-decoration:none;font-weight:bold;\"></td></tr></table>
<script language=\"JavaScript1.2\">
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=12
if (iens6){
document.write(\'<div id=\"container\" style=\"position:absolute;width:520;height:400;border:0px solid black;overflow;hidden;visibility:show;left:10px; top:60px; z-index:3\">\')
document.write(\'<div id=\"content\" style=\"position:absolute;width:520;left:5;top:60;visibility:show;z-index:3;border:0px solid;\">\')
}
</script>
<ilayer name=\"nscontainer\" width=520 height=400 clip=\"0,0,175,160\">
<layer name=\"nscontent\" width=520 height=400 visibility=hidden>
<!--INSERT CONTENT HERE-->
Tekst...........
<!--END CONTENT-->
</layer>
</ilayer>
<script language=\"JavaScript1.2\">
if (iens6)
document.write(\'</div></div>\')
</script>
<script LANGUAGE=\"javascript\"><!--
function over(img) {
img.src=\"pictures/pilop_ne.gif\";
}
function out(img) {
img.src=\"pictures/pilop_op.gif\";
}
//-->
</SCRIPT>
<script LANGUAGE=\"javascript\"><!--
function over2(ima) {
ima.src=\"pictures/pilne_ne.gif\";
}
function out2(ima) {
ima.src=\"pictures/pilne_op.gif\";
}
//-->
</SCRIPT>
<table width=\"410px\"><tr><td><div id=\"object1\" style=\"position:absolute; visibility:show; left:512px; top:160px; z-index:2\">
<a href=\"#\" onMouseover=\"moveup();over(img1);\" onMouseout=\"clearTimeout(moveupvar);out(img1);\"><img src=\"pictures/pilop_op.gif\" border=0 NAME=\"img1\"></a></div> <BR><div id=\"object1\" style=\"position:absolute; visibility:show; left:512px; top:370px; z-index:2\"><a href=\"#\" onMouseover=\"movedown();over2(ima1);\" onMouseout=\"clearTimeout(movedownvar);out2(ima1);\"><img src=\"pictures/pilne_op.gif\" border=0 NAME=\"ima1\"></a></div></td></tr>
</table>
<script language=\"JavaScript1.2\">
if (iens6){
var crossobj=document.getElementById? document.getElementById(\"content\") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout(\"movedown()\",100)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout(\"moveup()\",100)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility=\"show\"
}
window.onload=getcontent_height
</script><!--webbot bot=\"HTMLMarkup\" endspan -->
