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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
$(function() {
$('#s').hide();
$('#v').hide();
$('#m').hide();
$('#sun').mouseover( function() {
$('#s').animate({
height: 'toggle'
}, 500, function() {
});
});
$('#sun').mouseout( function() {
$('#s').animate({
height: 'toggle'
}, 500, function() {
});
});
$('#Venus').mouseover( function() {
$('#v').animate({
height: 'toggle'
}, 500, function() {
});
});
$('#Venus').mouseout( function() {
$('#v').animate({
height: 'toggle'
}, 500, function() {
});
});
$('#Mercury').mouseover( function() {
$('#m').animate({
height: 'toggle'
}, 500, function() {
});
});
$('#Mercury').mouseout( function() {
$('#m').animate({
height: 'toggle'
}, 500, function() {
});
});
});
</script>
</head>
<body>
<html>
<body>
<img src="http://www.w3schools.com/tags/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" />
<map id = "planetmap" name="planetmap">
<area id="sun" shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm" />
<area id="Mercury" shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm" />
<area id="Venus" shape="circle" coords="124,58,8" alt="Venus" href="venus.htm" />
</map>
<div id="m">Mercury</div>
<div id="v">Venus</div>
<div id="s">The Sun</div>
</body>
</html>
</body>
</html> |
Partager