scroll in tabelle

coolscout

Mitglied
Hi,
also ich suche ein script das es ermöglicht in einer art tabelle oder sonst nem feld mit vorgegebener größe zu scrollen.
Am besten mit text oder buttons mit mouseover also keine scrollbar.
Kennt da jemand ein script?
Bitte helft mir.
Danke!
cool
 
hi,
nen kleinen horizontal scroller?

naja suche mal hier im forum, weil das thema schon besprochen wurde oder

<script language="JavaScript">
<!--
// begin absolutely positioned scrollable area object scripts
function verifyCompatibleBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
bw=new verifyCompatibleBrowser()


var speed=100

var loop, timer

function ConstructObject(obj,nest){
nest=(!nest) ? '':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
this.up=MoveAreaUp;this.down=MoveAreaDown;
this.MoveArea=MoveArea; this.x; this.y;
this.obj = obj + "Object"
eval(this.obj + "=this")
return this
}
function MoveArea(x,y){
this.x=x;this.y=y
this.css.left=this.x
this.css.top=this.y
}

function MoveAreaDown(move){
if(this.y>-this.scrollHeight+objContainer.clipHeight){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+".down("+move+")",speed)
}
}
function MoveAreaUp(move){
if(this.y<0){
this.MoveArea(0,this.y-move)
if(loop) setTimeout(this.obj+".up("+move+")",speed)
}
}

function PerformScroll(speed){
if(initialised){
loop=true;
if(speed>0) objScroller.down(speed)
else objScroller.up(speed)
}
}

function CeaseScroll(){
loop=false
if(timer) clearTimeout(timer)
}
var initialised;
function InitialiseScrollableArea(){
objContainer=new ConstructObject('Container')
objScroller=new ConstructObject('Content','Container')
objScroller.MoveArea(0,0)
objContainer.css.visibility='visible'
initialised=true;
}
//-->
</script>

in den <head>..</head>
in den body: onLoad="InitialiseScrollableArea()"

<div id="UpControl" style="position:absolute; width:5px; left:919px; top:130px; z-index:1; text-align: left; height: 5px"><a href="javascript:;" onMouseOver="PerformScroll(-7)" onMouseOut="CeaseScroll()"><img src="images/up.gif" width="5" height="5" border="0"></a></div>
<div id="DownControl" style="position:absolute; width:5px; left:908px; top:130px; z-index:1; text-align: left; height: 5px"><a href="javascript:;" onMouseOver="PerformScroll(7)" onMouseOut="CeaseScroll()"><img src="images/down.gif" width="5" height="5" border="0"></a></div>
<div id="Container" style="position:absolute; width:229px; height:56px; overflow:hidden; top:72px; left:908px; clip:rect(0,350,240,0); visibility:visible; background-image: url(images/news_bg.gif); layer-background-image: url(images/news_bg.gif); border: 1px none #000000">
<div id="Content" style="position:absolute; top:0px; left:0px; width: 230px; height: 56px">
dfasd asd.f aklsdf

sdfasdf
sad
fasdf </div>
</div>

dieses scroll ding
 

Neue Beiträge

Zurück