View Full Version : Script Problems


Kenny
02-20-2003, 04:19 AM
I looked at my navigation bars that I copied. They don't seem to work. I was hoping somewhere here could take a look:

<SCRIPT LANGUAGE = "JavaScript">
function changePage()
{
var f = document.forms.navigation;

var uri = f.pages.options[f.pages.selectedIndex].value;
newPage =
// These settings describe the pop-up browser
// window - you can edit them.
window.open(uri,"NewPage","height=480,width=640,location=no,scrollbars=yes,me nubar=no,toolbar=no,resizable=yes,status=yes");

}
</SCRIPT>

<!--Insert this anywhere on your page, and customize.-->

<form name="navigation">
<select name="pages" size="1" onChange="changePage();">
<!--For each line of code, you need to do the following:-->
<!--Place your URLs within the quotation marks.-->
<!--Edit the text at the end of each line.-->
<option value="0">Main:</option>
<option value="http://kenikov.tripod.com/articles">Articles
<option value="http://kenikovforum.suddenlaunch.com/index.cgi">Forum
<option value="http://kenikov.tripod.com/index">Home

</select>
</form>

Alcy
02-23-2003, 12:14 AM
You just forgot some </option> :)

<SCRIPT LANGUAGE = "JavaScript">
function changePage()
{
var f = document.forms.navigation;
var uri = f.pages.options[f.pages.selectedIndex].value;
newPage =
// These settings describe the pop-up browser
// window - you can edit them.
window.open(uri,"popup", "height=480, width=640, location=no, scrollbars=yes, menubar=no, toolbar=no, resizable=yes, status=yes");
}
</SCRIPT>

<!--Insert this anywhere on your page, and customize.-->

<form name="navigation">
<select name="pages" size="1" onChange="changePage();">
<!--For each line of code, you need to do the following:-->
<!--Place your URLs within the quotation marks.-->
<!--Edit the text at the end of each line.-->
<option value="0">Main:</option>
<option value="http://kenikov.tripod.com/articles">Articles</option>
<option
<option value="http://kenikovforum.suddenlaunch.com/index.cgi">Forum</option>
<option value="http://kenikov.tripod.com/index">Home</option>
<option
</select>
</form>