I have three externally linked javascripts that I want to display on a web page. The first deals with a top navigation menu, the second is a news alert script and the third is a link description script. If I remove the first script, navigation menu, then the rest two work fine, however, if all three are inserted as below, then the link description and news alert script do not work.

Any assistance would be greatly appreicated.

The references to the scripts from the web page is as follows:

Within the Head Tag
<h>

<!---This is the script that goes for the Nav Menu--->
<script language=javascript src="sniffer.js"></script>

<script language=javascript1.2 src="cs_custom.js"></script>

<script language=javascript1.2 src="a_style.js"></script>

<!---Top Nav Menu--->

<!--- Begin of link description head jscript-->

<script language=JavaScript1.2 src="link_description_menus\default_main\main.js"type="text/javascript">
</script>

<!--- end of link description head jscript-->

</h>

This is what is placed int he <body> </body> tags:

<body>

<!--- Begin link description body jscript-->

<div id=TipLayer style="visibility: hidden;position: absolute;z-index: 1000;top: -100;"></div>

<script language=Javascript1.2 src="link_description_menus\default_main\cust_supt_style.js"type="text/javascript"></script>

<!--- End link description body jscript-->

<!---Begin News Ticker--->

<div style="position: absolute;
left: 165px;
top: 140px;
width: 700;
height: 22;
overflow: hidden;
margin: 0px;">
<div id=spage
style="position: absolute;
width: 700;
height: 22;
overflow: hidden;
filter: 'progid:DXImageTransform.Microsoft.GradientWipe';
background-color: #eeeeee;
left: -2px;
top: -1px;">
</div>

<script language=javascript src="cfs_ticker.js"></script>

</div>

<div style="position: absolute;
width: 0px;
height: 0px;
overflow: hidden;
visibility: hidden;">
</div>

<!---News Ticker end--->

<!---Body tag for Top Nav Menu--->
<script language=javascript1.2
src="amenu.js"></script>

<!---Body tab for Top Nav Menu--->

</body>

its possible that some global variables in the scripts override or manipulate variables important to the first script or vice versa...

i would check this out... look for any errors or any variables in the scripts with duplicate declarations.

i'd also suggest using the venkman javascript debugger with mozilla firefox.

unless you've gone and written ie specific code.. in which case you'll have to put up with their crap debugger.

This article has been dead for over six months. Start a new discussion instead.