Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library


Category: Javascript Codes Library >> Miscellaneous Snippets >> Special Full Page Messages

Code Snippet </> Info

Snippet Name: Special Full Page Messages

Description: Give your visitors a full page message that is sure to get their attention!
Compatible Modern Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser

Example: View Code Demo

Note: You will need to create a blank page named 'blankpage.html' page for the script to call.

Author: Gene Davis

Last Modified: 2015-08-26 23:23:36

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor

  About Copying
Copied To Clipboard!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.1 Transitional//EN"> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Special Full Page Messages</title> <style> html {margin:0; padding:0;} BODY {font-family:verdana,arial,ms sans serif; font-size:100%; background-color:#ffffff; color:#000000; text-shadow:0px 1px 1px rgba(0,0,0,0.2);} a {color:#69C;text-decoration:none;} a:hover {color:#F60; text-decoration:underline;} #wrapper {margin:0; padding:15px 15px 15px 15px;} </style> </head> <body> <div id="wrapper"> <h3>Special Full Page Messages</h3> <p>Give your visitors a full page message that is sure to get their attention!</p> <p><b>Example:</b> <script> <!-- Begin Special Full Page Messages // == This Script Free To Use Providing This Notice Remains == // // == This Script Has Been Found In The Free Public Codes Library == // // == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == // // == Created by: Gene Davis : : Creative Commons License 3.0+ == // var snapbuilder_window; function MatrixWrite(string, bold, italic, speed) { var height = window.screen.height; var width = window.screen.width; var win_dimensions = "height = " + eval(height + 10) + ", width = " + eval(width + 30); snapbuilder_window ="blankpage.html", "snapbuilder_window", win_dimensions);"text/html", "replace"); var i; var timer = 0; if(snapbuilder_window.moveTo) snapbuilder_window.moveTo(-10, -30); if(snapbuilder_window.resizeBy) snapbuilder_window.resizeBy(0, 50); snapbuilder_window.document.write("<body bgcolor=003300 text=ffcc00 onBlur='self.focus()'>"); snapbuilder_window.document.write("<font face=verdana size=5>"); if(bold == true) snapbuilder_window.document.write("<b>"); if(italic == true) snapbuilder_window.document.write("<i>"); for(i = 0; i <= string.length; i++) { timer += (Math.random() * speed); setTimeout("snapbuilder_window.document.write('" + string.charAt(i) + "');", timer); } timer += 500; setTimeout("snapbuilder_window.close()", timer); } var messages = new Array("Welcome to", "Our domain name is owned by Designer Wiz Web Productions", "Please come back often... we add a lot of interaction scripts to our archives!!"); function GetRndIndex() { return (parseInt(Math.random() * messages.length)); } function WriteRndMsg(bold, italic, speed) { MatrixWrite(messages[GetRndIndex()], bold, italic, speed); } // --> </script> <a href="javascript:WriteRndMsg(true, false, 200)"><b>Random Message 1</b></a><br> <a href="javascript:WriteRndMsg(true, true, 200)"><b><i>Random Message 2</i></b></a><br> <a href="javascript:MatrixWrite('You can change the speed, font, background and text colors also.', false, false, 200)">Welcome Message</a> </p> <br /><br /> <div id="snippet"> [ This code example from <a href="">Special Full Page Messages Code Snippet</a> page. ] </div> </div> </body> </html>

[ Snippet Options ]


© 2002 -  Snap Builder Public Codes Library