- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head>
- <SCRIPT LANGUAGE="JavaScript">
- //URL de la page a ouvrir Dans pop-under
- function ow(theURL,larg,haut)
- <!------ mettre larg à 77 pour ouvrir à 100% en 800---------->
- {
- info = null;
- larg = Math.ceil(screen.width * (larg/100)*(1024/screen.width));
- haut = Math.ceil(screen.height * (haut/100));
- <!------ position en 5/5 screenX Y et outerwidth netscape---------->
- if(info) {info.close();
- info = window.open(theURL,"info1","scrollbars=yes,menubar=yes,resizable=yes,width="+ larg +"px,height="+ haut +"px,outerwidth="+ larg +"px,outerheight="+ haut +"px,top=5,left=5,screenX=5,screenY=5");
- info.focus();
- }
- else {
- info = window.open(theURL,"info1","scrollbars=yes,menubar=yes,resizable=yes,width="+ larg +"px,height="+ haut +"px,outerwidth="+ larg +"px,outerheight="+ haut +"px,top=5,left=5,screenX=5,screenY=5");
- info.focus();
- }
- }
- var popunder= new String();
- var popun=new Array();
- var resultat = 0;
- popun[0]="http://www.allhtml.com/" ;
- popun[1]="http://www.javascriptfr.com/" ;
- popun[2]="http://www.javascript.com/" ;
- popun[3]="http://www.internet.com/" ;
-
- function calcarray() {
- resultat = Math.round(Math.random()*10);
- <!----- ici 3 max array -------->
- if( resultat > 3) {calcarray();}
- popunder= popun[resultat];
- }
- calcarray();
- <!---- 65 en% larg 70 en % haut------->
- ow(popunder,65,70);
-
- </SCRIPT>
-
- </head>
- <body>
- <p>Hello</p>
- </body>
- </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
//URL de la page a ouvrir Dans pop-under
function ow(theURL,larg,haut)
<!------ mettre larg à 77 pour ouvrir à 100% en 800---------->
{
info = null;
larg = Math.ceil(screen.width * (larg/100)*(1024/screen.width));
haut = Math.ceil(screen.height * (haut/100));
<!------ position en 5/5 screenX Y et outerwidth netscape---------->
if(info) {info.close();
info = window.open(theURL,"info1","scrollbars=yes,menubar=yes,resizable=yes,width="+ larg +"px,height="+ haut +"px,outerwidth="+ larg +"px,outerheight="+ haut +"px,top=5,left=5,screenX=5,screenY=5");
info.focus();
}
else {
info = window.open(theURL,"info1","scrollbars=yes,menubar=yes,resizable=yes,width="+ larg +"px,height="+ haut +"px,outerwidth="+ larg +"px,outerheight="+ haut +"px,top=5,left=5,screenX=5,screenY=5");
info.focus();
}
}
var popunder= new String();
var popun=new Array();
var resultat = 0;
popun[0]="http://www.allhtml.com/" ;
popun[1]="http://www.javascriptfr.com/" ;
popun[2]="http://www.javascript.com/" ;
popun[3]="http://www.internet.com/" ;
function calcarray() {
resultat = Math.round(Math.random()*10);
<!----- ici 3 max array -------->
if( resultat > 3) {calcarray();}
popunder= popun[resultat];
}
calcarray();
<!---- 65 en% larg 70 en % haut------->
ow(popunder,65,70);
</SCRIPT>
</head>
<body>
<p>Hello</p>
</body>
</html>