exdox77
12-21-2005, 07:01 PM
I have a website that I have created javascript menus for and I wanted to put the menus in a seperate file so that when it comes time to edit the menu I dont need to edit all of my html files just that one.
I have this code
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="java.js"
TYPE="TEXT/JAVASCRIPT">
</SCRIPT>
to my understanding this is what i would use to refer my menu to the source. but my menu system isnt relizing where the source is, it still thinks it still in the html file itself. my menu
<div id="globalNav">
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">12 Volts </a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">Audio </a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu3, '150px')" onMouseout="delayhidemenu()">Security</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu4, '150px')" onMouseout="delayhidemenu()">Mobile Theater</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu5, '150px')" onMouseout="delayhidemenu()">Remote Starters</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu6, '150px')" onMouseout="delayhidemenu()">Performance</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu7, '150px')" onMouseout="delayhidemenu()">In-Car Computing</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu8, '150px')" onMouseout="delayhidemenu()">Wireless</a> | <a href="forums.html"> Forums</a></div>
</div>
Please some help me, I am planning a big website I if for some reason I need to change my menu I dont want to change all of my pages!
I have this code
<SCRIPT LANGUAGE="JAVASCRIPT" SRC="java.js"
TYPE="TEXT/JAVASCRIPT">
</SCRIPT>
to my understanding this is what i would use to refer my menu to the source. but my menu system isnt relizing where the source is, it still thinks it still in the html file itself. my menu
<div id="globalNav">
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">12 Volts </a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">Audio </a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu3, '150px')" onMouseout="delayhidemenu()">Security</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu4, '150px')" onMouseout="delayhidemenu()">Mobile Theater</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu5, '150px')" onMouseout="delayhidemenu()">Remote Starters</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu6, '150px')" onMouseout="delayhidemenu()">Performance</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu7, '150px')" onMouseout="delayhidemenu()">In-Car Computing</a> |
<a href="#"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu8, '150px')" onMouseout="delayhidemenu()">Wireless</a> | <a href="forums.html"> Forums</a></div>
</div>
Please some help me, I am planning a big website I if for some reason I need to change my menu I dont want to change all of my pages!