The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Please help, script conflict
Fuxas
post 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 sad.gif

Thanks for any replies
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 14 2006, 05:27 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,648
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();
};
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Fuxas
post 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! smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 05:14 AM