Click Here To Launch Page
[Beschreibung]
Neues Fenster wird mit einem Expandereffekt im Vollbildmode geöffnet.
[Kompatibilität]
[Code]
<script language="JavaScript">
<!-- Begin
/* In the url, it's generally best to use a *relative* address to your content page with this script; otherwise, IE loses its sense of "parentage" over the window, and may throw errors on attempts to relaunch when the fullscreen window is already open. */
// set the page to go to... url = "dummy.htm";
// set how fast to expand horizontally // lower is slower var speedX = 7;
// set how fast to expand vertically // lower is slower var speedY = 5;
// set background color of "Loading..." screen var bgColor = "#000000";
// set text color of "Loading..." screen var txtColor = "#FF80000";
// do not edit below this line // --------------------------- if (document.all) { var wide = window.screen.availWidth; var high = window.screen.availHeight; } function andBoom() { if (document.all) { var Boomer = window.open("","BoomWindow","fullscreen"); Boomer.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><FONT FACE=ARIAL COLOR='+txtColor+'>Loading...</FONT></BODY></HTML>'); Boomer.focus(); for (H=1; H<high; H+= speedY) { Boomer.resizeTo(1,H); } for (W=1; W<wide; W+= speedX) { Boomer.resizeTo(W,H); } Boomer.location = url; } else { window.open(url,"BoomWindow",""); } } // End --> </script>
<a href="javascript:andBoom()">Click Here To Launch Page</a>
Achten Sie darauf, einen Button in die zu öffnende Seite zu bauen, damit sie wieder geschlossen werden kann: <a href="javascript:window.close();">Close Window</a>
CodeLifter
Kopieren Sie bitte den Code