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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page type</title>
<style type="text/css">
body {
margin: 0px;
padding: 0px;
height: 100%;
background: #333333 url(fd-body2.png) center repeat-y;
color: #666666;
text-align: center;
}
.haccordion {
position: absolute;
top:0px;
left: 50%;
width:auto;
height: 100%;
margin-top: 0px;
margin-left: -375px;
}
.haccordion .header, .haccordion .content{
float: left;
height: 100%;
}
.haccordion .header {
width: 50px;
background: url(fd-header.png) top repeat-y;
color: #fff;
border-right: #FFF solid 2px;
cursor: pointer;
}
.haccordion .content {
background: url(fd-content.png) bottom repeat-x scroll;
display: none;
color: #000000;
width: 0px;
overflow:hidden;
}
.haccordion .content p {
margin: 5px;
}
</style>
<script type="text/javascript" src="../lib/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
(function($){
$.fn.haccordion = function(params){
var opts = $.extend({}, {speed: 800,headerclass: "header",contentclass: "content",contentwidth: 550}, params);
var obj = $("." + opts.contentclass + ":last",this).css({
width: opts.contentwidth,
display: "block"
});
return this.each(function(){
$("."+opts.headerclass,this).click(function(){
$(obj).animate({
width: 0
},opts.speed);
obj = $(this).next("div."+opts.contentclass);
$(obj).animate({
width: opts.contentwidth
}, opts.speed);
});
});
};
})(jQuery);
$(document).ready(function(){
$(".haccordion").haccordion();
});
</script>
</head>
<body>
<div class="haccordion">
<div class="header">
<img style="padding-top: 10px;" src="head-contact3.png" alt="contact" />
</div>
<div class="content">
<p>
This is a sample of content for Content1 with a large text, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing
</p>
</div>
<div class="header">
<img style="padding-top: 10px;" src="head-graphisme3.png" alt="contact" />
</div>
<div class="content">
<p>
This is a sample of content for Content2 with a large text, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing
</p>
</div>
<div class="header">
<img style="padding-top: 10px;" src="head-webdesign3.png" alt="contact" />
</div>
<div class="content">
<p>
This is a sample of content for Content3 with a large text, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing
</p>
</div>
<div class="header">
<img style="padding-top: 10px;" src="head-accueil3.png" alt="contact" />
</div>
<div class="content">
<p align="center">
<img src="bulle-eikona.png" alt="bulee-eikona" />
</p> <!-- ce tag p était absant ! -->
<p>
This is a sample of content for Content4 with a large text, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing, testing
</p>
</div>
</div>
</body>
</html> |
Partager