Results 1 to 3 of 3

Thread: IE 6 Information Bar error w/ no right click

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

    Default IE 6 Information Bar error w/ no right click

    I want to prevent (ie, not make easy) the right clicking of images. To that end I have installed no less than 5 'no right click' scripts; including Dynamic Drive's . The behavior is the same.

    When I right click on the DynamicDrive code page everything functions as expected. When I paste the code into the BODY of my FP2003 web page I keep activating the stupid IE Information bar. Yes, I can turn off the Information bar but what has me puzzled is why things work as expected on the code page but when copied into MY page, they don't.

    Can anyone see the problem here?

    Thanks for looking.

    Ron

    Here is the code: (one picture and the 'no right click' script. )
    ====================================================

    <head>
    <meta http-equiv="Content-Language" content="en-us">
    </head>

    <p align="center">This is ben franklin</p>
    <p align="center"><img border="0" src="BenFranklin.gif" width="99" height="126"></p>
    <p align="center">&nbsp;</p>

    <body>

    <script language=JavaScript>
    <!--

    //Disable right click script III- By Renigade (renigade@mediaone.net)
    //For full source code, visit http://www.dynamicdrive.com

    var message="";
    ///////////////////////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

    document.oncontextmenu=new Function("return false")
    // -->
    </script>

    </body>

  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 stupid IE Information bar

    This generally only happens locally, have you tried uploading the file to your server and viewing it there?

  3. #3
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No-right click scripts are useless.

    If I can see your image, I can grab it. Via at least 5 means.

    Just my two cents.
    -cr3
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

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
  •