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 188 189
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function getURLParamsByUrl(url)
{
var paramsArray = new Array();
var strHref = url;
var posInterro=strHref.indexOf("?");
if ( posInterro > -1 )
{
var strQueryString = strHref.substr(posInterro+1);
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
{
var nameValue = aQueryString[iParam].split("=");
paramsArray.push(nameValue);
}
}
return paramsArray;
}
function getURLParams()
{
return getURLParamsByUrl(window.location.href);
}
function getParamValue(params,paramName)
{
var i;
for (i=0;i<params.length;i++)
{
if (paramName==params[i][0]) return params[i][1];
}
return null;
}
function switchPart()
{
if ( document.getElementById("part").style.display != "block")
{
document.getElementById("inst").style.display = "none";
document.getElementById("corp").style.display = "none";
document.getElementById("part").style.display = "block";
document.getElementById("ongPart").style.height = "32px";
document.getElementById("ongCorp").style.height = "30px";
document.getElementById("ongInst").style.height = "30px";
document.getElementById("ongPart").style.backgroundColor = "white";
document.getElementById("ongCorp").style.backgroundColor = "#dae2e9";
document.getElementById("ongInst").style.backgroundColor = "#dae2e9";
}
}
function switchCorp()
{
if ( document.getElementById("corp").style.display != "block")
{
document.getElementById("inst").style.display = "none";
document.getElementById("corp").style.display = "block";
document.getElementById("part").style.display = "none";
document.getElementById("ongPart").style.height = "30px";
document.getElementById("ongCorp").style.height = "32px";
document.getElementById("ongInst").style.height = "30px";
document.getElementById("ongPart").style.backgroundColor = "#dae2e9";
document.getElementById("ongCorp").style.backgroundColor = "white";
document.getElementById("ongInst").style.backgroundColor = "#dae2e9";
}
}
function switchInst()
{
if ( document.getElementById("inst").style.display != "block")
{
document.getElementById("inst").style.display = "block";
document.getElementById("corp").style.display = "none";
document.getElementById("part").style.display = "none";
document.getElementById("ongPart").style.height = "30px";
document.getElementById("ongCorp").style.height = "30px";
document.getElementById("ongInst").style.height = "32px";
document.getElementById("ongPart").style.backgroundColor = "#dae2e9";
document.getElementById("ongCorp").style.backgroundColor = "#dae2e9";
document.getElementById("ongInst").style.backgroundColor = "white";
}
}
</script>
<style>
#part{
display:block;
width:570px;
border:2px solid #b8cad6;
background-color:white;
padding-top:7px;
}
#corp{
display:none;
width:570px;
border:2px solid #b8cad6;
background-color:white;
padding-top:7px;
}
#inst{
display:none;
width:570px;
border:2px solid #b8cad6;
background-color:white;
padding-top:7px;
}
#onglets{
width:570px;
position:relative;
height:32px;
text-align:center;
vertical-align:middle;
}
#ongPart{
width:188px;
position:absolute;
left:0;
height:32px;
border:2px solid #b8cad6;
border-bottom:none;
background-color:white;
}
#onglets a{
line-height:30px;
}
#ongCorp{
width:188px;
position:absolute;
left:190px;
right:190px;
height:30px;
border:2px solid #b8cad6;
border-bottom:none;
background-color:#dae2e9;
}
#ongInst{
width:190px;
position:absolute;
right:-4px;
height:30px;
border:2px solid #b8cad6;
border-bottom:none;
background-color:#dae2e9;
}
#tarifs{
width:570px;
}
</style>
</head>
<body>
<div id="tarifs">
<div id="onglets">
<div id="ongPart"><a href="javascript:switchPart();">Tarifs particuliers</a></div>
<div id="ongCorp"><a href="javascript:switchCorp();">Tarifs Entreprises</a></div>
<div id="ongInst"><a href="javascript:switchInst();">Tarifs Education</a></div>
</div>
<div id="part"> Onglet 1 (Part) </div>
<div id="corp"> Onglet 2 (Corp)</div>
<div id="inst"> Onglet 3 (Inst)</div>
</div>
<script type="text/javascript">
var choix = getParamValue(getURLParams(),"choix");
if ( choix == 'inst' ) switchInst();
else if (choix == 'corp' ) switchCorp();
else switchPart();
</script>
</body>
</html> |