View Full Version : Challenge

04-22-2005, 06:28 PM


this script above I am using in a website, however I really need the arrows to scroll from left to right, not top to bottom. I've been looking through this code and changing a few things but nothing works :( can anyone tell me what to do here?

04-22-2005, 09:18 PM
This one was actually pretty easy. The hardest part was getting the buttons to look the way I wanted. The script itself needs only two very minor changes. Find this line:

window.scrollBy(0,myspeed)and change it to this:

window.scrollBy(myspeed,0) You should adjust the 'var Hoffset=' to 110 as well. To change the arrows so that they look fairly good, use the attached images and replace the division containing them in the HTML with this table:

<table id="staticbuttons" style="position:absolute;cursor:pointer;"><tr><td>&nbsp;<a
onmouseover="myspeed=-thespeed" onmouseout="myspeed=0"><img src="arrows_lt.gif"
border="0" alt=""></a></td><td>&nbsp;<a onmouseover="myspeed=thespeed"
onmouseout="myspeed=0"><img src="arrows_rt.gif" border="0" alt=""></a></td></tr></table>