View Full Version : My pop-up doesn't come up in the specified seize
Paulo
12-19-2002, 05:37 PM
"First I'd like to acknowledge this forum and its people for all the help provided here. :thumbsup:
Now, I designed a pop-up and inserted the javascript and everything comes-up fine excepting its seize.
It comes-up with the seize of the browser window and I want a normal seize pop-up. In this case, 350x450.
I've designed it with dreaweaver.
Do you know how and where to handle this issue?
I disabled it because it doesn't look good but I can put it up if you need to see it.
I'd appreciate very much any guidance in this matter. :)
Sincerely, Paulo Pereira
www.postalesquevenden.com
zoobie
12-19-2002, 05:45 PM
window.open ("page.html", "name", "width=350, height=450")
Always post your code.:D
Paulo
12-20-2002, 02:07 PM
Thanks Zoobie for your answer and your "suggestion."
Here is the code! The text is in Spanish. I hope it doesn't "hurt" you. :)
<html>
<head>
<title>Postales Que Venden - Newsletter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.fecha { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7pt; font-weight: bold; color: #1E76A7; text-decoration: none; font-style: normal}
.texto1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7pt; font-weight: normal; color: #680068; text-decoration: none}
.copyright { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: normal; color: #000000; text-decoration: none}
.glosario { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #660066; line-height: 3px}
.quiensomos { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px}
.links { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: bold; color: #000000; text-decoration: underline}
a.links:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: bold; color: #990098; text-decoration: underline}
.textonegrita { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #7A007A; text-decoration: none}
.texto { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; color: #7A007A; text-decoration: none}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="351" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" height="28"><img src="images/newsletter/sup.gif" width="350" height="28"></td>
</tr>
<tr>
<td width="40"><img src="images/newsletter/latizq.gif" width="40" height="338"></td>
<td width="289" valign="top">
<form action="mailto:news@postalesquevenden.com" method="post" enctype="text/plain">
<table width="289" border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="textonegrita">
<div align="center">¡Hola! Una pregunta: "¿Ya
se ha subscrito a nuestra Newsletter GRATUITA?". </div>
</td>
</tr>
<tr>
<td class="texto1" height="53">Subscríbase a nuestra Newsletter
gratuita "Promocionar es triunfar" y descubra de los expertos<br>
lo que realmente funciona en lo que respecta<br>
a generar beneficios con la publicidad usando postales. </td>
</tr>
</table>
<table width="289" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="143">
<div align="right"><img src="images/newsletter/tilnombre.gif" width="105" height="13"></div>
</td>
<td width="142">
<input type="text" name="textfield" size="15">
</td>
</tr>
<tr>
<td colspan="2" class="texto1">( nombre y apellido sería mejor,
gracias)</td>
</tr>
<tr>
<td width="143">
<div align="right"><img src="images/newsletter/tilmail.gif" width="105" height="13"></div>
</td>
<td width="142">
<input type="text" name="textfield2" size="15">
</td>
</tr>
<tr>
<td colspan="2">
<div align="left">
<table width="285" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10">
<input type="radio" name="radiobutton" value="radiobutton">
</td>
<td width="275"> <span class="texto1"> Infórmenme de
otras ofertas de empresas con productos relacionados
.</span></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" height="2" class="texto1">
<div align="center">
<table width="285" border="1" cellspacing="0" cellpadding="2" bordercolor="#990098">
<tr>
<td>
<div align="center"><span class="texto1"><b>Oferta especial</b></span><b><span class="texto1"></span></b><span class="texto1"><br>
Reciba de inmediato en su buzón de e-mail el curso
gratis: "¿Por qué promocionar con postales?".</span></div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2" height="35">
<div align="center">
<input type="submit" name="Submit" value="Envíenme la Newsletter">
</div>
</td>
</tr>
<tr>
<td colspan="2" height="33" class="texto1">
<div align="center">Política de privacidad: En absoluto vendemos,
alquilamos, prestamos, transferimos o revelamos su dirección
de e-mail a terceros. </div>
</td>
</tr>
</table>
</form>
</td>
<td width="22" valign="bottom"><img src="images/newsletter/latder.gif" width="21" height="338"></td>
</tr>
<tr>
<td colspan="3"><img src="images/newsletter/inf.gif" width="350" height="34"></td>
</tr>
</table>
</body>
</html>
I hope this is enough for you to see what's wrong with it.
I have no experience with programming at all. I just try to make things go right.
Paulo Pereira
Tanker
12-20-2002, 06:43 PM
Could cheat and do an ....
<body onLoad="window.resizeTo(350,450);">
If you really want to drive em nuts add something like:
onResize="window.resizeTo(350,450);"
into the onload statement :)
Paulo
12-20-2002, 07:17 PM
Thanks Tanker!!!
It worked almost perfectly. I just had to increase the size of the window to be able to see the whole form.
Now, on your comment" If you really want to drive em nuts add something like:
onResize="window.resizeTo(350,450);"
into the onload statement", I didn't get it fully. Please try to forgive my programming ignorance.:)
Anyway, I'm curious on what you mean & I'd like to see it done.
Where do I add "onResize="window.resizeTo(350,450);"
After what? Would you send me the whole code to do that?
I'd appreciate it very much.
Thanks a lot for your support.
This is my first experience with this forum and I'm very thankful to you guys. I wish one day I could do the same for others. Actually, now that I'm thinkin on this, I just have done it in another forum. My first forum, this is my second forum.
Sincerely,
Paulo Pereira
Tanker
12-20-2002, 07:36 PM
Sorry , I should have gone into it a little further...
doing this....
<body onLoad="window.resizeTo(350,450);" onResize="window.resizeTo(350,450);">
means that when the window loads it will resize itself to 350,450... If someone tried to resize the window by dragging one of the sides it will resize itself back to 350,450 when they let go.
Paulo
12-20-2002, 07:57 PM
I see, I see... how funny you are.:)
Thanks again, Tanker.
I'm grateful for your help.
"Let's go out now & eat a big burger wit everything on it. It's on me."
I'm new to these forum things, you know? I'm curious, how long do you spend on this forum and why do you do it? What's your reward? I believe you help as you get some help as well, right?
Thanks, man.
Paulo Sá Pereira
Tanker
12-20-2002, 08:14 PM
These forums have helped me out of many a tough spots. I try to come here once a day and read up, but with the holidays it's been a little hectic around here. Today's a little slow with everyone on vacation so i've been leaving this window open and refreshing it every so often. :)
joeframbach
12-20-2002, 08:27 PM
what about the noresize property? i understand that the resizeTo is a cool effect, but noresize is simpler
Paulo
12-20-2002, 09:48 PM
Cool!
You from North California, I lived six years in LA, I just returned from the US.
Thanks again, and to you yoo Joe.
Happy Hollydays,
Paulo Sá Pereira
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.