Results 1 to 4 of 4

Thread: Disable Right Click Script II, No Right Click Script III

  1. #1
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disable Right Click Script II, No Right Click Script III

    http://www.dynamicdrive.com/dynamicindex9/noright2.htm , http://www.dynamicdrive.com/dynamicindex9/noright3.htm, respectively

    The Disable Right Click Script II works on your demo page but doesn't seem to work on my web page hosted at a free web host. I've tested the page with Firefox 1.5, Netscape 8.0 and IE6. In addition to the above script, I also have the image toolbar disabler (http://www.dynamicdrive.com/dynamicindex9/imagebar.htm) and three other scripts that have nothing to do with images. Plus the web host's server puts JavaScript before and after the html tags and within the body tags.

    With regard to the No Right Click Script III, which is what I was using initially, it worked with Netscape and IE 6 but not with Firefox 1.5. Because it didn't work with Firefox, I changed it to Script II but found the above surprise. I know this script (III) worked with the earlier versions of Firefox on my web page.

    Any ideas why there would be problems with script II not working at all with the browsers mentioned?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Don't ever use this or any other meta tag to disable the image tool bar:

    <META HTTP-EQUIV="imagetoolbar" CONTENT="no">

    Instead, add the galleryimg='no' attribute to each image that requires it. Many will not require it due to either small size and/or method of generation. Using the meta tag to do this can cause systems to crash - courtesy of your friendly, neighborhood IE6 memory leak bug.

    Disabling the image tool bar will not protect your images however, it only makes them look better without that ugly tool bar.

    Note: Most new versions of IE are now shipping with this dubious 'feature' disabled anyway but, this may change.

    As for disabling clicks of any kind, if the idea is to protect your content, don't bother, it won't work and as you can see, just causes problems in evolving browsers.

    All content that is on the web is cached on the user's computer and if not available for copying otherwise, is available there. With today's computers and browsers, there usually are even easier ways to copy it. The proper tool to protect your content is copyright law.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Disable right click

    Script works on web side very well, but doesn't work on pop - up window with image

    <td colspan="2" rowspan="2" valign="top" bgcolor=""><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image29','','../photos/view/sco/abr/small_r/abroath.JPG',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','../photos/view/sco/Glencoe/small_r/glen.JPG',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','../photos/view/sco/Anstruther/small_r/anstruther.JPG',1)"><img src="../photos/view/sco/Anstruther/small/anstruther.JPG" name="Image19" width="137" height="99" border="0" id="Image19" onclick="MM_openBrWindow('../photos/view/sco/Anstruther/anstruther.JPG','','scrollbars=yes,resizable=yes')" /></a></td>

    can You help me with that?

  4. #4
    Join Date
    Jan 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oops, my apologies to jscheuer1. Thank you for your response, way, way long ago.

    It wasn't until I saw the e-mail from DD notifiying me of anubismj's post that I saw I hadn't replied to yours. Totally forgot about this.

    Anyway, I'll take your suggestions and apply them to my web pages.

    Thanx again!

    Janet

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •