This is a highly customizable way to hide or disguise a link, and I honestly think its much simpler and has a lot of room to customize the "disguise" of your link to match the look of you site, or all out throw the culprits off. Here it is....
Step 1:Take this code and place it in notepad:
| Code: |
var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer') //check the browser
{ isie=true }
if(navigator.appName=='Netscape')
{ isnn=true }
function right(e) //to trap right click button
{
if (isnn && (e.which == 3 || e.which == 2 ))
return false;
else if (isie && (event.button == 2 || event.button == 3))
{
alert("WARNING: An attempt to circumvent a technological measure put in place to protect access to or
copying of a copyrighted work has been logged along with the date and time of the occurrence in
association with YOUR IP ADDRESS, be aware that this work is protected under the Copyright Act,
Title 17 United States Code Section 106(3) and under the Digital Millennium Copyright Act, Title 17
United States Code Section 512. Any infringements upon these copyrights will be prosecuted to the
fullest extent of the law.");
return false;
}
return true;
}
function key(k)
{
if(isie) {
if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
alert("WARNING: An attempt to circumvent a technological measure put in place to protect access to or
copying of a copyrighted work has been logged along with the date and time of the occurrence in
association with YOUR IP ADDRESS, be aware that this work is protected under the Copyright Act,
Title 17 United States Code Section 106(3) and under the Digital Millennium Copyright Act, Title 17
United States Code Section 512. Any infringements upon these copyrights will be prosecuted to the
fullest extent of the law. ")
return false;
}
}
if(isnn){
alert("WARNING: An attempt to circumvent a technological measure put in place to protect access to or
copying of a copyrighted work has been logged along with the date and time of the occurrence in
association with YOUR IP ADDRESS, be aware that this work is protected under the Copyright Act,
Title 17 United States Code Section 106(3) and under the Digital Millennium Copyright Act, Title 17
United States Code Section 512. Any infringements upon these copyrights will be prosecuted to the
fullest extent of the law. ")
return false; }
}
if (document.layers) window.captureEvents(Event.KEYPRESS);
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
document.onkeydown=key;
document.onmousedown=right;
document.onmouseup=right;
window.document.layers=right;
|
Save This Code As
Filename: yourfilename.js
Save as Type: (pull the dropdown box to ALL FILES)
click save
Step 2:
Move the
yourfilename.js onto your server and reference it between the <HEAD> and </HEAD> tags of any html or asp page using:
| Code: |
<Script language="JavaScript" src="yourfilename.js"></script>
|
After you have finished placing the code above, locate your
<style type="text/css">
in the same area (between <head> and </head>

and Place this snippet of code right below it:
| Code: |
.hiddenlink {
text-decoration: none; /* to remove the underline */
}
|
**Note: You can also Use the code above to change the color and font of your Links as well with some modifications.
Step 3: (
And this is my Favorite because you can really do some neat things to disguise your links)
Last but not least, put this piece of code in where ever you are placing your affiliate link at. Such as
Click here now
| Code: |
<a class="hiddenlink" title="This text will appear <strong>at your cursor</strong> when you mouseover the link" onMouseOver="window.status='Cloak your link with a dummy url or a dummy pagelink or anything else you want to
show in the status bar as it says ON MOUSEOVER'; return true" onMouseOut="window.status='Text you want to show in the status bar when you move your cursor away from the
link Like your websites slogan your web address - anything you want'" target="_blank" href="This is where you place your affiliate link">This is the text that will show for your link, such as Click Here NOW</a>
|
A dummy URL is a link that goes nowhere, you can simply make it up to show a page that doesn't even exist on your website such as
Http://www.Mywebsite.com/thekidsaredrivingmecrazy.html
**Note: If you want your underlines to remain as part of your link text, just remove the class="hiddenlink" from the code above.
When yer all done, right click on your page, or try to push the control or alt key or highlight text. It scares the noodles out of people who try to copy your material, trust me.
Enjoy!!
Tony
PS. If you really want to have some fun with the theives you can have the page reload with no menu or address bar after they click OK on the Alert box. It does scare the noodles out of people trying to copy your material or steal your links and makes them think twice.
PPS. This just goes to show that if a truck driver can do this kind of stuff, you can too! Just give yourself some time to investigate and learn things!