Guest_imported
New member
- Jan 1, 1970
- 0
Hi everybody, does anyone know why the below program works in IE 5 and not in NetCRAP 4.7 or 6?
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script LANGUAGE="JavaScript">// Fontasia Design -->
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible'v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
function letsgo(){
if (document.marketentry.bactivity.value == "other"
{MM_showHideLayers('Layer1','','show');}
else
{MM_showHideLayers('Layer1','','hide');}
}
</script>
</head>
<body bgcolor="#FFFFFF">
<div id="Layer1" style="position:absolute; left:399px; top:107px; width:160px; height:112px; z-index:1; visibility: hidden">xcvxsdfs</div>
<p> </p>
<form name="marketentry" method="post" action="">
<select name="bactivity" onChange="letsgo();">
<option>fsddfsfsddds</option>
<option>fsd</option>
<option>fs</option>
<option>fs</option>
<option>fsf</option>
<option value="other">other</option>
</select>
</form>
<p> </p>
</body>
</html>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script LANGUAGE="JavaScript">// Fontasia Design -->
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible'v='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
function letsgo(){
if (document.marketentry.bactivity.value == "other"
{MM_showHideLayers('Layer1','','show');}
else
{MM_showHideLayers('Layer1','','hide');}
}
</script>
</head>
<body bgcolor="#FFFFFF">
<div id="Layer1" style="position:absolute; left:399px; top:107px; width:160px; height:112px; z-index:1; visibility: hidden">xcvxsdfs</div>
<p> </p>
<form name="marketentry" method="post" action="">
<select name="bactivity" onChange="letsgo();">
<option>fsddfsfsddds</option>
<option>fsd</option>
<option>fs</option>
<option>fs</option>
<option>fsf</option>
<option value="other">other</option>
</select>
</form>
<p> </p>
</body>
</html>