New Revised CSS Library Forums Web Tools
FAQs Awards Usage Terms Contact

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en" xml:lang="en">

<script type="text/javascript" src=""></script>

<script type="text/javascript" src="stayontop.js">

* Stay on Top content script- (c) Dynamic Drive DHTML code library (
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at for this script and 100s more


<script type="text/javascript">

targetid: 'examplediv',
orientation: 3,
position: [5, 10],
fadeduration: [1000, 1000],
frequency: 0.95,
hideafter: 15000

targetid: 'ajaxdiv',
orientation: 2,
position: [20, 100],
hideafter: 10000,
externalsource: 'bc.htm'



<div id="examplediv" style="width:140px; border:1px solid gray; padding: 10px; background: lightyellow">

This DIV is static and shown 95% of the time the page loads. It's positioned relative to the lower left corner of the window. It disappears after 15 seconds.