Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i create a window which stays on top

Status
Not open for further replies.

lumberjakel

Programmer
Joined
Oct 27, 2001
Messages
29
Location
NL
I'm making a forum, and i recently introduced some smileys. What I wanted to do is making a new browser window, with some img's. These img's insert a small text like "[SM01]" so my php script can parse the code. But after the click I want to return to my orig. window to type the msg, but the custom window shouldn't disappear, it should StayOnTop (use microslang here...)

Jaap
 
You could try something like this:

<Script Language=&quot;Javascript&quot;>
<!--
function keepFocus()
{
self.focus();
test = setTimeout(&quot;keepFocus()&quot;,250)
}
//-->
</Script>

<BODY onLoad=&quot;keepFocus();&quot;>

 
This solution would make sure that the window stays on top,
however the other window is needed, so I want the custom window to be out of focus, but StayOnTop aswell...
 
Ok, but i'm still open for suggestions... thnx anyway
 
I have a possible idea. Instead of creating a pop up window how about creating an invisible layer. You can have the layer be visible or invisible and it will stay on top while the main page keeps the focus. I'm not sure how to make the layer scroll as the user does but I know it's possible.
 
Thanks, but I wanted to avoid the use of layers, because when a layer is made visible, the animated gifs don't animate....
At least when I tried...
Jaap
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top