|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Keep window 'Always on Top' w/ Javascript...
Is it possible using javascript to keep a window on top of all others, even if the user clicks a different window?? I have found examples of code but can't get them to work, I'm missing something?!? Here are examples of code I have found:
1. <div style="position: fixed; top: 0px;><flash code></div> 2. <script language=JavaScript1.2> //<!-- -Hide from old browsers- --> Function stayontop(){//Brings the current window on top of others self.focus(); setTimeout("stayontop()", 10000);//1000=1sec. Adjust seconds here } stayontop(); //use make this function work on any event say onload onclick onanything </SCRIPT> What do I do with these??? Thanks!! |
|
#2
|
||||
|
||||
|
RE: Keep window 'Always on Top' w/ Javascript...
The first try won't work
all top does is sets how far the top edge of an element is above/below the top edge of the parent element. See this link http://www.w3schools.com/css/css_positioning.asp This might help http://www.hypergurl.com/messageontop.html |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Keep window 'Always on Top' w/ Javascript... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|