Conflicting Java Scripts [RESOLVED]
Hi, I downloaded two scripts from dynamicdrive.com to use in a website. I hence needed to include three .js javascript files in my HTML one. They are...
<SCRIPT language=JavaScript src="gm.js" type=text/javascript></SCRIPT>
...for a game script
<SCRIPT language=JavaScript src="inc/browser.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="cfg.js" type=text/javascript></SCRIPT>
...for a horizontal menu
However, when both are included at the same time, the game does not work and gives errors. In some placements the menu doesn't appear.
So I figured this would be due to duplicate functions, possibly the init(). Hence I renamed the init() of the menu script and am on the look out for other duplicates. However I cannot find anymore and the problem persists. What can be the problem.
Any help is appreciated. :)
Re: Conflicting Java Scripts
Comment them out and add them one by one, how about that?
Re: Conflicting Java Scripts
I guess I forgot this thread. I got the solution. In one of the scripts, the init() was called within the .js file. I moved the statement to the body tag :)
Re: Conflicting Java Scripts
Ah, well... that was my next suggestion. :p
Add [Resolved] to the thread title.