RoyW
03-21-2003, 05:18 AM
There have been quite a few questions on this forum lately about combining 2 scripts. I wanted to post this to show that if the javascript is authored correctly then it should never interfere with another script.
Here I have combined 9 of my scripts. The only problem I came across was that I added 2 navbars with the same names for each rollover (normally you wouldn't have 2 navbars on the same page). I fixed this by putting a "2" after each name in the second navbar.
The scripts are
1)Falling Objects (Page Animation)
2)Mouse Squidie (Mouse Trailer)
3)Fire - rocket mode (Mouse Trailer)
4)Spring (Mouse Trailer)
5)Halloween Ghosts (Page Animation)
6)News Scroller
7)Image Slide Show
8)Fading Image Rollovers
9)Animated Rollovers
If you have a fast machine and a fast connection you can check it out on this link (http://www.javascript-fx.com/post/combine/demo4.html) .
Here I have combined 9 of my scripts. The only problem I came across was that I added 2 navbars with the same names for each rollover (normally you wouldn't have 2 navbars on the same page). I fixed this by putting a "2" after each name in the second navbar.
The scripts are
1)Falling Objects (Page Animation)
2)Mouse Squidie (Mouse Trailer)
3)Fire - rocket mode (Mouse Trailer)
4)Spring (Mouse Trailer)
5)Halloween Ghosts (Page Animation)
6)News Scroller
7)Image Slide Show
8)Fading Image Rollovers
9)Animated Rollovers
If you have a fast machine and a fast connection you can check it out on this link (http://www.javascript-fx.com/post/combine/demo4.html) .