SPECIAL CODES

How to make links hidden

 

(WHAT YOU WANT BROWSER TO SAY BETWEEN THE EMPTY QUOTES)


Make a audio file play when loading a page?

Put this inside your <head> tag:

<BGSOUND SRC="tune/sound.wav" loop=3>

Change the file to make it point to the sound file you want to play. If the sound will only play once, you can take off the loop=3 tag, or change 3 to 0. If you want it to play more than once, but still a set number of times, change the 3 to whatever number you want it to play. If you want it to keep looping until the page is unloaded, change the 3 to 1.

ONLY WORKS FOR INTERNET EXPLORER

 

Exit Console Example


<HTML>
<HEAD>
<SCRIPT language="Javascript">
<!-- BEGIN EXIT CODE
var goback=true;
function exit()
{
if (goback)
open('exit_console.htm','Exit','resizable=no,scrollbars=no,
toolbar=no,location=no,directories=no,status=no,menubar=no,
width=300,height=300');
}
// END EXIT CODE -->
</SCRIPT>
</HEAD>

<BODY OnUnload="exit()">

<!-- Insert this into links you don't want to pop on:
OnClick="goback=false" For example: -->

<A href="safe.htm" OnClick="goback=false">Safe</A>

</BODY>
</HTML>

When using this code, remember that you must replace exit_console.htm with the full URL of the console you wish to open when the surfer leaves this page, and that you can also specify the console's window properties (when doing this, place the properties code on one line - it was placed on three lines here to make the code easier to read).

 

Enter Console Example

 


When using this code, remember that you must replace enter_console.htm with the full URL of the page you wish to open when the surfer leaves this page, and that you can also specify the console's window properties (when doing this, place the properties code on one line - it was placed on three lines here to make the code easier to read).

 

 

Stealth Console Example

(opens page behind)


<HTML>
<HEAD>
<SCRIPT language="JavaScript"> 
<!-- 
window.open('stealth_console.htm','_blur'); 

if (window.focus) { 
window.focus(); } 
// --> 
</SCRIPT>
</HEAD>

<BODY>

</BODY>
</HTML>

When using this code, remember that you must replace stealth_console.htm with the full URL of the page you wish to open when the surfer enters this page. You may also specify the console's window properties, but keep in mind that this is most effective for loading a full page rather than a small window.

 

 

XmasterCentral Copyright 2000-2001 All Rights Reserved.