...

View Full Version : Page scrolling methods



Anarchist
03-25-2005, 04:40 PM
Hi,
Does anyone know any good page auto scrolling methods, at the moment I have a button that scrolls my page when clicked, it's OK but I really want a method that scrolls on opening or by moving the mouse or something.

I tried another script that used onload but it conflicted with another function I had on my page so only one would work not both.

The both were called on onload.

So anyone got anything nice? :thumbsup:

afru
03-25-2005, 06:51 PM
Hi,

Call some function in body tag and then call your original functions inside that function.


<body onload="myfunction();">

JS Code...

function myfunction(){
somefunction1();
somefunction2();
}

This way you can run as many codes as you want using onload event...

Hope this helps you...

Afru.

Anarchist
03-25-2005, 07:09 PM
Yay, I got it working, so simple duh! what was I thinking, I added this pageScroll to my existing onload event and it worked.

window.onload= function() {SetUpEvents,pageScroll(document.forms.myForm)


Thanks mate :thumbsup:

Anarchist
03-25-2005, 09:55 PM
I spoke too soon my other function was disabled after applying that. Looks like I'm stuck with a button. :(



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum