[ FRANCAIS ] [ SECONDE LANGUE ] :title: ///////////////////////////////////////////////// // Portable 4p8 layer routines v1.1 (4p8@4p8.com) ///////////////////////////////////////////////// MSIE=(document.all )?1:0; NAVI=(document.layers)?1:0; if ((MSIE==0)&&(NAVI==0)&&(navigator.userAgent.toLowerCase().indexOf('gecko')!=-1)) { BROL=1; } else { BROL=0; } var LastShownMenu=""; function Nop() { } var MouseMoveHandler=Nop; function GetMousePos(e) { if (NAVI) { MouseX=e.pageX; MouseY=e.pageY; } else if (BROL) { MouseX=e.pageX; MouseY=e.pageY; } else { MouseX=window.event.x+document.body.scrollLeft; MouseY=window.event.y+document.body.scrollTop; } MouseMoveHandler(); } if (NAVI) { document.captureEvents(Event.MOUSEMOVE); document.onmousemove=GetMousePos; } else if (BROL) { document.addEventListener("mouseover",GetMousePos,true); } else { document.onmousemove=GetMousePos; } function CreateLayer(id,html) { if (NAVI) { document.write(""); document.write(html); document.write(" "); } else { document.write("
"); document.write(html); document.write(" "); } } function HideLayer(id) { if (NAVI) { document.layers[id].visibility="hide"; } else if (BROL) { document.getElementById(id).style.visibility="hidden"; } else { document.all[id].style.visibility="hidden"; } } function ShowLayer(id) { if (NAVI) { document.layers[id].visibility="show"; } else if (BROL) { document.getElementById(id).style.visibility="visible"; } else { document.all[id].style.visibility="visible"; } } function MoveLayer(id,x,y) { if (BROL) { Brol=document.getElementById(id); } if (x!="") { if (NAVI) { document.layers[id].left=x; } else if (BROL) { Brol.style.left=x+"px"; } else { document.all[id].style.left=x; } } if (y!="") { if (NAVI) { document.layers[id].top=y; } else if (BROL) { Brol.style.top=y+"px"; } else { document.all[id].style.top=y; } } } function ClipLayer(id,x,y,xx,yy) { if (NAVI) { if ( x!="") document.layers[id].clip.left =x; if ( y!="") document.layers[id].clip.top =y; if (xx!="") document.layers[id].clip.right =xx; if (yy!="") document.layers[id].clip.bottom=yy; } else if (BROL) { // TESTE MAIS CA MARCHE PAS !!! Brol.style.clip='rect('+x+'px '+y+'px '+xx+'px '+yy+'px)'; } else { document.all[id].style.clip='rect('+y+' '+xx+' '+yy+' '+x+')'; // rect(top right bottom left): ça c'est un trou du cul qui a écrit la norme, y'a pas ! } } function ZLayer(id,z) { if (NAVI) { document.layers[id].zIndex=z; } else if (BROL) { // PAS TESTE } else { document.all[id].zIndex=z; } } function WindowScroll(x,y) { if (NAVI) { self.scrollTo(x,y); } else if (BROL) { // PAS TESTE } else { window.scroll(x,y); } } function GetLayerX(id) { if (NAVI) { return(document.layers[id].left); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].style.left)); } } function GetLayerY(id) { if (NAVI) { return(document.layers[id].top); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].style.top)); } } function GetLayerWidth(id) { if (NAVI) { return(document.layers[id].clip.width); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].clientWidth)); } } function GetLayerHeight(id) { if (NAVI) { return(document.layers[id].clip.height); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].clientHeight)); } } function GetLanguage() { // ar:arabic be:belarusian bg:bulgarian cz:czech da:danish de:german // el:greek en:english es:spanish et:estonian fr:french // he:hebrew hr:croatian hu:hungarian is:icelandic it:italian // ja:japanese lt:lituanian nl:dutch no:norwegian sv:swedish if (NAVI) { return((navigator.language).substring(0,2)); } else if (BROL) { return('en'); } else { return((navigator.browserLanguage).substring(0,2)); } } title :title: ///////////////////////////////////////////////// // Portable 4p8 layer routines v1.1 (4p8@4p8.com) ///////////////////////////////////////////////// MSIE=(document.all )?1:0; NAVI=(document.layers)?1:0; if ((MSIE==0)&&(NAVI==0)&&(navigator.userAgent.toLowerCase().indexOf('gecko')!=-1)) { BROL=1; } else { BROL=0; } var LastShownMenu=""; function Nop() { } var MouseMoveHandler=Nop; function GetMousePos(e) { if (NAVI) { MouseX=e.pageX; MouseY=e.pageY; } else if (BROL) { MouseX=e.pageX; MouseY=e.pageY; } else { MouseX=window.event.x+document.body.scrollLeft; MouseY=window.event.y+document.body.scrollTop; } MouseMoveHandler(); } if (NAVI) { document.captureEvents(Event.MOUSEMOVE); document.onmousemove=GetMousePos; } else if (BROL) { document.addEventListener("mouseover",GetMousePos,true); } else { document.onmousemove=GetMousePos; } function CreateLayer(id,html) { if (NAVI) { document.write(""); document.write(html); document.write(" "); } else { document.write("
"); document.write(html); document.write(" "); } } function HideLayer(id) { if (NAVI) { document.layers[id].visibility="hide"; } else if (BROL) { document.getElementById(id).style.visibility="hidden"; } else { document.all[id].style.visibility="hidden"; } } function ShowLayer(id) { if (NAVI) { document.layers[id].visibility="show"; } else if (BROL) { document.getElementById(id).style.visibility="visible"; } else { document.all[id].style.visibility="visible"; } } function MoveLayer(id,x,y) { if (BROL) { Brol=document.getElementById(id); } if (x!="") { if (NAVI) { document.layers[id].left=x; } else if (BROL) { Brol.style.left=x+"px"; } else { document.all[id].style.left=x; } } if (y!="") { if (NAVI) { document.layers[id].top=y; } else if (BROL) { Brol.style.top=y+"px"; } else { document.all[id].style.top=y; } } } function ClipLayer(id,x,y,xx,yy) { if (NAVI) { if ( x!="") document.layers[id].clip.left =x; if ( y!="") document.layers[id].clip.top =y; if (xx!="") document.layers[id].clip.right =xx; if (yy!="") document.layers[id].clip.bottom=yy; } else if (BROL) { // TESTE MAIS CA MARCHE PAS !!! Brol.style.clip='rect('+x+'px '+y+'px '+xx+'px '+yy+'px)'; } else { document.all[id].style.clip='rect('+y+' '+xx+' '+yy+' '+x+')'; // rect(top right bottom left): ça c'est un trou du cul qui a écrit la norme, y'a pas ! } } function ZLayer(id,z) { if (NAVI) { document.layers[id].zIndex=z; } else if (BROL) { // PAS TESTE } else { document.all[id].zIndex=z; } } function WindowScroll(x,y) { if (NAVI) { self.scrollTo(x,y); } else if (BROL) { // PAS TESTE } else { window.scroll(x,y); } } function GetLayerX(id) { if (NAVI) { return(document.layers[id].left); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].style.left)); } } function GetLayerY(id) { if (NAVI) { return(document.layers[id].top); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].style.top)); } } function GetLayerWidth(id) { if (NAVI) { return(document.layers[id].clip.width); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].clientWidth)); } } function GetLayerHeight(id) { if (NAVI) { return(document.layers[id].clip.height); } else if (BROL) { return(0); } else { return(parseInt(document.all[id].clientHeight)); } } function GetLanguage() { // ar:arabic be:belarusian bg:bulgarian cz:czech da:danish de:german // el:greek en:english es:spanish et:estonian fr:french // he:hebrew hr:croatian hu:hungarian is:icelandic it:italian // ja:japanese lt:lituanian nl:dutch no:norwegian sv:swedish if (NAVI) { return((navigator.language).substring(0,2)); } else if (BROL) { return('en'); } else { return((navigator.browserLanguage).substring(0,2)); } } title