1. Add the code: onunload="gqxit()" to your body tag.
Need an example? If your body tag currently looks like this:
<body background=bg1.jpg bgcolor=#000000 text=#FFFFB0 link=#ffffff vlink=#ffffff>
Then we change it to look like this:
<body background=bg1.jpg bgcolor=#000000 text=#FFFFB0 link=#ffffff vlink=#ffffff onunload="gqxit()">
2. Now cut and paste the following code onto your page:
<script language="JavaScript">
<!--// begin GQT50 confirm code
var exit=true;
function gqxit()
{
if (exit)
open("http://www.bigbig.com/cgi-bin/gq/topvlog.cgi?YOUR_ACCCOUNT");
}
// -->
</SCRIPT>
Thats it. Now try closing or exiting your paqe and you will see the window popup.
Make sure you replaced YOUR_ACCCOUNT with your account.
If you wish to add a JavaConfirm popup to your site, copy and paste the following into your page. The best place is near the top, just after your body tag.
------ Begin Cutting Below ------
<script language="JavaScript">
function vote () {
gqvote = "http://www.bigbig.com/cgi-bin/gq/topvlog.cgi?YOUR_ACCOUNT"
window.open(gqvote, 'GQVote');
}
</script>
<script language="JavaScript">
function cancel () {
}
</script>
<script language="JavaScript">
if (confirm("Click OK to visit Gamequest for ROMs!")) {
vote();
}
else cancel()
</script>
------ End Cut ------