Planet Shake
You are watching the site as a guest to see everything that gets offered register for free or log in....or take a look around on the few things that you can see as a guest.....

Planet Shake

Discover Your World Here !
 
HomeHome  PortalPortal  GalleryGallery  FAQFAQ  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Right Click Block

View previous topic View next topic Go down 
AuthorMessage
jimzstone
Moderator
Moderator


Posts : 67
Points : 2885
Reputation : 2
Join date : 2009-02-19
Age : 25
Location : Laguna

Planet Shake
huo: 4

PostSubject: Right Click Block   Fri Feb 20, 2009 12:23 am

in some sites the right click block is not working.so use this code and place it in text at top of the page.or if you want to block only certain pages then place in the source code of page

Code:
<!-- Right click block code from www.tharunzworld.co.cc starts here  -->
<script language=Javascript>
<!--
var message="Function Disabled!";

///////////////////////////////////
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>
<!-- Right click block code from www.tharunzworld.co.cc ends here  -->

Enjoy Very Happy
Back to top Go down
View user profile http://www.friendster.com/12252675
 
Right Click Block
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Query - web driver element click is not working
» Need to do a simple Left Click in a text box
» How to click random checkbox
» Cannot click on button
» How Click on Dynamic Objects at Dynamic Positions in Selenium using for loop

Permissions in this forum:You cannot reply to topics in this forum
Planet Shake :: Tutorials :: Scripting-
Jump to:  
Free forum | © phpBB | Free forum support | Contact | Report an abuse | Free forum