| | |
For my website i need floating window
Please support our JavaScript / DHTML / AJAX advertiser: 50% Off 6 Months Web Hosting from 1&1. The World's #1 Host!
![]() |
Assuming that this your index.html
And this will be our floating window, clocked for 10secs and when it reaches its limit this wil automaticaly close!
Enjoy coding...
html Syntax (Toggle Plain Text)
<html> <head> <title>index page</title>
javascript Syntax (Toggle Plain Text)
<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>
html Syntax (Toggle Plain Text)
</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 Syntax (Toggle Plain Text)
<html> <head> <title>floting page</title>
javascript Syntax (Toggle Plain Text)
<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>
html Syntax (Toggle Plain Text)
</head> <body> <p align="center"> <span id="countdown"> </span> <p> </body> </html>
![]() |
Similar Threads
- Starting Python (Python)
- Please check my code below (Java)
- Floating/scrolling image? (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: help ajax and image
- Next Thread: AJAX Dropdown menu to text field population
Views: 2419 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxcode ajaxhelp animate array attributes auto automatically blackjack box bug button column content cookies count css debugger design detect div dom download dynamic element enter error explorer external fade file firefox flash focus font form function game google hangman hide html iframe image index internet internet-explorer java javascript javascripts jquery js list listbox login maps match menu mimic modal mp4 mysql offline onclick onerror onmouseover parameters photo php player position post print problem programming prototype rated redirect resize script scroll search select selection show size sorting star synchronous table text tweet uncaught variables video web website window xml xspf





