Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.

Javascript: Onmouseover Event



<html>
<head>
<title>Mouseover</title>

<script language="javascript">
function image1()
{
txt1.style.visibility="visible";
img1.style.visibility="visible";
txt2.style.visibility="hidden";
img2.style.visibility="hidden";
}
function image2()
{
txt1.style.visibility="hidden";
img1.style.visibility="hidden";
img2.style.visibility="visible";
txt2.style.visibility="visible";
}
function all()
{
txt1.style.visibility="visible";
img1.style.visibility="visible";
txt2.style.visibility="visible";
img2.style.visibility="visible";
}
</script>

</head>
<body><center>

<div style="visibility=visible" onmouseover="image1()" >
<span id="txt1">image1</span><p>
<img src="pixel_art.jpg" width=200 height=100 id=img1>
</div><p><p><hr>

<div style="visibility=visible" onmouseover="image2()">
<span id="txt2">image2<p></span>
<img src="classic_gaming.jpg" width=200 height=100 name=img2>
</div>

</body>
</html>

No comments:

Post a Comment

Google