+ Reply to Thread
Results 1 to 2 of 2

Thread: Scrolling with scroll over button

  1. #1
    techgeek1499 is offline x10Hosting Member techgeek1499 is an unknown quantity at this point
    Join Date
    Sep 2009
    Location
    Ohio
    Posts
    18

    Scrolling with scroll over button

    I have been recently designing a website and I have the lovely HTML Marquee tag... But anyways I will have images scrolling, but I will have an up and down arrow but I want it so when you scroll over the up arrow the pictures scroll up, but not the arrow and the same for the down arrow but images scroll down. I know this be done using JS but I am not quite sure how...? Please help.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Scrolling with scroll over button

    Overview: attach (IE way) a mouseOver event listener on each button that starts an interval. The interval function increases (or decreases, to scroll up) the element's scrollTop property. Attach another event listener to each button for the mouseOut event that clears the interval. Using a library like jQuery, Scriptaculous or Flow can make everything easier, from dealing with events to animation (specifically, scrolling).
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. change submit button for image
    By bunglebrown in forum Programming Help
    Replies: 4
    Last Post: 09-22-2008, 05:17 PM
  2. Flash button for 50 Credits:
    By satheesh in forum The Marketplace
    Replies: 4
    Last Post: 01-25-2008, 08:43 AM
  3. Firefox 'Back' Button Problems
    By GG-Xtreme in forum Off Topic
    Replies: 3
    Last Post: 12-14-2007, 10:55 PM
  4. Scrolling Ads
    By desicrew in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 09-22-2007, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers