/    Sign up×
Community /Pin to ProfileBookmark

function softscroll that doesn’t work on mac

Hello,
navigation system that I would like to use, uses function softscroll that works just fine on pc+ie, mozilla and linux but not at all with mac (ie or netscape).

Is there anyone who might have an idea where the problem comes ?
Thank you in advance.

<SCRIPT language=”JavaScript cyberversion=”N1.2″>

memory_x = 0;
memory_y = 0;
scroll(0,0)
function softscroll(x,y)
{
pas = 100;
temp_mem_x = x;
temp_mem_y = y;
temp_x = memory_x;
temp_y = memory_y;
delta_x = (x – memory_x)/pas;
delta_y = (y – memory_y)/pas;
for(counter = 0; counter < pas; counter++)
{
scroll(temp_x,temp_y);
temp_x += delta_x;
temp_y += delta_y;
}
scroll(temp_mem_x,temp_mem_y);
memory_x = temp_mem_x;
memory_y = temp_mem_y;
}
</SCRIPT>

and the links :

<a href=”javascript:;” onClick=softscroll(2250,0)>link to page 4</a>
<a href=”javascript:;” onClick=softscroll(1500,0)>link to page 3</a>
<a href=”javascript:;” onClick=softscroll(3000,0)>link to page 5</a>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @lallu 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.6,
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,
)...