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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
<!DOCTYPE HTML>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
/******************/
a {
outline: medium none;
text-decoration: none;
color: #231f20;
}
li {
list-style: none;
}
body {
font: normal 62.5% Arial;
color: #231f20;
text-align: left;
}
.templates2 {
padding: 26px 0 9px;
width: 952px;
margin: 0 auto;
}
.templates2 li {
float: left;
height: 183px;
width: 190px;
}
.templates2 a {
cursor: pointer;
display: block;
height: 122px;
padding: 4px 4px 16px;
text-align: center;
width: 139px;
position: absolute;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: #666 0 0 8px;
-moz-box-shadow: #666 0 0 8px;
box-shadow: #666 0 0 8px;
background: #ffffff;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#ffffff), to(#ffffff));
background: -webkit-linear-gradient(#ffffff, #ffffff);
background: -moz-linear-gradient(#ffffff, #ffffff);
background: -ms-linear-gradient(#ffffff, #ffffff);
background: -o-linear-gradient(#ffffff, #ffffff);
background: linear-gradient(#ffffff, #ffffff);
-pie-background: linear-gradient(#ffffff, #ffffff);
}
.btn15 {
height: 15px;
font: 1em/15px Arial;
text-align: center;
width: 42px;
color: #000;
float: right;
}
.templates2 img {
width: 125px;
height: 110px;
}
#container {
position: relative;
height: 180px;
width: 170px;
}
#container li {
left: 0;
top: 0;
z-index: 0;
text-align:left;
padding-left:0px;
}
#container ul {
text-align:left;
padding-left:0px;
}
</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
var curInd = 0;
$(function () {
var cont_left = $("#container").position().left;
$("UL.templates2 LI").hover(function () {
// hover in
$(this).css("z-index", 2);
animateA($(this).find("A"));
animateA($(this).find("IMG"));
}, function () {
// hover out
$(this).css("z-index", 0);
reversAnimationA($(this).find("A"));
reversAnimationA($(this).find("IMG"));
});
function animateA(obj) {
$(obj).animate({
height: "150",
width: "159",
left: "-=8",
top: "-=10"
}, "1000");
}
function reversAnimationA(obj) {
$(obj).animate({
height: "130",
width: "139",
left: "+=8",
top: "+=10"
}, "1000");
}
});</script>
</head>
<body>
<div id="container" >
<ul class="templates2">
<li>
<a href="" target="_blank">
<img alt="" src="images/centre21.jpg" />
<span class="btnLine">
<span class="btn15" style="background-image:url(images/logoImage.png);">Afficher</span>
</span>
</a>
</li>
</ul>
</div>
</body>
</html> |
Partager