Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

REQUESTED: NO RIGHT CLICK MENU


Druide

Recommended Posts

add to the file(s) just before </head>

 

<script language="JavaScript" src="includes/norightclick.js"></script>

 

make a new file in catalog/includes/norightclick.js

and put this inthere

	if (window.Event) 

document.captureEvents(Event.MOUSEUP); 

function nocontextmenu()

{ 

event.cancelBubble = true 

event.returnValue = false; 

return false; 

} 

function norightclick(e) 

{ 

if (window.Event) 

{ 

if (e.which !=1) 

return false; 

} 

else 

if (event.button !=1) 

{ 

event.cancelBubble = true 

event.returnValue = false; 

return false; 

} 

} 

document.oncontextmenu = nocontextmenu; 

document.onmousedown = norightclick;

 

save as catalog/includes/norightclick.js

 

But ofcourse for the more advanced people this is not fool proof...lol

Too many ways to copy content from websites, protected or not.

 

 

just too easy or not :twisted:

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

:stupid: this was meant for the TIPS & TRICKS section please move it

 

sorry

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...