- <html>
- <head>
- <title>popup qui s'ouvre aussi sous mozilla firefox</title>
-
-
- <SCRIPT type="text/javascript">
- <!--
- function ScanCookie(variable)
- {
- cook = document.cookie;
- variable += "=";
- place = cook.indexOf(variable,0);
- if (place <= -1)
- return("0");
- else
- {
- end = cook.indexOf(";",place)
- if (end <= -1)
- return(unescape(cook.substring(place+variable.length,cook.length)));
- else
- return(unescape(cook.substring(place+variable.length,end)));
- }
- }
-
- function CreationCookie(nom,valeur,permanent)
- {
- if(permanent)
- {
- dateExp = new Date(2020,01,01);
- dateExp = dateExp.toGMTString();
- ifpermanent = '; expires=' + dateExp + ';';
- }
- else
- ifpermanent = '';
- document.cookie = nom + '=' + escape(valeur) + ifpermanent;
- }
- function click()
- {
-
- if(ScanCookie("dejapopup")==0)
- {
-
-
- popunder = window.open('http://golhem.free.fr','_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=640,height=480')
- popunder.blur()
- window.focus(); //suprimer cette ligne pour faire un popup, suprimer uniqument le comentaire pour garder une popunder
-
-
-
-
- CreationCookie("dejapopup","oui",false)
- }
- }
- //-->
- </SCRIPT>
-
-
- </head>
- <body onclick="click()" onload="click()" >
-
- <p style="font-size:60px">cliquez n'impote ou sur la page pour ouvir une popup</p>
-
- <body>
- </html>
<html>
<head>
<title>popup qui s'ouvre aussi sous mozilla firefox</title>
<SCRIPT type="text/javascript">
<!--
function ScanCookie(variable)
{
cook = document.cookie;
variable += "=";
place = cook.indexOf(variable,0);
if (place <= -1)
return("0");
else
{
end = cook.indexOf(";",place)
if (end <= -1)
return(unescape(cook.substring(place+variable.length,cook.length)));
else
return(unescape(cook.substring(place+variable.length,end)));
}
}
function CreationCookie(nom,valeur,permanent)
{
if(permanent)
{
dateExp = new Date(2020,01,01);
dateExp = dateExp.toGMTString();
ifpermanent = '; expires=' + dateExp + ';';
}
else
ifpermanent = '';
document.cookie = nom + '=' + escape(valeur) + ifpermanent;
}
function click()
{
if(ScanCookie("dejapopup")==0)
{
popunder = window.open('http://golhem.free.fr','_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=640,height=480')
popunder.blur()
window.focus(); //suprimer cette ligne pour faire un popup, suprimer uniqument le comentaire pour garder une popunder
CreationCookie("dejapopup","oui",false)
}
}
//-->
</SCRIPT>
</head>
<body onclick="click()" onload="click()" >
<p style="font-size:60px">cliquez n'impote ou sur la page pour ouvir une popup</p>
<body>
</html>