- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>Popup</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <SCRIPT LANGUAGE="JavaScript">
- //<!--
- /*(c) Nicolas DUBIEN - 2006*/
- function ouvrir_popup(adresse_popup,optionspopup) {
- window.open(adresse_popup,',optionspopup);
- }
- function popuphasard() {
- var toutelespopup=new Array();
- toutelespopup[0]="http://www.javascriptfr.com/codes/FAUSSE-PAGE-CHARGEMENT_38256.aspx";
- toutelespopup[1]="http://www.javascriptfr.com/codes/SUDOKID-EST-SUDOKU-AVEC-SEULEMENT-16-CASES_38239.aspx";
- toutelespopup[2]="http://www.javascriptfr.com/codes/TEXTES-CLIGNOTANTS-AFFICHAGE-TEMPS-PASSE-DEPUIS-DEBUT-CONNEXION_38201.aspx";
- toutelespopup[3]="http://www.javascriptfr.com/codes/LOTO_38170.aspx";
- toutelespopup[4]="http://www.javascriptfr.com/codes/ENTRAINER-MATH-GRACE-EXERCICES_38167.aspx";
- toutelespopup[5]="http://www.javascriptfr.com/codes/INTERAGIR-AVEC-UTILISATEUR_38166.aspx";
- popuphasard=Math.round(Math.random()*5);
- var hauteur=Math.round(Math.random()*500)+250;
- var largeur=Math.round(Math.random()*500)+250;
- var haut=Math.round(Math.random()*500)+100;
- var gauche=Math.round(Math.random()*500)+100;
- var yesno=new Array();
- yesno[0]="yes";
- yesno[1]="no";
- var changertaille=Math.round(Math.random()*2);
- var zonadresse=Math.round(Math.random()*2);
- var afficherascenseur=Math.round(Math.random()*2);
- var barredemenu=Math.round(Math.random()*2);
- var status=Math.round(Math.random()*2);
- var barredelien=Math.round(Math.random()*2);
- ouvrir_popup(toutelespopup[popuphasard],'height='+hauteur+',width='+largeur+',resizable='+yesno[changertaille]+',location='+yesno[zonadresse]+',scrollbars='+yesno[afficherascenseur]+',menubar='+yesno[barredemenu]+',left='+gauche+',top='+haut+',status='+yesno[status]+',directories='+yesno[barredelien]);
- }
- //-->
- </script>
- </head>
-
- <body onLoad="popuphasard()">
- </body>
- </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Popup</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
//<!--
/*(c) Nicolas DUBIEN - 2006*/
function ouvrir_popup(adresse_popup,optionspopup) {
window.open(adresse_popup,',optionspopup);
}
function popuphasard() {
var toutelespopup=new Array();
toutelespopup[0]="http://www.javascriptfr.com/codes/FAUSSE-PAGE-CHARGEMENT_38256.aspx";
toutelespopup[1]="http://www.javascriptfr.com/codes/SUDOKID-EST-SUDOKU-AVEC-SEULEMENT-16-CASES_38239.aspx";
toutelespopup[2]="http://www.javascriptfr.com/codes/TEXTES-CLIGNOTANTS-AFFICHAGE-TEMPS-PASSE-DEPUIS-DEBUT-CONNEXION_38201.aspx";
toutelespopup[3]="http://www.javascriptfr.com/codes/LOTO_38170.aspx";
toutelespopup[4]="http://www.javascriptfr.com/codes/ENTRAINER-MATH-GRACE-EXERCICES_38167.aspx";
toutelespopup[5]="http://www.javascriptfr.com/codes/INTERAGIR-AVEC-UTILISATEUR_38166.aspx";
popuphasard=Math.round(Math.random()*5);
var hauteur=Math.round(Math.random()*500)+250;
var largeur=Math.round(Math.random()*500)+250;
var haut=Math.round(Math.random()*500)+100;
var gauche=Math.round(Math.random()*500)+100;
var yesno=new Array();
yesno[0]="yes";
yesno[1]="no";
var changertaille=Math.round(Math.random()*2);
var zonadresse=Math.round(Math.random()*2);
var afficherascenseur=Math.round(Math.random()*2);
var barredemenu=Math.round(Math.random()*2);
var status=Math.round(Math.random()*2);
var barredelien=Math.round(Math.random()*2);
ouvrir_popup(toutelespopup[popuphasard],'height='+hauteur+',width='+largeur+',resizable='+yesno[changertaille]+',location='+yesno[zonadresse]+',scrollbars='+yesno[afficherascenseur]+',menubar='+yesno[barredemenu]+',left='+gauche+',top='+haut+',status='+yesno[status]+',directories='+yesno[barredelien]);
}
//-->
</script>
</head>
<body onLoad="popuphasard()">
</body>
</html>