Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/07/2003, 08:17
V_G
Invitado
 
Mensajes: n/a
Puntos:
Prueba a combinar este script con tu código PHP
Código PHP:
<script>
function 
openpopup(){
window.open("adios.htm","","width=300,height=338")
}

function 
get_cookie(Name) {
  var 
search Name "="
  
var returnvalue "";
  if (
document.cookie.length 0) {
    
offset document.cookie.indexOf(search)
    if (
offset != -1) { // if cookie exists
      
offset += search.length
      
// set index of beginning of value
      
end document.cookie.indexOf(";"offset);
      
// set index of end of cookie value
      
if (end == -1)
         
end document.cookie.length;
      
returnvalue=unescape(document.cookie.substring(offsetend))
      }
   }
  return 
returnvalue;
}

function 
loadpopup(){
if (
get_cookie('popped')==''){
openpopup()
document.cookie="popped=yes"
}
}

</script> 
Este script abre una ventana cuando se cierra el navegador.
Ahora sólo tienes que incluirle tu código PHP y debería funcionar...