There are two ways to fix this problem, but I haven't been able to figure out either. When someone goes to my site, I want a javascript popup to open on the right side and I want it to always be on top. I've figured everything out and gotten it to work with the following code, but I can't figure out how to implement the always on top javascript code (<BODY onBlur="window.focus();"> ) into the pop-up window.
Here is the code I'm using, placed in the body of the main page:
So I either need to know how to work the onBlur code snippet into the aforementioned code, or how to make the window the code creates load another page with the onBlur code, although the former would be better.
Also, what code could be inserted to make the pop-up automatically close when the user goes to a different page from the one generating the pop-up?
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)
to my knowledge (in the first script), not specifying a position defaults it to top=0px, left=0px. but thats just an educated guess
as for the image. in short, no. that would be asking the image to simply float in space.
the web page is just a container, if you will, for all the objects to be placed in. you need a url.
however you can give the semblance of a single image floating using <div>'s.
do a forum search on "floating div" and you should find a prewritten script or two to do exactly what you want.
__________________
Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)