Forum

Questions and discussions

disabling the right click mod

Marketing, Population, SEO

disabling the right click mod

Postby Gdogg » Fri Jun 27, 2014 11:30 am

i only disabled the right click in the home.tpl

handy to stop people from copy and paste your images on home page.


<body oncontextmenu="return false">
...
</body>

or


<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(event)
{
if(event.button==2)
{
alert(status);
return false;
}
}
</script>
Gdogg
 
Posts: 22
Joined: Fri Jun 20, 2014 9:22 am

Return to Tips and tricks

Who is online

Users browsing this forum: No registered users and 0 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.