sabarros
07-26-2002, 07:34 PM
Fixed the problem of two window.onload but now
I want to add the window.onscroll
But it doesn't show up.
tried several things including this:
<body onload="runmikescroll() ;fall() ;staticize()">
but it is certain I am doing something wrong.
tried adding this as well
<body onscroll="staticize ;()">
KrazyKid
07-26-2002, 08:09 PM
If you make a function that calls them all..like
<body onload="javascript:runOnload();">
and then in your script area use something like this...
function runOnload()
{
runmikescroll();
fall();
staticize();
}
Hope that helps!
sabarros
07-26-2002, 10:22 PM
But it is not working.
:confused:
sabarros
07-27-2002, 05:58 AM
Ok I will try again
I have 3 scripts:
two call on the "onload"
the other calls "onscroll"
I can get the two onloads to work but not the
onscroll
I tried
(in the body):
<body onload="javascript:runOnload();">
(in the script): added at the end of the first script only!
function runOnload()
{
fall();
runmikescroll();
staticize(); <(this being the onscroll)
}
This did not work.
Any suggestions
:confused: :(
speedracer
07-27-2002, 07:24 PM
hi,
exactly what three scripts are you using?
sabarros
07-27-2002, 07:41 PM
Autumn leaves- by Kurt Grigg (kurt.grigg@virgin.net)= Onload
Mike's DHTML scroller (By Mike Hall)= Onload
Always On Top Content Script=OnScroll
All 3 are from Dynamic Drive.:o
speedracer
07-27-2002, 08:01 PM
hi,
follow direction for installing each script. and then all you would need to do is combine the on load function like this:
make sure you disable or delete the two onload functions:
//window.onload=runmikescroll <- delete this line or diable by adding "// in front of the line. same for
//window.onload=fall
and add them in the body tag like this:
<body onload="fall();runmikescroll()">
no need to include onscroll function.
your page should look like this:
<html>
<head>
[ Always On Top Content HEAD Script ] here
</head>
<body onload="fall();runmikescroll()">
[ Autumn leaves script ] here
[ Mike's DHTML scroller scrip ] here
[ Always On Top Content BODY Script ] here
</body>
</html>
sabarros
07-27-2002, 09:05 PM
So leave the window.onscroll=staticize intact?
and just revise the two others and add all 3 scripts to the body of the document.
Is that correct?:rolleyes:
speedracer
07-29-2002, 09:11 AM
yes, just make sure to follow the direction on each script exactly, and place the script in the page like i have posted above(in that order). onscroll is not onload event...you cannot(no need to) combine them.
ps. these script will only will work in IE
sabarros
07-29-2002, 12:37 PM
did it on Saturday. Works great!
THANK YOU!
:) :thumbsup: