From 274cb5a663353fec389410c3ea53b7a165426f67 Mon Sep 17 00:00:00 2001 From: ARNO* <arno@rezo.net> Date: Mon, 6 Mar 2006 18:05:56 +0000 Subject: [PATCH] win_width et win_png toujours --- .gitattributes | 1 + dist/win_width.htc | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 dist/win_width.htc diff --git a/.gitattributes b/.gitattributes index 09cc36975d..09eac0c817 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,6 +9,7 @@ dist/puce_rtl.gif -text dist/rien.gif -text dist/style_prive.html -text dist/win_png.html -text +dist/win_width.htc -text ecrire/action/autoriser.php -text ecrire/action/ical.php -text ecrire/action/iconifier.php -text diff --git a/dist/win_width.htc b/dist/win_width.htc new file mode 100644 index 0000000000..ed5a82973a --- /dev/null +++ b/dist/win_width.htc @@ -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> + -- GitLab