Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 20. Jun 2018, 07:29

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: no right click option?
PostPosted: 11. Jan 2009, 22:57 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
How about adding a no right click option. If there is already somewhere and I missed it, then I apologize.

I did add this code to my custom header which works with IE and Firefox:

Code:
<script type="text/javascript">

function md(e)
{
  try { if (event.button==2||event.button==3) return false; } 
  catch (e) { if (e.which == 3) return false; }
}
document.oncontextmenu = function() { return false; }
document.ondragstart   = function() { return false; }
document.onmousedown   = md;

</script>


It works pretty good and no nagging error message saying you can't right-click.

I also added this to take care of the IE image toolbar:
Code:
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">


Top
 Profile  
 
 Post subject:
PostPosted: 11. Jan 2009, 23:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10833
$disable_right_click

Is the parameter you where looking for. But you always can make screenshots ;).

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. Jan 2009, 23:37 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
ya I know, or you can save the page.

But thanks, it's yet another option I overlooked.
How can you call yourself "Tiny" with all these options?? :wink:

_________________
/Chris


Top
 Profile  
 
 Post subject:
PostPosted: 11. Jan 2009, 23:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10833
Much harder to change a domain, a name, get popular again ...

But the installation is still tiny ;).

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
powered by phpbb | Datenschutz/ Privacy policy