sridhar8310
Broken In
Recently I created a website for myself, I used the "select" HTML control and designed it, it's code is given below. Thee problem is that I can open up a page only when i change from one option to another but not when in the same option. Like in the "--header--" option in the menu is default selected, so if I press again header, it wont work since there is no change in the selection. Could anyone plz help me.
Also if u could tell me how to show the menu when we hover the mouse, I would be grateful to u.
-----------------------------------------------------------------------
<STYLE type=text/css>.networkbarselect {
FONT-SIZE: 11px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica,sans-serif;BACKGROUND-COLOR: #f2f2f2
}</STYLE>
<SCRIPT language=JavaScript type=text/JavaScript>
function MM_jumpMenu(targ,selObj,restore){
var i;
i=selObj.selectedIndex;
selObj.selectedIndex=0;
eval(targ+".location='"+selObj.options[i.value+"'");
}</SCRIPT>
<select class=networkbarselect onchange="MM_jumpMenu('window.document',this,1)">
<option value=javascript:// selected>--header--</option>
<option value=*www.yahoo.com>yahoo</option>
<option value=*www.rediff.com>rediff</option>
</select>
----------------------------------------------------
Also if u could tell me how to show the menu when we hover the mouse, I would be grateful to u.
-----------------------------------------------------------------------
<STYLE type=text/css>.networkbarselect {
FONT-SIZE: 11px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica,sans-serif;BACKGROUND-COLOR: #f2f2f2
}</STYLE>
<SCRIPT language=JavaScript type=text/JavaScript>
function MM_jumpMenu(targ,selObj,restore){
var i;
i=selObj.selectedIndex;
selObj.selectedIndex=0;
eval(targ+".location='"+selObj.options[i.value+"'");
}</SCRIPT>
<select class=networkbarselect onchange="MM_jumpMenu('window.document',this,1)">
<option value=javascript:// selected>--header--</option>
<option value=*www.yahoo.com>yahoo</option>
<option value=*www.rediff.com>rediff</option>
</select>
----------------------------------------------------