Click to See Complete Forum and Search --> : help on frame definitions


ProgHeaven
04-03-2004, 09:42 AM
hey guys

i have a question.
i used this script for a dropdown navigation menu, but i used it in a split frame page.
now i have it php and no more frames, and i dont know what to change that it works any further.
can anyone tell me what to replace?

Thanks a lot!

here goes the script:





head:

<script language="JavaScript">
<!--
function Go(x)
{
parent.frames[1].location.href = x;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
//-->
</script>



body:


<select class="qbar" style="WIDTH: 170; height:170" onchange="Go(this.form.Dropdown1.options[this.form.Dropdown1.options.selectedIndex].value)" size="1" name="Dropdown1" width="170">
<option selected>::QUICKLAUNCH::</option>
<option value="live.php">Concerts</option>
<option value="/forum/index.php">Forum</option>
<option value="/chat/irc.html">Chat</option>
<option value="guestbook.php">Guestbook</option>
</select><br>



thx a lot!

David Harrison
04-03-2004, 10:03 AM
New head section:



<script type="text/javascript"><!--

function Go(x)
{
location.href = x;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}

//--></script>



Edit. What the hell, here's some updated body code as well:



<select class="qbar" style="width:170px;height:170px;" onchange="Go(this.options[this.selectedIndex].value);" size="1" name="Dropdown1">
<option selected>::QUICKLAUNCH::</option>
<option value="live.php">Concerts</option>
<option value="/forum/index.php">Forum</option>
<option value="/chat/irc.html">Chat</option>
<option value="guestbook.php">Guestbook</option>
</select><br>

ProgHeaven
04-03-2004, 10:22 AM
thx a lot!

you rule!!!

\m/

David Harrison
04-03-2004, 04:44 PM
Happy to help. :)