Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Flying pop-up-window
This script creates a pop-up-window on the left side of your screen. The pop-up-window flaots to the center of the screen, waits a few seconds, and finally floats to the right and disappears. Great for banners and important messages!
Insert into <HEAD>
<script> <!-- Beginning of JavaScript - // CREDITS: // Simple flying pop-up-window by Urs Dudli and Peter Gehrig // Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.24fun.ch. // info@24fun.ch // 2/8/2000 // IMPORTANT: // If you add this script to a script-library or script-archive // you have to add a link to http://www.24fun.ch on the webpage // where this script Script will be running. // ********************************************************************************** // ********************************************************************************** // INSTRUCTIONS: // Configure the variables below // The name of the pop-up-window. Do not change it var popwindow // The height of the pop-up-window (pixels) var popwindowwidth=200 // The width of the pop-up-window (pixels) var popwindowheight=150 // Distance to the top margin of the big window var popwindowtop=20 // The URL of the HTML-file that contains the content of the pop-up-window var popwindowURL="popupcontent.html" // Standstill-time (seconds) var waitingtime=4 // Configure ths speed of the pop-up-window var pause=20 var step=40 // Do not change this variable var popwindowleft=-popwindowwidth-50 // Do not change this variable var marginright // Do not change this variable var pagecenter // Do not change this variable var timer waitingtime= waitingtime*1000 function showWindow() { popwindow = window.open(popwindowURL, "popwindow", "toolbar=no,width="+popwindowwidth+",height="+popwindowheight+",top="+popwindowtop+",left="+(-popwindowwidth)+""); if (document.all) { marginright = screen.width+50 } if (document.layers) { marginright = screen.width+50 } pagecenter=Math.floor(marginright/2)-Math.floor(popwindowwidth/2) movewindow() } function movewindow() { if (popwindowleft<=pagecenter) { popwindow.moveTo(popwindowleft,popwindowtop) popwindowleft+=step timer= setTimeout("movewindow()",pause) } else { clearTimeout(timer) timer= setTimeout("movewindow2()",waitingtime) } } function movewindow2() { if (popwindowleft<=marginright) { popwindow.moveTo(popwindowleft,popwindowtop) popwindowleft+=step timer= setTimeout("movewindow2()",pause) } else { clearTimeout(timer) popwindow.close() } } // --> </script>
Insert into <BODY>
<body onLoad="showWindow()">
Other Options