Hi,
I am getting an "object expected" error on the button line in the following code (this is supposed to raise the z-index value of the "overlay" layer when the button is clicked. It doesn't work...):
<html>
<head>
<STYLE>
#base { position: absolute;left:200;top:0;z-index:1}
#course { position: absolute;left:200;top:0;z-index:0 }
</STYLE>
<div id="base">
<img src="baseimage.jpg" height=639 width=639>
</div>
<div id="course">
<img src="courseimage.jpg" height=639 width=639>
</div>
<script type="text/javascript">
function check(form)
{
if (course.checked)
{
if (document.layers)
document.layer.zIndex = 2;
else if (document.all)
document.all.layer.style.zIndex = 2;
else if (document.getElementById)
document.getElementById('layer').style.zIndex = 2;
}
</script>
</head>
<body>
<form NAME="viewoverlay"><input TYPE=CHECKBOX NAME="course" value="Course Area" >Course
Area
<br><input type="button" value="View" name="msw" onClick="check(this.form)"></form>
</body>
</html>
Any help?
Matt
I am getting an "object expected" error on the button line in the following code (this is supposed to raise the z-index value of the "overlay" layer when the button is clicked. It doesn't work...):
<html>
<head>
<STYLE>
#base { position: absolute;left:200;top:0;z-index:1}
#course { position: absolute;left:200;top:0;z-index:0 }
</STYLE>
<div id="base">
<img src="baseimage.jpg" height=639 width=639>
</div>
<div id="course">
<img src="courseimage.jpg" height=639 width=639>
</div>
<script type="text/javascript">
function check(form)
{
if (course.checked)
{
if (document.layers)
document.layer.zIndex = 2;
else if (document.all)
document.all.layer.style.zIndex = 2;
else if (document.getElementById)
document.getElementById('layer').style.zIndex = 2;
}
</script>
</head>
<body>
<form NAME="viewoverlay"><input TYPE=CHECKBOX NAME="course" value="Course Area" >Course
Area
<br><input type="button" value="View" name="msw" onClick="check(this.form)"></form>
</body>
</html>
Any help?
Matt