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>