garymgordon
Programmer
I am having a problem with the following.
I created a drop down menu in html as:
<select style="width: 250px; font-size: 9pt;" onchange="location=options[selectedIndex].value;">
<option value="javascript:void(0);" selected="selected">GO TO: Department Websites</option>
<option value="websites/site1/index.html">> Main Website</option>
</select>
and I converted it to Javascript as:
<!--
document.writeln("<select style=\"width: 250px; font-size: 9pt;\" onchange=\"location=options[selectedIndex].value;\">"
;
document.writeln("<option value=\"javascript:void(0);\" selected=\"selected\">GO TO: Department Websites</option>"
;
document.writeln("<option value=\"websites/site1/index.html\">> Main Website</option>"
;
document.writeln("</select>"
;
//-->
The above Javascript file will be imported into an html page using ...
<script type="text/javascript" language="javascript" src="/js/menu.js"></script>
[NOTE: I have placed the <form> and </form> tags around the outside of the imported .js file.]
When I do this in IE6 or Netscape 6, I have no problem at all.
But when I use the above .. in Netscape 4.75 I don't get the SELECT drop down menu, all I get is the text that says:
GO TO: Department Websites>Main Website
That's what shows up in Netscape 4.75.
When I look at the source code .. it looks like it brought everything in fine.
Basically, I need to create this menu in a single file (without using SSI or ASP) and import it into multiple HTML pages so I can change the menu in one place and have it appear on multiple other pages.
Again, in IE6 and Netscape 6 it works fine.
I can't seem to figure out why Netscape 4.75 is giving me a problem.
NOTE ... If I put the code of:
<select style="width: 250px; font-size: 9pt;" onchange="location=options[selectedIndex].value;">
<option value="javascript:void(0);" selected="selected">GO TO: Department Websites</option>
<option value="websites/site1/index.html">> Main Website</option>
</select>
directly into the HTML page and then try to open the page in Netscape 4.75 .. everything is fine.
The problem only exists when I try to bring that information in and place it in the HTML page using the .js file.
I could really appreciate some expert help with this problem. It is driving me crazy. hahaha
Thanks in advance,
Gary
ggordon@garymgordon.com
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
I created a drop down menu in html as:
<select style="width: 250px; font-size: 9pt;" onchange="location=options[selectedIndex].value;">
<option value="javascript:void(0);" selected="selected">GO TO: Department Websites</option>
<option value="websites/site1/index.html">> Main Website</option>
</select>
and I converted it to Javascript as:
<!--
document.writeln("<select style=\"width: 250px; font-size: 9pt;\" onchange=\"location=options[selectedIndex].value;\">"
document.writeln("<option value=\"javascript:void(0);\" selected=\"selected\">GO TO: Department Websites</option>"
document.writeln("<option value=\"websites/site1/index.html\">> Main Website</option>"
document.writeln("</select>"
//-->
The above Javascript file will be imported into an html page using ...
<script type="text/javascript" language="javascript" src="/js/menu.js"></script>
[NOTE: I have placed the <form> and </form> tags around the outside of the imported .js file.]
When I do this in IE6 or Netscape 6, I have no problem at all.
But when I use the above .. in Netscape 4.75 I don't get the SELECT drop down menu, all I get is the text that says:
GO TO: Department Websites>Main Website
That's what shows up in Netscape 4.75.
When I look at the source code .. it looks like it brought everything in fine.
Basically, I need to create this menu in a single file (without using SSI or ASP) and import it into multiple HTML pages so I can change the menu in one place and have it appear on multiple other pages.
Again, in IE6 and Netscape 6 it works fine.
I can't seem to figure out why Netscape 4.75 is giving me a problem.
NOTE ... If I put the code of:
<select style="width: 250px; font-size: 9pt;" onchange="location=options[selectedIndex].value;">
<option value="javascript:void(0);" selected="selected">GO TO: Department Websites</option>
<option value="websites/site1/index.html">> Main Website</option>
</select>
directly into the HTML page and then try to open the page in Netscape 4.75 .. everything is fine.
The problem only exists when I try to bring that information in and place it in the HTML page using the .js file.
I could really appreciate some expert help with this problem. It is driving me crazy. hahaha
Thanks in advance,
Gary
ggordon@garymgordon.com
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer