[ Index ] |
|
Code source de Serendipity 1.2 |
1 /* 2 ------------------------------------------------ 3 PVII Equal CSS Columns scripts -Version 2 4 Copyright (c) 2005 Project Seven Development 5 www.projectseven.com 6 Version: 2.1.0 7 ------------------------------------------------ 8 */ 9 function P7_colH2(){ //v2.1.0 by PVII-www.projectseven.com 10 var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){ 11 for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom='';}for(i=1;i<dA.length;i+=2){ 12 oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight; 13 if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{ 14 dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1; 15 document.p7eqth=document.body.offsetHeight; 16 document.p7eqtw=document.body.offsetWidth;} 17 } 18 function P7_eqT2(){ //v2.1.0 by PVII-www.projectseven.com 19 if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();} 20 } 21 function P7_equalCols2(){ //v2.1.0 by PVII-www.projectseven.com 22 var c,e,el;if(document.getElementById){document.p7eqc=new Array(); 23 document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null; 24 c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]); 25 if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){ 26 document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el}} 27 setInterval("P7_eqT2()",10);} 28 } 29 function P7_eqA2(el,p,pt){ //v2.1.0 by PVII-www.projectseven.com 30 var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p; 31 g.style.paddingBottom=np+"px";if(np<pt){np+=inc; 32 setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);} 33 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |