Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/09/2009, 10:15
kaiseer
 
Fecha de Ingreso: septiembre-2009
Mensajes: 86
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Como hacer que aparesca un mensaje al abrir la pagina!!!

HOla Analcafe.. seria asi..

En el Head

Código head:
Ver original
  1. <script language="javascript">
  2. function popupWin() {
  3. text =  "<html>\n<head>\n<title>Nuevos recursos</title>\n<body>\n";
  4. text += "<center>\n<br>";
  5. text += "<a href='AQUI LA DIRECCION DE LA VENTANA' target='_blank'><h2>Directorio de recursos web</h2></a>";
  6. text += "</center>\n</body>\n</html>\n";
  7. setTimeout('windowProp(text)', 1000);       // 1 segundo para abrir
  8. }
  9. function windowProp(text) {
  10. newWindow = window.open('','newWin','width=300,height=100');
  11. newWindow.document.write(text);
  12. setTimeout('closeWin(newWindow)', 5000);    // 5seg. tiempo que dura abierta
  13. }
  14. function closeWin(newWindow) {
  15. newWindow.close();              //
  16. }
  17. //  End -->
  18. </script>

y en el body colocas esto..

<body onLoad="popupWin()">

ahi esta indicada en el head la direccion de la pagina.. y el tiempo que tarda en abrir y luego en cerrar lo puedes cambiar..!!

Espero te sirva..! SAlu2!