Colocar pop-up no centro do ecra
ola a todos,
Estou a criar 1 pop-up para surgir sempre que o home do meu site seja carregado.
Estou a fazer algo como isto:
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=content-type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625">
<STYLE type=text/css media=screen>@import url( [http://e-revista.com.pt/revistadeimprensa/wp-content/themes/style1.css](http://e-revista.com.pt/revistadeimprensa/wp-content/themes/style1.css) );</STYLE>
<script>
// (C) 2001 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
var theURL = 'popup.html';
var width = 300;
var height = 400;
function popWindow() {
newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height);
}
</script>
<script>
// (C) 2001 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
var howLong = 10000;
t = null;
function closeMe(){
t = setTimeout("self.close()",howLong);
}
</script>
</HEAD>
<BODY scroll=yes onLoad="popWindow()">
Mas quando o pop-up é carregado aparece-me sempre do lado esquerdo... gostava de o mostrar no centro do ecra... mas não sei onde mexer para fazer isso.
espero que em consigam ajudar.
Discussão (6)
Carregando comentários...