Disable Left and Right click on Legend only
3 posters
Page 1 of 1
Disable Left and Right click on Legend only
is there a code to disable the mouse right-click and left-click on the legend only?
My forum using phpbb3.
My forum using phpbb3.
Re: Disable Left and Right click on Legend only
There is a tutorial for this, but it is for the whole forum. You do know that if someone turns off JavaScript in their browser, they can right/left click still?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Disable Left and Right click on Legend only
SLGray wrote:There is a tutorial for this, but it is for the whole forum. You do know that if someone turns off JavaScript in their browser, they can right/left click still?
@SLGray i saw the tutorial for the whole forum, but i want for the legends only.
is there other choice for the other than staff cant access the legends??
Re: Disable Left and Right click on Legend only
try this
goto acp>modules>javascript management
create a new script
title:up to you
placement: homepage
copy the code below and save/submit
goto acp>modules>javascript management
create a new script
title:up to you
placement: homepage
copy the code below and save/submit
- Code:
$(function(){
if (_userdata.user_level==1 || _userdata.user_level==2) return;
$('em:contains(Legend) a').attr('href','/');
});
Similar topics
» Left Ctrl + Left Click Not Working
» Disable Right Click
» Disable Right Click
» Disable right click for images only
» little help in that code disable the right click
» Disable Right Click
» Disable Right Click
» Disable right click for images only
» little help in that code disable the right click
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum