Click to See Complete Forum and Search --> : How can I scroll a frame using an image of another frame?


shaowei
07-28-2003, 07:48 AM
I'm an amatuer to javascript and is currently doing an important assignment. My website's index page will require me to have 2 iframes. Let's called them iframeA and iframeB. IframeA is supposed to have an image which when clicked will scroll the content of iframeB, acting like a window scrollbar for iframeB. How can it do it and solve this problem? I'm stucked and needed help. Your help will be deeply appreciated!

Khalid Ali
07-28-2003, 08:22 AM
there are tones of scroll page scripts out there,just do a google search for
"javascript horizontal or vertical scrolls"

then from the onclick or onmouseover events of the image in the frame call the function that initialzes the scroll

parent.frameName.scrollerFunc();