Google
 

Go Back   NackVision > Website Related > Web Hosting

Web Hosting If you have any question or know of good web hosts, post here.

Reply
 
Thread Tools
Old 10-24-2006, 11:56 AM   #1
♀ maLe ♀
Senior Member
 
♀ maLe ♀'s Avatar
 
Join Date: Sep 2006
Posts: 133
Lightbulb NO RIGHT CLICK ON IMAGE ONLY!

iF you want a no right clicking just on your images paste this inside your <head> tags...
this will make no right clicking but not as a whole page...
just the images...
<script type="text/javascript">
<!--
//No right click on images
function iCapImg(evt){
 var evt = (evt)? evt : ((window.event)? event : null);
 if(evt){
  var elem = (evt.target)? evt.target : ((evt.srcElement)? evt.srcElement : null);
  if(elem){
   if(elem.tagName == "IMG" && elem.tagName.toLowerCase() == "img"){
    if(evt.cancelBubble){
     evt.cancelBubble = true;
    }
    alert("Sorry, menu not available");
    return false;
   }
  }
 }
}
document.oncontextmenu = iCapImg;
//-->
</script>
PREVIEW
(Offline)
 
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 07:43 PM.