Return to Main Menudzigns by ShivSpacer
 
Explanation


Did you get an ALERT when you loaded this page? You can do the same to your visitors when a particular page is loaded. The "message" can be anything - from a Hoax like How come you're here? This page isn't for public Viewing to a Real Alert like I Have moved out of here. Please Click the link below to go to my new Site. If you wish, you can even Alert your visitor that he is being automatically redirected to the new URL.

Both these scripts are given below. Simply "Copy - Paste" the one you like.

Script for only an Alert

Paste this section within the HEAD tags & change the Alert message as you wish.

<script language="javascript">
<!-- hide from old browsers
// Written & created by Shivaji Basu
// Copyright www.shivbasu.com
// Use this script at your own risk
// To use his script, you MUST leave this disclaimer & credit as it is

function hoax(){
alert("How come you're here?\nThis page isn't for public Viewing");
}
//--end hide>
</script>

Paste this part within the OPENING Body tag

<BODY onload="hoax()" background="" bgcolor="" .....>
// Fill in the Background Image URL, BG color etc as normal


Script for an Alert PLUS auto-redirect

Paste this section within the HEAD tags & change the Alert message as you wish.

<script language="javascript">
<!-- hide from old browsers
// Written & created by Shivaji Basu
// Copyright www.shivbasu.com
// Use this script at your own risk
// To use his script, you MUST leave this disclaimer & credit as it is

function hoax(){
alert("I Have moved out of here.\nYou are being automatically redirected to my new Site.");
}
function callurl(){
parent.location.href="mydoc.html";
}
//--end hide>
</script>

//NOTE:
//(1) Replace the page URL, ie - "mydoc.html" with the URL of your page.
//(2) If you wish to load the New page into a frames page then you must include the
//     Frame name between "parent." & "location." like - parent.XXX.location.href=

Paste this part within the OPENING Body tag

<BODY onload="hoax();callurl()" background="" bgcolor="" .....>
// Fill in the Background Image URL, BG color etc as normal



Copyright DBS © 1998-2003. All Rights Reserved