I cannot seem to get the same javascript effect from this script with Firefox. I only works in IE, and I need one that works like it in Firefox as well. Please help! I have converted 30 code generating tools to be compliant with Firefox as well as IE and Netscape, but one tool generates this code and I need to have it generate Firefox friendly code as well...and it's killing me.
Code:
<html>
<head>
<title>SearchBliss: Slide Link Drop Menu Example</title>
<script language="JavaScript">
<!--
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_changeProp(objName,x,theProp,theValue) { //v3.0
var obj = MM_findObj(objName);
if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr bgcolor="#FFFFFF" valign="bottom" align="left">
<td> <font face="Verdana" size="2">Menu: </font>
<select name="s" onChange="MM_changeProp('Layer1','','innerHTML','<MARQUEE SCROLLAMOUNT=120 behavior=slide direction=left><a href=\"\'+document.all.s.value+\'\" target=\"_blank\" style=\"color:#FF0000;font-family:Verdana;font-size:12px;\">\'+document.all.s.value+\'</a></MARQUEE>','DIV')" style="color:#FF0000;background-color:#CCCCCC;font-family:Verdana;font-size:12px;">
<option selected>- Select One -</option>
<option value="http://www.searchbliss.com/Webmaster-Tools.htm">Webmaster Tools</option>
<option value="http://www.searchbliss.com/Free-Website-Content.htm">Free Website Content</option>
<option value="http://www.searchbliss.com/generators.asp">Buy Tools</option>
</select>
<div id="Layer1" style="position:absolute; z-index:1; visibility: visible; width: 700px"></div>
</td>
</tr>
</table>
</body>
</html>
|