|
-
Apr 24th, 2005, 02:22 PM
#1
Thread Starter
Fanatic Member
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.
Last edited by 007shahid; May 1st, 2005 at 01:54 AM.
THE TIME/WEATHER IS 
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|