/    Sign up×
Community /Pin to ProfileBookmark

Scrolling the browser window

Hi.

I have used to separate methods to scroll a long page to the left and right, but neither of the methods exactly fit what I am trying to do…do any of you javascript experts know where I am going wrong?

Method 1: [url]http://www.design4design.com/reds/new/[/url]
Method 2: [url]http://www.design4design.com/reds/new/index2.htm[/url]

The final outcome will hopefully be a long “chapter” displayed on on page. When a button is clicked the screen will glide towards the left or right to locate the selected section of the page.

In [url=http://www.design4design.com/reds/new/]method 1[/url], the glide works fine. Please click the “How To Enter” link and it will glide. The problem is, it seems impossible to get the page to scroll left.

In [url=http://www.design4design.com/reds/new/index2.htm]method 2[/url], it will go left or right fine but jumps straight to it…is there a way to set it to glide?

Would much appreciate any help/advice.

Thanks

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Kieran_D 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.17,
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,
)...