accueil: correction d'un lien (pour Gustavo)
[aidenligne_francais_universite.git] / dist / win_width.htc
CommitLineData
c495c100
P
1<public:component>
2<public:property name="retrait">
3<script language="JScript">
4
5function fixWidth(){
6 if (element.className == "spip_cadre") retrait = 24;
7 else retrait = 16;
8
9 if (element.offsetWidth) {
10 style.width = element.offsetWidth - retrait;
11 } else {
12 style.width = "90%";
13 //alert (element.parentElement.tagName);
14 }
15}
16
17var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
18if (supported) fixWidth();
19
20
21</script>
22</public:component>
23