Window Sizer For Popup Window

Joined: 11/28/2008

I'm working on a popup window and need a script where I can size that window and it will come up as that size in Firefox. I have one that works in IE7, but not Firefox. I also have a script that works if you click on a link or graphic, but that's not what I want. I want the script to put in the actual popup window file so that when the window pops up it will be 300px by 300px. If anyone knows where I can find a script like this I would greatly appreciate it!

Thanks,

Joy

Joined: 11/28/2008
jhaydon @ Nov 21 2008,
QUOTE(jhaydon @ Nov 21 2008, 11:51 AM)
I'm working on a popup window and need a script where I can size that window and it will come up as that size in Firefox. I have one that works in IE7, but not Firefox. I also have a script that works if you click on a link or graphic, but that's not what I want. I want the script to put in the actual popup window file so that when the window pops up it will be 300px by 300px. If anyone knows where I can find a script like this I would greatly appreciate it!

Thanks,

Joy

So when do you want the script to fire, if you don't want it to happen on a link of some sort?

Regards,

Pete.

Peter Connolly
Technical Director
KP Direction LLC
http://www.kpdirection.com
http://www.kids-faith.com

Joined: 11/28/2008
something like

something like this?

CODE
<style type="text/css">
  #popupbox{
  margin:62px 35% 0 35%;
  padding: 10px;
  width: 300px;
  height: 300px;
  position: absolute;
  background:#fff;
  color:#748620;
  border: 2px solid #bcd91c;
  z-index: 9;
  font-size:1.3em;
  }
  </style>
<script language="JavaScript" type="text/javascript">
  function hidebox(){
        document.getElementById('popupbox').style.visibility="hidden";
  }
  </script>

<body onLoad='setTimeout("hidebox()", 8000);'>
<div id="popupbox">text for popup here</div>

Joined: 11/28/2008
So when do you want the
QUOTE
So when do you want the script to fire, if you don't want it to happen on a link of some sort?

Regards,

Pete.

Hi pete,

Here is a link to the page I need this script for...

www.richardsteele.classicwebdesigns.us/testpage.htm

If you curser over the top left portion of the page it will peel back and says to click on the card. If you click on the card, then the page that I need to re-size is the one that comes up. The peel back code was generated by a software product that my client wanted me to use.

Thanks!

Joy

Joined: 11/28/2008
rmfred @ Nov 21 2008,
QUOTE(rmfred @ Nov 21 2008, 02:18 PM)
something like this?

Hi rmfred,

Thanks for your reply. Unfortunately, I don't think your script is exactly what I'm needing. Please see my reply below with a link for clarification of what I'm needing.

If I'm wrong about your script, please let me know and let me know how it would work /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />.

Thanks!

Joy

Joined: 11/28/2008
jhaydon @ Nov 21 2008,
QUOTE(jhaydon @ Nov 21 2008, 01:20 PM)
If you curser over the top left portion of the page it will peel back and says to click on the card.

Nope - nothing showing in that area on my browsers, either Firefox or IE7... Am I looking in the wrong place?

There's a spelling mistunk on the front page - unforgettabe.... perhaps someone forgot? :-)

Regards,

Pete.

Peter Connolly
Technical Director
KP Direction LLC
http://www.kpdirection.com
http://www.kids-faith.com

Joined: 11/28/2008
Peter Connolly @ Nov 21
QUOTE(Peter Connolly @ Nov 21 2008, 02:37 PM)
QUOTE(jhaydon @ Nov 21 2008, 01:20 PM)
If you curser over the top left portion of the page it will peel back and says to click on the card.

Nope - nothing showing in that area on my browsers, either Firefox or IE7... Am I looking in the wrong place?

There's a spelling mistunk on the front page - unforgettabe.... perhaps someone forgot? :-)

Regards,

Pete.

Thanks for the heads up on the typo /blush.gif" style="vertical-align:middle" emoid=":blush:" border="0" alt="blush.gif" />

The page already looks like it's peeling at the top-left of the page. That's where you should cursor over and it will peel back. It's working on both IE and FF for me. Please try it again and let me know if it's still not working for you.

Thanks!

Joy