SnarkyCupcake Administrator
| Subject: → Disable 'Right' Clicking on Your Blog ← Sat Jan 24, 2015 3:15 pm | |
| - Code:
-
<script language=”JavaScript”> <!– //Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com var message=”Please do not use any images from this site without written permission. [You must be registered and logged in to see this link.]“; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function(“alert(message);return false”) // –> </script> - [You must be registered and logged in to see this link.] wrote:
Do you want to protect the images and photos on your blog? You can protect your site with a right click disable code! Using the follow code will cause an alert box to pop up with the message of you choice, letting people know that your information is copyrighted. The code isn’t foolproof, but it does allow you to warn people who want to take your graphic and photos.
Please note: If you have a blog button on your site with the HTML share code, be sure to let your readers know to use their keyboard short cuts (CTRL C, CTRL V) instead of their mouse to copy your button code.
Copy the following code and paste it into a gadget box on your sidebar. |
|