1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<!doctype html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#divnews").mouseover(function(){
$("#divnews").animate({
fontSize: "3em",
}, 300 );
});
$("#divnews").mouseout(function(){
$(this).animate({
fontSize: "1em"
}, 100 );
});
});
</script>
<style>
div {
background-color:#bca;
width:100px;
border:1px solid green;
}
</style>
</head>
<body>
<div id="divnews">Hello!</div>
</body>
</html> |
Partager