Monday 1 April 2013

Div hide Technique on JavaScript

<html>
<head>
<script type="text/javascript">
function hideshow() {

if (document.getElementById("adiv").style.display == "none") {
document.getElementById("adiv").style.display = "block";
} else {
document.getElementById("adiv").style.display = "none";
}
}
</script>
</head>
<body>
<a href="javascript:hideshow()">Working Hours</a>
<div id="adiv" style="font: 24px bold; display: none">
<table color="Red">
<tr>
</tr>
<tr>
<td>I Love Javascript...</td>
</tr>
</table>
</div>
</body>
</html>

No comments:

Post a Comment