...

View Full Version : Drop Down Menu error in Firefox



Efrain
01-15-2007, 08:54 PM
Hi. I build a web page with some javascript code for various drop down menu's. The code is:
<Head> part
<script language="javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}
//-->
</script>
-------------------------------------------------------------------------
<body> part
<SELECT name="menu1"style="color:#000000;background-color:white; font-family:Times New Roman; font-size:10pt" size="1">

<OPTION value="/Science/Suavidad.html">Suavidad</OPTION>
<OPTION value="/Science/Durabilidad.html">Durabilidad</OPTION>
<OPTION value="/Science/AntiBacterial.html">Anti-Bacterial</OPTION>

<OPTION value="/Science/Poder.html">Poder y Estiramiento</OPTION>
<OPTION value="/Science/ControlHumedad.html">Control De Humedad</OPTION>
</SELECT>
<INPUT type="button" name="Button" value="Leer >>" onClick="MM_jumpMenuGo('menu1','parent',0)" style="font-family: Times New Roman; font-size: 10pt"></font></td>


The problem is that the page is working good in Internet Explorer but in Firefox 2.0.0.1 the menue's doesn't work.

Can anyone help me with this problem?

Thank's

Efrain Colon



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum