Created
March 27, 2013 05:11
-
-
Save mnive93/5251825 to your computer and use it in GitHub Desktop.
mouse hovering effects using webkit transition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript"> | |
function load() | |
{ | |
var aud= new Audio('clown.mp3'); | |
aud.play(); | |
} | |
function sound() | |
{ | |
var a1 = new Audio('crank.mp3'); | |
a1.play(); | |
} | |
</script> | |
<style type="text/css"> | |
body | |
{ | |
background-image:url('bg.gif'); | |
height:690px; | |
width:1400px; | |
position:fixed; | |
} | |
#button | |
{ | |
height:600px; | |
width:600px; | |
margin-left:520px; | |
margin-top:190px; | |
} | |
#button img | |
{ | |
height:100px; | |
width:300px; | |
-webkit-transition: all 1s ease; | |
} | |
#button img:hover | |
{ | |
height: 133px; | |
width: 400px; | |
} | |
</style> | |
</head> | |
<body onload="load()"> | |
<div id="header"> | |
</div> | |
<div id="button"> | |
<table> | |
<tr> | |
<td> | |
<a href="game.html"><img src="play.gif" onmouseover="sound()"/></a> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<a href="rules.html"><img src="rules.gif "onmouseover="sound()"/></a> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<a href="quit.html"><img src="quit.gif" onmouseover="sound()"/></a> | |
</td> | |
</tr> | |
</table> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment