Subversion Repositories Sites.tela-botanica.org

Rev

Rev 609 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 david 1
<public:component>
2
<public:property name="retrait">
3
<script language="JScript">
4
 
5
function 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
 
17
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
18
if (supported) fixWidth();
19
 
20
 
21
</script>
22
</public:component>
23