Tekstboks


This script allows you to compact any content and confine it within a scrollable mini "window". Save valuable document space while making your page more "interactive". You could use this script in all sorts of ways to enhance your Web pages!

Up | Down | Top | Bottom

 

 

Sett scriptet mellom HEAD-taggene:
Marker teksten

 

Oppsettet til boksen:
<ilayer name="scroll1" width=170 height=150 clip="0,0,170,150">
<layer name="scroll2" width=170 height=150 bgColor="yellow">
<div id="scroll3" style="width:170;height:150;background-color:yellow;overflow:scroll" style="padding:8;text-align:left;">
Tekst, blah blah....
</div>
</layer> </ilayer>
</div>
<br>
<span style="display:none" style=&{nsstyle};><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>