OnTarget Network Advertising
Effective website promotion
that spans the globe
Sign up for our mailing list and receive a new Java script sent to you every week.
A download popup script that defies pop up killers
WELCOME!

How to set up a confirm box on your site
and make it download your ebook
in your prospect's system.

You must have a site and a free ebook to distribute.

Of course, your free ebook will be packed solid with exciting content and stuffed with your referral links by the dozen. Maybe a few banners too and all these nice pictures and animations you can't put on your site because that damn connection speed (or lack of) comes in the way. A contest, a survey, a refer-a-friend form and a comment box (email capture, email capture!). A make-this-your-home-page link (no, that one can't) and a universal calendar for the prospect to find out which day of the week she was born (the wedding, she'll usually remember). All page headers and footers will have your site URL and email address. Ouch! did I forget something?

If you want to see a download confirm box at work, go to:

http://www15.brinkster.com/popups/ad.htm

(no need to click OK, you would only end up getting the very same instructions as below)

Now, here is what you do (I assume you know a little bit about HTML editing and how to use copy/paste):

I - First, modify the HTML of the page in which you want the confirm box to appear.

A)Insert the following line somewhere between <head> and </head> (copy/paste):

<script language="Javascript" src="dl.js">
</script>

B)Rewrite the body tag to appear as:

<body onLoad="popit()">

(your body tag might of course contain other stuff such as background, etc...)

C)Put the following code at the end of your page, just before the </body> tag:

<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<!-- START DOWNLOAD BUTTON CODE -->
<FORM NAME="getit" METHOD="get"
ACTION="http://yourdomain/path/filetoofferfordownload.exe">
<INPUT TYPE="submit" NAME="button" VALUE=".exe">
</FORM>
<!-- FINISH DOWNLOAD BUTTON CODE -->

The <br><br>..... sequence is not for chilling the already cold, grim and impersonal enough confirm box but for placing the button way down the page where nobody is going to scroll to; use as many <br> as you want. The blue negrito part is for you to edit.


II - Second, copy/paste the following code into Notepad and save it as dl.js

function popit()
{if (confirm("type here the text you want for the confirm box")) {getit.button.click(); return 1;
} else {return false;}}

The blue negrito part is for you to edit. In the text of the confirm box you cannot use special characters used in the syntax of Java scripts. Beware of the apostrophe so frequent in colloquial english! If the script does not work, it is because you attempted to use these characters.

To make a line break don't use Enter but type \n . For example, to make the text:

I want
a line break

type: I want\na line break

Typing \n\n will jump a line and make another paragraph.

Don't forget the double quotes at the beginning and at the end of your text. Also, make sure there is no hard carriage return in the text of your confirm box. To do this, deselect automatic line break in Notepad (Edit menu): your text should appear in one (long) line only. If not, delete all the carriage returns (and replace them by a space if needed) until the text is on one line only.


III - Last, upload to your server the modified page where the confirm box will appear and the file dl.js IN THE SAME DIRECTORY (or subdirectory). Upload the file you offer for download in the path you have specified (blue negrito of I - C) ).

Important notes: the small trick used in the code works fine in IE5 and IE6 (80 % of the browsers). Other browsers might be less cooperative...
Also, if you offer any other file type but an .exe file for download you must remove the ".exe" button legend. That is, VALUE=".exe" should become VALUE="" in the form code above.





Set as your home page script

Script Name: Set Home Page

Description: (Internet Explorer 5.0+ only) Allow your visitors to quickly and easily change Internet Explorer's default home page to your site's URL with the click of a button! Great for keeping your visitors coming back to your site! Other browsers will not see anything, and will not get any errors.


<!-- ONE STEP TO INSTALL SET HOME PAGE:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>



<!--[if IE]>
<a HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.some url.com');"><img src="house.gif"> Click here to make this your default homepage!</a>
<![endif]-->

<!-- Script Size: 0.60 KB -->





Blinking text script


Description: This script is a simple layer based javascript that blinks any text. The script can be used to catch the attention of the user. The blinking speed can be adjusted by the variable blink_speed. Only works in MSIE.


<!-- TWO STEPS TO INSTALL BLINKING TEXT:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">


<!-- Begin

window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer"
&& bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer"
&& bVer < 4);
var blink_speed=100;
var i=0;

if (NS4 || IE4) {
if (navigator.appName == "Netscape") {
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
}else{
layerStyleRef="layer.style.";
layerRef="document.all";
styleSwitch=".style";
}
}

//BLINKING
function Blink(layerName){
if (NS4 || IE4) {
if(i%2==0)
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="visible"');
}
else
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="hidden"');
}
}
if(i<1)
{
i++;
}
else
{
i--
}
setTimeout("Blink('"+layerName+"')",blink_speed);
}
// End -->
</script>

</HEAD>



<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint">
<font color="#FF0000"><b>Welcome! your text here</b></font>
</div>
<script language="javascript">Blink('prem_hint');</script>



<!-- Script Size: 1.98 KB -->





Determined Popup


Description: This short, easy script set launches a window that
continually re-opens itself and cannot be permanently closed unless the visitor clicks
on a link that you provide. Compatible Browsers: NS6 and IE4-6.

-->


<!-- FIVE STEPS TO INSTALL DETERMINED POPUP:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document
3. Copy the coding into the HEAD of your POPUP HTML document
4. Add the onLoad event handler into the BODY tag of your POPUP HTML document
5. Put the last coding into the BODY of your POPUP HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
>

<!-- Begin
theUrl="determined-popup-demo.html";
function doThePopUp() {
reWin = window.open(theUrl,'hell','toolbar=no,location=no,directories=no,status=no,
menubar=no,scrollbars=
no,resizable=no,width=200,height=300,top=100,left=100');
}
// End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<a href="javascript:doThePopUp()">Open Popup</a>



<!-- STEP THREE: Paste this code into the HEAD of your POPUP HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: CodeLifter.com ([email protected]) -->
<!-- Web Site: http://www.codelifter.com -->



<!-- Begin
theUrl = 'determined-popup-demo.html'
lockU = 1
function doAgain() {
if (lockU == 1) {
reWin=window.open(theUrl,'','toolbar=no,location=no,directories=no,status
=no,menubar=no,scrollbars
=no,resizable=no,width=200,height=300,top=100,left=100')
}
}
// End -->
</script>

</HEAD>

<!-- STEP FOUR: Insert the onLoad event handler into your BODY tag of your
POPUP HTML document -->

<BODY onunLoad="doAgain()">

<!-- STEP FIVE: Copy this code into the BODY of your POPUP HTML document -->

Caution: Be sure to include this or there will be no way for
your visitor to close the window!
<br>
<br>
<a href="javascript:lockU=0;self.close()">Close This</a>

<!-- Script Size: 2.39 KB -->




Right click disable
<script LANGUAGE="JavaScript">
function click() {
if (event.button==2) {
alert('DO NOT STEAL!');
}
}
document.onmousedown=click
// -->
</script>
Pop up window
<SCRIPT language="JavaScript">
<!--
window.open('http://www.some url.com');
// -->
</SCRIPT>
Customizable pop under scripts
<script language="JavaScript">
<!-- Hide script from older browsers
if(navigator.appName.indexOf("WebTV")==-1) {

  myWin = open('', 'winin','toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=280,height=430');
  myWin.blur();
  myWin.location = 'http://www.someurl.com';
  var shut=true;
  }
// end hiding contents -->

</script>

Click here and sign up for our mailing list and receive
a new Java script sent to you every week.

On Target E-mail  URL and Web page encryption service
 Instant messenger advertising software  -   E-book software
5000 e-books and software -   Bulk e-mail  service -   Unlimited banners  
Pop under advertising  -   Banner rates.  -  Free no E-mail submit Paid Surveys
 AdultToys Webmaster tools -  Scam Secrets  -  Jewelry
On Target Network Advertising 2005



                                                                                                                                                                                                                                                                                                           
Hosted by www.Geocities.ws

1