Følgende javascript gør at man får en vertikal og horisontal
scroll bar på en tabel. Spørgsmålet er, hvordan fjerner man
horisontale scroll bar?
<!-- Begin scrollable text code -->
<table class="800austerpaul" bgcolor="fc9804" width="647"
heigth="313" cellpadding="">
<tr>
<td height="313">
<ilayer name="scroll1" width=647 height=313
clip="0,0,230,150">
<layer name="scroll2" width=647 height=313 bgcolor="fc9804">
<div id="scroll3"
style="width:647;height:313;background-color:fc9804;overflow:scro
ll">
<font color="#990000"><h3>Paul Auster</h3></font>
</div>
</layer>
</ilayer>
<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-150>=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>
<center><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)+150;return
false">Bottom</a></span></center>
</td>
</tr>
</table>
<!-- End scrollable text code -->
Hilsen Torben
--
KONKURRENCE PÅ HTML.dk:
fortæl hvordan din drømmeeditor ser ud
og vind luksus webhoteller fra Wannafind
KLIK HER! =>
http://www.html.dk/editor