Important alert: (current site time 7/15/2013 1:07:08 PM EDT)
 

VB icon

______ Open new windows when somebody leaves your site!!!

Email
Submitted on: 2/10/2001 1:43:13 PM
By: Mike McNaughton  
Level: Intermediate
User Rating: By 16 Users
Compatibility: JavaScript
Views: 31567
(About the author)
 
     Whenever somebody leaves your site a new window will pop up with whatever you want in it. For an example check out my site at michro.itgo.com. The purpose of it on my site is so it registers votes on 2 local web servers. Check this one out. Please vote for me as well. Thank you!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: ______ Open new windows when somebody leaves your site!!!
' Description:Whenever somebody leaves your site a new window will pop up with whatever you want in it. For an example check out my site at michro.itgo.com. The purpose of it on my site is so it registers votes on 2 local web servers. Check this one out.
Please vote for me as well. Thank you!
' By: Mike McNaughton
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=2100&lngWId=14'for details.'**************************************

<SCRIPT language="JavaScript">
<!--
var exit=true;
function out()
{
if (exit)
window.open('http://www.qualitywarez.com/topsites.php3?id=Michro01','ftp',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=400");
window.open('http://www.40best.com/top/vt-in.cgi?Michro','40top',"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=400");
}
// -->
</SCRIPT>
<///in the body tags be sure to put the following>
<body bgcolor="#000000" text="#FFFFFF" onunload=out()>


Other 15 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
2/10/2001 3:23:57 PMGreg Scept

It's a great code, it worked fine for me.
(If this comment was disrespectful, please report it.)

 
7/1/2001 10:10:00 AMSteven

Nice
(If this comment was disrespectful, please report it.)

 
9/8/2002 3:31:06 PMStefan Carter

abit of a simple code..........
(If this comment was disrespectful, please report it.)

 
12/10/2002 8:33:55 AM

things like this from ppl like your self makes a knowledge a little closer to others. keep up the great spirit dude.
(If this comment was disrespectful, please report it.)

 
3/30/2003 12:00:56 PMHTML Dude

stuff like this is getting hits under false pretenses.

I stop all scripts like this from working on any browser, lol.
(If this comment was disrespectful, please report it.)

 
7/26/2003 1:55:50 AMTaylor K.

I pity this code, the internet needs les popups and anoyances
(If this comment was disrespectful, please report it.)

 
8/13/2003 1:25:20 PMAaron Colflesh

Can someone tell me why this code won the contest? *Any* site that contains reasonable documentation on javascript would tell you how to use these functions, and this doesn't even do anything clever in its 3 lines of executing code (ok, make it 4 if you count the function call itself).
(If this comment was disrespectful, please report it.)

 
8/31/2003 8:18:09 PMDon Roberts

I'm still trying to figure out how this is relevant to Java 1.2
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.