/    Sign up×
Community /Pin to ProfileBookmark

Scroll frame automatically

I have a function which occur that a webpage will scroll automatically down. I need something little bit different. I don’t want a web page scrolling down but only a frameset. Below is an example of the java i used for the whole page. Can somebody help me how to change the script so the that website in the frame will scrolling down. I don’t where to place the onload part.

Thanks….
————————————————————————

<HTML>
<HEAD>
<script language=”javascript” type=”text/javascript”>

</script>

<SCRIPT TYPE=”text/javascript” LANGUAGE=”JavaScript”>

function pageScroll() {
window.scrollBy(0,50); // horizontal and vertical scroll increments
scrolldelay = setTimeout(‘pageScroll()’,100); // scrolls every 100 milliseconds
}

</script>
</HEAD>
<FRAMESET rows=”*” border=”no” onLoad=”pageScroll()”>
<FRAME SRC=”http://www.nu.nl“>
</FRAMESET>
<BODY>
</BODY>
</HTML>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@MrNobodyJan 23.2009 — If the website in the frame is not the same domain as the website from which the script is executing, then, for security reasons, you will not be able to scroll that foreign domain.
×

Success!

Help @ap_newcom_net 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...