Code:
<table id="staticbuttons" style="position:absolute;cursor:pointer;"><tr><td> <a
onmouseover="myspeed=-thespeed" onmouseout="myspeed=0"><img src="arrows_lt.gif"
border="0" alt=""></a></td><td> <a onmouseover="myspeed=thespeed"
onmouseout="myspeed=0"><img src="arrows_rt.gif" border="0" alt=""></a></td></tr></table>
<script type="text/javascript">
//Page Scroller (aka custom scrollbar)- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//Modified for Horizontal Scrolling and centered, top oriented controls by:
//jscheuer1 in http://www.dynamicdrive.com/forums
//This credit MUST stay intact for use
var Voffset=20 //Enter buttons' offset from top edge of window (adjust depending on images height)
var thespeed=3 //Enter scroll speed in integer (Advised: 1-3)
var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1
var myspeed=0
var ieHoffset_extra=document.all? 15 : 0
var cross_obj=document.all? document.all.staticbuttons : document.getElementById? document.getElementById("staticbuttons") : document.staticbuttons
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function positionit(){
var dsocleft=document.all? iecompattest().scrollLeft : pageXOffset
var dsoctop=document.all? iecompattest().scrollTop : pageYOffset
var window_width=ieNOTopera? iecompattest().clientWidth+ieHoffset_extra : window.innerWidth+ieHoffset_extra
var window_height=ieNOTopera? iecompattest().clientHeight : window.innerHeight
if (document.all||document.getElementById){
cross_obj.style.left=parseInt(dsocleft)+parseInt(window_width)/2-cross_obj.offsetWidth/2+"px"
cross_obj.style.top=dsoctop+Voffset+"px"
}
else if (document.layers){
cross_obj.left=dsocleft+window_width/2-cross_obj.offsetWidth/2
cross_obj.top=dsoctop+window_height+Voffset
}
}
function scrollwindow(){
window.scrollBy(myspeed,0)
}
function initializeIT(){
positionit()
if (myspeed!=0){
scrollwindow()
}
}
if (document.all||document.getElementById||document.layers)
setInterval("initializeIT()",20)
</script>
Bookmarks