SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old October 14th, 2004, 02:52 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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!!

Reply With Quote
  #2  
Old October 14th, 2004, 05:14 AM
Nicky's Avatar
Nicky Nicky is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Neverland
Posts: 606 Nicky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 26 sec
Reputation Power: 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

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Keep window 'Always on Top' w/ Javascript...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway