source: spip-zone/_squelettes_/RevueLigne/win_width.htc @ 113060

Last change on this file since 113060 was 40543, checked in by tony.gheeraert@…, 9 years ago
File size: 493 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.