Up Your Cupcake
Please 'Register' or 'Log-in' to start interacting with the forum.

Up Your Cupcake

Connect with other women from all over the world! Share advice, get support, & make lifelong friendships.
 
HomePortalRegisterLog in
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Navigation
Portal
Forum
Memberlist
User Control Panel
Forum FAQ

October 2018
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
293031    
CalendarCalendar
Tweet With Us ♥
Poll
What is your opinion on Male Infant Circumcision?
 Pro-Circumcision
 Pro-Parents Choice
 Anti-Circumcision
 I don't have an opinion.
View results

Share | .
 

  → Disable 'Right' Clicking on Your Blog ←

View previous topic View next topic Go down 
AuthorMessage
avatar
SnarkyCupcake
Administrator
Administrator


PostSubject: → 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.
Back to top Go down
 

→ Disable 'Right' Clicking on Your Blog ←

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Up Your Cupcake :: BLOGGY BISHES ♥ :: Blog Graphics & Layouts :: HTML/CSS Coding-