Hi,
I am working on one website for that i need like floating window. (mean when visitor will open the website that window has to come and it should be timelimit aftr that it has to close atomatically. for that window more and close is required).


Cheersssss,
Kavithakesav

Assuming that this your index.html

<html>
<head>
<title>index page</title>
<script type="text/javascript">
<!--
window.onload = function()
{
/* You must replaced this with your own page that you wish to be loaded */

window.open('floating.html', targe='_blank', 'toolbar = no, scrollbars = no, location = no,  width = 500, height = 500');
}
//-->
</script>
</head>
<body> 

</body>
</html>

And this will be our floating window, clocked for 10secs and when it reaches its limit this wil automaticaly close!
Enjoy coding...

<html>
<head>
<title>floting page</title>
<script type="text/javascript">
<!--
////////////////////////////////////////
/////////////By Essential///////////
////////////////////////////////////////

window.onload = clocked; function clocked()
{
x = 10;
var timer = setTimeout('clocked()', 1000); 
x = x - timer;

document.getElementById('countdown').innerHTML = 'You still have 0' + x + ' sec.  remaining before this window close!'; 
if ( timer == 10 ) { clearTimeout( timer );window.close(); }
}

//-->
</script>
</head>
<body>
<p align="center"> 
<span id="countdown">&nbsp;</span>
<p>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.