Please take this one... I noticed the bug in previous post
<html>
<head>
<title>Select and Hide</title>
</head>
<body>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script language="javascript">
function chklayer(v) {
var layerObjs = new Array();
var dispStatus = new Array();
for (ix=1; ix < 4; ix++) {
layerObjs[ix-1] = document.getElementById('L
dispStatus[ix-1] = 'hidden';
}
if (v > 0 && v < 4) {
dispStatus[parseInt(v)-1] = 'visible';
}
for (ix=0; ix < 3; ix++) {
layerObjs[ix].style.visibi
}
if (v == "0") {
return false;
}
return true;
}
</script>
<form name="form1" method="post" action="">
<div id="Layer1" style="position:absolute; left:200px; top:150px; width:455px; height:131px; z-index:1; visibility: hidden">
Content 1 </div>
<div id="Layer2" style="position:absolute; left:200px; top:150px; width:454px; height:134px; z-index:2; visibility: hidden">
Content 2</div>
<div id="Layer3" style="position:absolute; left:200px; top:150px; width:454px; height:134px; z-index:3; visibility: hidden">
Content 3 </div>
<p> </p>
<p>
<select name="type" onchange="Javascript:chkla
<option value="0">Please Select:</option>
<option value="1">Add a Report</option>
<option value="2">Manage a Report</option>
<option value="3">File Upload snd Report Usage</option>
</select>
</p>
<p> </p>
<p> </p>
</form>
</body>
</html>
Main Topics
Browse All Topics





by: pravinasarPosted on 2006-02-10 at 14:08:20ID: 15927196
function chklayer(v) { ayer'+ix); lity = dispStatus[ix-1];
var layerObjs = new Array();
var dispStatus = new Array();
for (ix=1; ix < 4; ix++) {
layerObjs[ix-1] = document.getElementById('L
dispStatus[ix-1] = 'hidden';
}
if (v > 0 && v < 4) {
dispStatus[parseInt(v)-1] = 'visible';
}
for (ix=0; ix < 3; ix++) {
layerObjs[ix].style.visibi
}
if (v == "0") {
return false;
}
return true;
}