I found help for my problem from an old thread in this forum:
"Open your page.
Move your Go menu, at the very top left corner of the page.
Right click on it and go to Object html. Copy the code that will look like:
<FORM name="GoMenuForm2" action="">
<SELECT name="GoMenu" style="width:119px">
<OPTION selected>Select a link</OPTION>
<OPTION value="http://www.yoursite.com/page_in_the_frame1.html>option1</OPTION>
<OPTION value=http://www.yoursite.com/page_in_the_frame2.html>option2</OPTION>
</SELECT>
<INPUT type="button" value="Go" onclick="OnGoMenuForm2Link()">
</FORM>
<SCRIPT language="JavaScript" type="text/javascript">
function OnGoMenuForm2Link()
{
var url = document.GoMenuForm2.GoMenu.options[document.GoMenuForm2.GoMenu.selectedIndex].value +"";
if (url != '')
{
if(parent != self)
{
var doc = self;
while(doc != window.top)
{
doc = doc.parent;
}
if(url.indexOf("://")!=-1)
{
doc.body.window.location.href = url;
}
else
{
window.framename.location.href = url;
}
}
else
{
window.framename.location.href = url;
}
document.GoMenuForm2.GoMenu.selectedIndex=0;
}
}
</SCRIPT> "
This all worked except I don't want a "go" button (<INPUT type="button" value="Go" onclick="OnGoMenuForm2Link()">), I just want it to change (in the inline frame) when selected. I've tried putting the type as hidden and the onclick to onselect, but that's about as far as my knowledge goes. I'm a newbie at this. Can anyone help me?
"Open your page.
Move your Go menu, at the very top left corner of the page.
Right click on it and go to Object html. Copy the code that will look like:
<FORM name="GoMenuForm2" action="">
<SELECT name="GoMenu" style="width:119px">
<OPTION selected>Select a link</OPTION>
<OPTION value="http://www.yoursite.com/page_in_the_frame1.html>option1</OPTION>
<OPTION value=http://www.yoursite.com/page_in_the_frame2.html>option2</OPTION>
</SELECT>
<INPUT type="button" value="Go" onclick="OnGoMenuForm2Link()">
</FORM>
<SCRIPT language="JavaScript" type="text/javascript">
function OnGoMenuForm2Link()
{
var url = document.GoMenuForm2.GoMenu.options[document.GoMenuForm2.GoMenu.selectedIndex].value +"";
if (url != '')
{
if(parent != self)
{
var doc = self;
while(doc != window.top)
{
doc = doc.parent;
}
if(url.indexOf("://")!=-1)
{
doc.body.window.location.href = url;
}
else
{
window.framename.location.href = url;
}
}
else
{
window.framename.location.href = url;
}
document.GoMenuForm2.GoMenu.selectedIndex=0;
}
}
</SCRIPT> "
This all worked except I don't want a "go" button (<INPUT type="button" value="Go" onclick="OnGoMenuForm2Link()">), I just want it to change (in the inline frame) when selected. I've tried putting the type as hidden and the onclick to onselect, but that's about as far as my knowledge goes. I'm a newbie at this. Can anyone help me?
Comment