|
-
Mar 10th, 2001, 09:40 AM
#1
Hi Aniz,
Here is a simple example of how u can hide/show layers in NS,
This wrote the code in a hurry , so it might contain errors, i will post a better version of the code when i get home from work in few hours.
Hope this helps
Code:
<html>
<head>
<script>
function testit()
{
var vis;
vis=document.layers["test"].visibility;
if (vis=="hide")
{
document.layers["test"].visibility="visible";
document.form1.btn1.value="Hide";
}
else
{
document.layers["test"].visibility="hidden";
document.form1.btn1.value="Show";
}
}
</script>
</head>
<body>
<layer name="test" >
<h1>Test</h1>
</layer>
<br><br><br>
<form name=form1>
<input type =button value="Hide" onclick="javascript:testit()" name=btn1>
</form>
</body>
</html>
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|