<HTML>
<HEAD>
<TITLE>YOUR SITE</TITLE>

<script language="JavaScript">
<!-- BEGIN GAME ARCHIVE EXIT CONSOLE CODE
var exit=true;
function xit()
{
if (exit)
open("http://www.dirtymind.com/cgi-bin/games/console.cgi?yourcode","DisplayWindow","width=488,height=360");
}
// END GAME ARCHIVE EXIT CONSOLE CODE -->
</script>

</HEAD>
<body onunload="xit()">

<a href="index.html">LINK WITH CONSOLE</a>

<a href="index.html" onClick="exit=false">NO CONSOLE</a>

</BODY>
</HTML>



To add an exit console to your site just cut-and-paste the above script into your pages in the position shown. The code you need to add is in italics. Keep in mind the following:

  1. The script goes inside your <HEAD> tags
  2. Be sure to change yourcode to your assigned ID
  3. Add onunload="xit()" inside your <BODY> tag
  4. To keep a console from appearing add onClick="exit=false" to the link

If you have a lot of links on your site you can make the console only load from a select few with two changes.

  1. Change var exit=true; in the script to read: var exit=false;
  2. Then just add onClick="exit=true" to the links you want the console to appear on

CLICK HERE to see the console!

CLICK HERE to see our Partner Program!