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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
<!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>
<title>TEST</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript">
//<![CDATA[
// gestion du menu
$(document).ready(function(){
$("div.blocTab > ul.radbut > li > h5 > a").click(function(e){
e.preventDefault();
var li = $(this).parent().parent();
var ul = $(li).parent();
if (!$(li).hasClass("menuActive")){
$(ul).children().each(function(i, li2){
if ($(li2).hasClass("menuActive")){
$(li2).removeClass("menuActive");
$(li2).find("div").hide("normal");
}
});
$(li).find("div").show("normal");
$(li).addClass("menuActive");
}
});
$("div.blocTab .radbut:eq(0) h5 a").triggerHandler("click");
});
//]]>
</script>
<style type="text/css">
.spacer {
clear: both;
}
div.blocTab{
float:left;
margin:0;
padding:0;
background-color:green;
}
/* inf a IE7 */
/* pour avoir le layout */
* html div.blocTab ul{
/*zoom:1;*/
width:230px;
}
div.blocTab ul{
min-width:230px;
}
div.blocTab p{
margin:2px 2px 4px 2px;
padding:4px 8px;
text-align:center;
background-color:white;
}
div.blocTab h4{
margin:2px 20px 0px 6px;
padding:1px 8px 3px 8px;
color:black;
background-color:#ffffff;
text-decoration:underline;
border-top: 4px solid red;
}
div.blocTab ul{
list-style:none;
color:black;
background-color:white;
margin:0 2px;
padding:0;
}
div.blocTab ul li{
margin:0;
padding:0;
}
div.blocTab h5{
margin:0;
padding:0;
border-bottom:2px solid blue;
}
div.blocTab h5 a{
display:block;
padding:3px 3px 3px 20px;
margin:0;
text-decoration:none;
font-weight:bold;
background-color:yellow;
color:black;
}
div.blocTab h5 a:hover{
display:block;
padding:3px 3px 3px 25px;
margin:0;
background-color:purple;
}
div.blocTab ul li div{
margin: 5px 10px 0 10px;
padding: 0 0 10px 0;
line-height: 1.5em;
}
div.blocTab ul.radbut li div{
display:none;
}
</style>
</head>
<body style="min-width: 750px;">
<div class="blocTab">
<h3>AAAAAAA</h3>
<h4>bbbbbbb</h4>
<ul class="radbut"> <!-- gestion menu radio buton -->
<li>
<h5><a href="#">cccc</a></h5>
<div>
<input type="checkbox" id="P0" checked="checked"/> <label for="P0">iiii</label><br/>
<input type="checkbox" id="P1" checked="checked"/> <label for="P1">jjjjj</label><br/>
</div>
</li>
<li>
<h5><a href="#">dddd</a></h5>
<div>
<input type="text" value="uuuuuuuu" size="17" maxlength="17"/>
</div>
</li>
<li>
<h5><a href="#">eeeeeee</a></h5>
<div>
<select>
<option value="0">toto</option>
</select>
</div>
</li>
<li>
<h5><a href="#">oooo</a></h5>
<div>
<select>
<option value="0">riri</option>
</select>
</div>
</li>
</ul>
<p>
<input type="button" id="yooo" value="yooo"/>
</p>
</div>
<div class="spacer"></div>
</body>
</html> |
Partager