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.
|