Please help, script conflict |
Please help, script conflict |
Fuxas |
Oct 14 2006, 05:06 AM
Post
#1
|
Group: Members Posts: 2 Joined: 14-October 06 Member No.: 432 |
Hi all who view this topic
I`ve got two ready to use scripts (cascade menu & calendar). If they applied separately its great and they work. But when i try to apply them both the menu stops working. I`m not fluent in html and maybe i mess up with coding.. The site with both scripts applied http://www.freewebs.com/film-ru/www.htm ___________________________________________________________________________ Cascade menu coding http://javascript.internet.com/navigation/...enu.html#source Calendar code http://www.javascriptkit.com/script/script...och/index.shtml needs downloading *.rar archive Those scripts perfectly meet my needs but i can`t make them work Thanks for any replies |
Christian J |
Oct 14 2006, 05:27 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
You have both this in the BODY tag:
CODE onLoad="writeMenus()" and this at the bottom: CODE window.onload = function () { ms_cal = new Epoch('epoch_multi','flat',document.getElementById('multi_container'),true); }; but two onloads on the same page cause conflicts. One workaround that might work is to remove the one in the BODY tag and instead use: CODE window.onload = function () { ms_cal = new Epoch('epoch_multi','flat',document.getElementById('multi_container'),true); writeMenus(); }; |
Fuxas |
Oct 14 2006, 06:24 AM
Post
#3
|
Group: Members Posts: 2 Joined: 14-October 06 Member No.: 432 |
Thanks this change solved my problem!
|
Lo-Fi Version | Time is now: 19th April 2024 - 10:39 PM |