Hi just wondered if anyone could help me i want to stop people right clicking on the board and downloading the images can any tell me how to do this in the 2.1 of invision as i cant seem to find it thanks for all your help in advance guys
Kisses
Samantha
RESOLVED: Disable Right Click Function
Started by sambrads, Nov 03 2005 12:46 PM
7 replies to this topic
#1
Posted 03 November 2005 - 12:46 PM
#2
Posted 03 November 2005 - 03:26 PM
You can use this code to do the job:
<script language="javascript1.1">
// distributed by http://www,hypergurl.com <!-- var debug = true; function
right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which
== 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer'
&& (event.button == 2 || event.button == 3)) { alert('This Page is fully
protected!'); return false; } return true; } document.onmousedown=right; if (document.layers)
window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; //-->
Make sure the code is within the tags of your HTML.
The source of the code is: www.hypergurl.com/norightclick.html
<script language="javascript1.1">
// distributed by http://www,hypergurl.com <!-- var debug = true; function
right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which
== 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer'
&& (event.button == 2 || event.button == 3)) { alert('This Page is fully
protected!'); return false; } return true; } document.onmousedown=right; if (document.layers)
window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; //-->
Make sure the code is within the tags of your HTML.
The source of the code is: www.hypergurl.com/norightclick.html
#3
Posted 03 November 2005 - 04:13 PM
Thanks can you tell me where on the invision script i should put this code
Kisses
Sam
Kisses
Sam
#4
Posted 03 November 2005 - 04:44 PM
Go to your AdminCp
click on the "look and Feel"
click on the dropdown list of your default skin
click on "edit board header & footer wrapper"
find the tag and put this code between the and
then "save wrapper"
You are done!
click on the "look and Feel"
click on the dropdown list of your default skin
click on "edit board header & footer wrapper"
find the tag and put this code between the and
then "save wrapper"
You are done!
#5
Posted 03 November 2005 - 04:49 PM
thanks did that but can still right click on images on the site and save them ???
Kisses
Sam
Kisses
Sam
#6
Posted 03 November 2005 - 05:11 PM
Ok, try this one then
QUOTE
<script language="javascript">
// distributed by http://hypergurl.com <!-- var popup="Sorry, right-click
is disabled.\n\nThis Site Copyright ?2000"; function noway(go) { if
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // -->
// distributed by http://hypergurl.com <!-- var popup="Sorry, right-click
is disabled.\n\nThis Site Copyright ?2000"; function noway(go) { if
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers)
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // -->
#7
Posted 04 November 2005 - 04:29 PM
Hi Maruf thank you for all the help got it sorted and it is working fine xxx as i said thanks again
Kisses
Samantha
Kisses
Samantha
#8
Posted 14 November 2005 - 05:40 PM
The issue this topic was opened for has now been resolved. If you need further assistance, please open a new topic. If this topic was closed prematurely, please contact me so I can re-open it.
Topic Closed
Topic Closed
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
















