[SPIP] +2.1.12
[velocampus/web/www.git] / www / squelettes-dist / win_width.htc
diff --git a/www/squelettes-dist/win_width.htc b/www/squelettes-dist/win_width.htc
new file mode 100644 (file)
index 0000000..ed5a829
--- /dev/null
@@ -0,0 +1,23 @@
+<public:component>
+<public:property name="retrait">
+<script language="JScript">
+
+function fixWidth(){
+       if (element.className == "spip_cadre") retrait = 24; 
+       else retrait = 16; 
+
+       if (element.offsetWidth) {
+               style.width = element.offsetWidth - retrait;
+       } else {
+               style.width = "90%";
+               //alert (element.parentElement.tagName);
+       }
+}
+
+var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
+if (supported) fixWidth();
+
+
+</script>
+</public:component>
+