Click to See Complete Forum and Search --> : Scroll w/ Buttons


maduncs
06-22-2005, 02:03 PM
I feel dumb for askin.

What's the coding to have a button Horizontally scroll a specific html doc within a frame.

(The Sites Coded in XHTML)

thanks
Phil

Jona
06-22-2005, 03:05 PM
You have to take the x distance from the left of the current document and set a function which increments the distance from the left to run at an interval. Do the same if you want to go from right to left. I’d suggest searching Google (http://www.google.com/search?q=javascript+scroll+window+left&complete=1&start=0&start=0&ie=utf-8&oe=utf-8) — you can probably find what you’re looking for (http://www.jsmadeeasy.com/javascripts/Browser%20Window/Left-Right%20Scrolling%20Window%20Script/) without much of a problem. If you still can’t (or if you have further questions), feel free to ask.