what's the problem in this code ? find it !! and give reply in comment
show layer javascript
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
div{
position: absolute;
left: 250px;
top: 200px;
background-color: #f1f1f1;
width: 280px;
padding: 10px;
color: black;
border: #0000cc 2px dashed;
display: none;
}
}
</style>
<script>
function setVisiblity(id)
{
if(document.getElementById('id').value=="hide layer" )
{
document.getElementById('bt1').value=="show layer";
document.getElementById(id).style.display=="none ";
}
else{
document.getElementById('bt1').value=="hide layer";
document.getElementById(id).style.display=="inline ";
}
}
</script>
</head>
<body>
<input type=button id='bt1' value='show layer' onclick="setVisibility('sub3');" ;>
<div id="sub3"> message box </div>
</body>
</html>
thanks for visit . stay turned . new post available soon .
if you like this then share it to your friends .
keep visiting ANICISTAN.
show layer javascript
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
div{
position: absolute;
left: 250px;
top: 200px;
background-color: #f1f1f1;
width: 280px;
padding: 10px;
color: black;
border: #0000cc 2px dashed;
display: none;
}
}
</style>
<script>
function setVisiblity(id)
{
if(document.getElementById('id').value=="hide layer" )
{
document.getElementById('bt1').value=="show layer";
document.getElementById(id).style.display=="none ";
}
else{
document.getElementById('bt1').value=="hide layer";
document.getElementById(id).style.display=="inline ";
}
}
</script>
</head>
<body>
<input type=button id='bt1' value='show layer' onclick="setVisibility('sub3');" ;>
<div id="sub3"> message box </div>
</body>
</html>
thanks for visit . stay turned . new post available soon .
if you like this then share it to your friends .
keep visiting ANICISTAN.
Tags:
error