How can I acces/modify the properties of a <div>-defined layer using JavaScript user defined function. I am using IE 6.0 on a WIN XP HE.
Assuming that I have a layer defined like this:
<html>
<head>
<title>Exemple de layere</title>
</head>
<body>
<div id="Layer1" style="top:100px;left:100px;height:100px;width:100px;background-color:blue;position:absolute;">
DDDDDDDDDDDDDDDDDDDDDDDDDDDD
</div>
</body>
</html>
How can I access/modify the visibility property of the layer.
I tried:
<script language="JavaScript">
function changeIt(){
document.Layer1.visibility="hide";
}
</script>
but it didn't work out.
Any suggestions ?
Thank you in advance,
Dan C. Nagy
Assuming that I have a layer defined like this:
<html>
<head>
<title>Exemple de layere</title>
</head>
<body>
<div id="Layer1" style="top:100px;left:100px;height:100px;width:100px;background-color:blue;position:absolute;">
DDDDDDDDDDDDDDDDDDDDDDDDDDDD
</div>
</body>
</html>
How can I access/modify the visibility property of the layer.
I tried:
<script language="JavaScript">
function changeIt(){
document.Layer1.visibility="hide";
}
</script>
but it didn't work out.
Any suggestions ?
Thank you in advance,
Dan C. Nagy