...

View Full Version : More Than 1 Javascript on page



c5353
03-20-2005, 03:35 PM
I am attempting to run 2 javascripts on a page. But it's not working. I looked up my dilemma, I believe on your site, however because I am using external files I'm not sure how to code this. I am including both HTML file and external files for review. Thank you in advance for all your help.

vwphillips
03-20-2005, 04:17 PM
first thing you need to do is put all your external JSs in the page

what is this all about?

<script menumaker>
document.write('<scr'+'ipt src="xaramenu.js">'+'</scr'+'ipt>');
document.write('<scr'+'ipt src="arrow.js">'+'</scr'+'ipt>');

/*img src="Arrow.gif" moduleid="Albuquerque (Project)\Arrow_off.xws"*/
</script></p>
<p

but if you want this sorted you need to post xaramenu.js but see my first comment

Philip M
03-20-2005, 04:30 PM
This is a very frequently asked question. Have a look at:-

http://www.javascriptkit.com/javatutors/multiplejava.shtml

Another source of problems is that the same variable or function name
is used in two or more scripts which have been copied and pasted. The duplicate names must be eliminated. E.g. replace var x by var x1 in second script.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum