Results 1 to 2 of 2

Thread: Challenge

  1. #1
    Join Date
    Apr 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Challenge

    http://www.dynamicdrive.com/dynamici...gescroller.htm

    Hi,

    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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

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

    Code:
    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:

    HTML Code:
    <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>
    Last edited by jscheuer1; 04-22-2005 at 10:38 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •