|
|
|
7 Steps To Test Prices and Convert More Sales
Here's a really simple way... to customise your product offer from the headline to the prices in order to suit local tastes.
We all know people do business with people they "know and trust". So how can you convince shoppers half way...
How To Set Up Your Own Website
This article deals solely with the mechanics of writing a website and placing it in the search engines. For an explanation of why you want to do this, and how to determine what your target audience is, send a blank email to...
Link Exchange Scam
I have written in an article about the importance to be linked by other web site in order to increase your link popularity. It is related to PageRank. The more back link you get, the higher your PageRank will be, and the higher ranking you will get...
Newbies, Are You Doing It All Wrong?
Most new affiliate marketers make the mistake of sending their traffic directly to their affiliate link. If you're doing this, you're really depriving yourself of the income you've worked so hard to create. If you expect to make a decent income...
PayPal Payment Notifications on Your Phone
On the Internet, the general rule of thumb is that when someone sends you an e-mail, you're expected to have read it within 24 hours. If you sell a hands-on product, like a high ticket item or coaching program, you might want to be notified of a...
|
|
| |
|
|
|
|
Javascript Password Protection
The protection of web pages using a password comes up earlier or later while developing your site. The most secure way is to implement PHP, ASP or other advanced web programming languages. In this tutorial you will find out how to protect pages using Javascript, because you may need to have a very simple protection, or your current hosting may not support PHP.
The first example we are going to discuss is the prompt() function. The function calls a small box to appear, and unless you enter correct password, you will not be able to view the page. The advantage is that you can't view the source code to find out the password without turning Javascript off. The code is as follows:
Now let's look at the code. When you enter the correct password, a box appears saying that Access is Granted, and the rest of the page is loaded. If the password is incorrect, you are redirected to denied.php. I used a little trick with the password here that can stop some unexperienced hackers ;)) the FAKEPASS is not the actual password, even though you can make it look like it. This is just a variable that is described in an external file - "prompt.gif". This is another trick - the external Javascript file has an extension .gif , which is used for images. The file however contains text, and the server will correctly treat it like a text file, not an image. So the content of prompt.gif is:
var FAKEPASS = "the_real_password";
As you see, here our variable is substituted with the word "the_real_password", which is the actual password.
The second option in protecting a page with Javascript is much prettier, and it actually allows you to have several login and password accounts. The code is:
Login
style="position:absolute;top:100;left:300;visibility:hidden;">
|
|
|
|
|
|