dimamo1983
12-13-2003, 11:49 AM
I've got a script in a separte file which i include inside the <head>
It's a menu script. First I use document.write to place all parts of the menu and then the file contains some other functions to move a picture of a truck around the menu.
When the page loads, menu shows up, but the picture doesn't move until the whole page is loaded. I use onLoad inside <body> to call the function that moves the picture.
here's the link:
http://www.osufuturetruck.org
I would like to get the truck moving either while the rest of the page is loading (prefered) or before it starts to load, but not after (as it is right now).
Is there a way I can force this "moving" function to execute before the rest of the page loads?
btw, netscape users won't see the effect, it only works in IE. I know, i know, i should make it compatible, but i just didn't have time yet. maybe later...
thanks,
dima
It's a menu script. First I use document.write to place all parts of the menu and then the file contains some other functions to move a picture of a truck around the menu.
When the page loads, menu shows up, but the picture doesn't move until the whole page is loaded. I use onLoad inside <body> to call the function that moves the picture.
here's the link:
http://www.osufuturetruck.org
I would like to get the truck moving either while the rest of the page is loading (prefered) or before it starts to load, but not after (as it is right now).
Is there a way I can force this "moving" function to execute before the rest of the page loads?
btw, netscape users won't see the effect, it only works in IE. I know, i know, i should make it compatible, but i just didn't have time yet. maybe later...
thanks,
dima