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
| <script type="text/javascript" src="js/objet_defilant.js"></script>
<script type="text/javascript">
<!--
function Marche_arret (id)
{
if(typeof this.DF_ObjetParam == 'undefined' || typeof this.DF_ObjetParam[id] == 'undefined')
{
DF_ObjetDefilant(id,'auto','r','g','8','0','0','500');
}
else
{
DF_ObjetSensInverse(id);
}
}
-->
</script>
<style type="text/css">
<!--
#cadre_images {
position: relative;
border: 18px solid black;
width:600px;
height:467px;
margin: 2em auto 0 auto;
overflow: hidden;
}
/* Base */
body { background-color:#dcdcdc; color:#000000; font-family:sans-serif; font-size:medium; font-style:normal;
font-weight:normal; line-height:normal; letter-spacing:normal; }
h1,h2,h3,h4,h5 { font-family:serif; }
div,p,h1,h2,h3,h4,h5,h6,ul,ol,dl,form,table,img { margin:0px; padding:0px; }
h1 { font-size:2em; text-shadow: 4px 4px 4px #bbbbbb; text-align:center; }
p { padding:6px; }
div#conteneur { width:95%; min-width:800px; min-height:500px; margin:12px auto; background-color:#FFFFFF;
color:#000000; border:1px solid #666666; }
/* Test */
.item {
margin:24px;
width:240px;
border:1px solid grey;
}
.item a img {
width:120px;
height:120px;
margin-bottom:6px;
}
-->
</style>
</head><body>
<div id="cadre_images">
<div id="images_defilant">
<!-- menu !-->
<h1>Forum jQuery</h1>
<div class="item">
<a href="#">
<img src="http://danielhagnoul.developpez.com/images/imageTest.png" alt="Cycliner" title=""/>
<div class="caption">
<a href="#">Mon cv</a>
<p>Mon cv est est au format doc, téléchargeable.</p>
</div>
</div>
<script charset="utf-8" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script>
$(function(){
var zoom = "1.80";
$(".caption").hide();
$(".item").hover(
function() {
var obj = $(this),
w = parseInt(120 * zoom, 10), // 120px la largeur de l'image
h = parseInt(120 * zoom, 10); // 120px la hauteur de l'image
// Move and zoom the image
obj
.find('img')
.stop(false,true)
.animate(
{
'width':w,
'height':h
},
200
);
// Display the caption
obj
.children('.caption')
.stop(false,true)
.fadeIn(200);
},
function() {
var obj = $(this),
w = "120px", // la taille d'origine de l'image
h = "120px"; // la taille d'origine de l'image
// Reset the image
obj
.find('img')
.stop(false,true)
.animate(
{
'width': w,
'height': h
},
100
);
// Hide the caption
obj
.children('.caption')
.stop(false,true)
.fadeOut(200);
}
);
});
</script>
<!-- fin menu !-->
<img src="images/france_17_11081g.jpg" alt="source image : http://www.panoram-art.com/" title="source image : http://www.panoram-art.com/"></div>
</div>
<div onclick="Marche_arret('images_defilant')" onmouseover="DF_ObjetNavigMous('images_defilant','out')" onmouseout="DF_ObjetNavigMous('images_defilant','over')" style="position: relative; width: 40px; margin: auto; cursor: pointer; z-index: 10; top: -18px;"><img src="images/fleche_aller_retour_violet.png" alt="" title="" height="15" width="40">
</div> |
Partager