RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | webmastering
Encore la PopUp
alexislevrai, le dim. 04 janv. 2009 à 18:24:36
Bonsoir,

j'ai mis en place un cookies pour que ma pop-up ne s'ouvre que la premiere fois, mais je n'arrive pas a intégrer ma popup. J'ai présenté cela comme ca:
<?php
// génère le cookie
$contenu = 'LEON'; // le contenu de votre cookie
setcookie("popup", $contenu, time()+30);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Must Have Online</title>
<meta http-equiv="refresh" content="0;url= store.html" />

</head>
<body>
<?php
// test l'existance d'un cookie apelé "popup"
if (isset($_COOKIE["popup"]))
echo 'ExistePas';
else {
echo 'window.open(\'popup.html\', \'popup\', config=\'height=350, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no\')'."\n";
}
?>
</body>
</html>


seulement lorsque le cookies n'est pas détecté ça m' affiche ceci indow.open(\'popup.html\', \'popup\', config=\'height=350, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no\' et ne m'ouvre donc pas la fenêtre popup.

D'ou vient le problème ?Configuration: Mac OS X
Safari 525.27.1


alexislevrai
04 janv.
Suivant
REPONSES
alexislevrai
04 janv.
zoby44
04 janv.
alexislevrai
04 janv.
zoby44
04 janv.
alexislevrai
04 janv.
zoby44
04 janv.
alexislevrai
04 janv.
zoby44
04 janv.
alexislevrai
04 janv.
zoby44
04 janv.
Version Web
Réalisé par RedShift
no save