View Full Version : multiple javascripts on page, at least one won't work

08-13-2008, 03:48 PM
Hello all,
I'm trying to put multiple javascripts on one page, when I do at least one won't work.

The scripts I'm attempting to use are: HVmenu, Random Image Script, Advanced Gallery script, (these three were working fine together)
Testpage: http://wyandotte.net/home-test.htm

then when I added Scrollable content script II the HVmenu disappeared.
Testpage: http://wyandotte.net/home-test2.htm

So then someone suggested moving the onloads to the body tag which I did,
The HVmenu came back but the Scrollable content script II stopped working.
Testpage: http://wyandotte.net/home-test-onload.htm (http://wyandotte.net/home-test-onload.htm)

Any ideas out there, I'm kind of stumped?
I'm sure it's probably something really simple & I am just a big bonehead!

Thanks Rich :(

08-13-2008, 04:11 PM
That (putting multiple onload calls in the body tag) is one way of resolving onload conflicts. However, you should also remove the onload calls from the scripts themselves or wherever else they may appear, and the proper syntax for onload in the body tag includes the parenthetical suffix:

onload="startgallery(); getcontent_height();"

Make sure the calls are spelled correctly, upper and lower case letters matter. What's the onload for HVmenu? It cannot be either of those.

08-14-2008, 02:17 AM
John you rock!!!

The prob was with the parenthetical suffix.

Thank you so much

- Rich :D :D :D :D :D