/    Sign up×
Community /Pin to ProfileBookmark

How can I scroll a frame using an image of another frame?

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!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 28.2003 — 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();
×

Success!

Help @shaowei spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...