View Full Version : popup homepage?


stargrl329
07-05-2003, 06:20 PM
im trying to make the first page of my site (my index.html) a popup window. (actually i dont know if thats the right term, i just want a window of a specific size.) all the scripts i found had you put a link in your page to click on... how would i do this?

thanks ^_^

Loren
07-05-2003, 08:00 PM
Ok how you would do that would be to. Change the bold. Make index.html say this:

<html>
<head>
<title>Your Title </title>
</head>
<body>
<SCRIPT language="JavaScript">window.open("yourpageurl ")</SCRIPT>
</body>
</html>

So when they went to the site index.html and what you wanted to be your popup homepage would be a diffrent name but would popup when they went to the site like this example.

www.loren.faithweb.com/ex. I can't get it to where you can control the size though. Mabey someone else can do that.

stargrl329
07-06-2003, 05:24 PM
thanks =)))

ok i got the page the way i wanted it... i had to have a first page with a link, and when you click on the link that page closes and a chromeless window pops up.
but... still need help with 2 things...
1. i'm looking to make the top part of the chromeless window (you know, the part with the close/minimize buttons, etc) transparent... i tried using this chroma filter but it doesn't work. (i changed my top part to limegreen to do this):
<style type="text/css">
p img{filter:chroma(color=limegreen)}
</style>
but it didn't do anything. i put it in the head tag of both the page where you click the link, and the page inside the chromeless window. no luck. anyone know how i can get this top part to be transparent?

2. i got the first page with the link on it to close automatically when the link is clicked... however, in IE a small [and quite annoying] box comes up saying "The web page you are viewing is trying to close this window. Do you want to close this window?" is there a way i can bypass the box?

thanks so much!

Loren
07-06-2003, 05:38 PM
I doubt you can bypass the box because it is a secruity messure in case the window has an ActiveX control that may take over your system.
Sorry I could help with the code for it to comeup automaticly. :(

stargrl329
07-06-2003, 05:42 PM
oh thats ok =) thanks for your help!