keldance
09-10-2002, 04:59 PM
I put a JavaScript scroll bar on my page, and it is set inside a table cell. There must be a way for me to change the script to remove the bottom scroll bar and leave the one on the right hand side. I won't need the bottom one. Could someone please read this script and tell me what to do?
(my content and table is within this section)
<ilayer name="scroll1" width=575 height=354 clip="0,0,575,354">
<layer name="scroll2" width=575 height=354 bgColor="null">
<div id="scroll3" style="width:575;height:354;background-color:null;overflow:scroll">
</div>
</div>
</layer>
</ilayer>
(this script is right after my table)
<script>
var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
scrolldoc.top+=10
temp2=setTimeout("up()",50)
}
function down(){
if (!document.layers) return
if (scrolldoc.top-354>=scrolldoc.document.height*-1)
scrolldoc.top-=10
temp=setTimeout("down()",50)
}
function clearup(){
if (window.temp2)
clearInterval(temp2)
}
function cleardown(){
if (window.temp)
clearInterval(temp)
}
</script>
<span style="display:none"><a href="#" onMousedown="up()"
onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
onMousedown="down()" onMouseup="cleardown()" onClick="return false"
onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+354;return false">Bottom</a></span>
Thank you!
(my content and table is within this section)
<ilayer name="scroll1" width=575 height=354 clip="0,0,575,354">
<layer name="scroll2" width=575 height=354 bgColor="null">
<div id="scroll3" style="width:575;height:354;background-color:null;overflow:scroll">
</div>
</div>
</layer>
</ilayer>
(this script is right after my table)
<script>
var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
scrolldoc.top+=10
temp2=setTimeout("up()",50)
}
function down(){
if (!document.layers) return
if (scrolldoc.top-354>=scrolldoc.document.height*-1)
scrolldoc.top-=10
temp=setTimeout("down()",50)
}
function clearup(){
if (window.temp2)
clearInterval(temp2)
}
function cleardown(){
if (window.temp)
clearInterval(temp)
}
</script>
<span style="display:none"><a href="#" onMousedown="up()"
onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
onMousedown="down()" onMouseup="cleardown()" onClick="return false"
onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+354;return false">Bottom</a></span>
Thank you!