Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Disable right click script III

  1. #1
    Join Date
    Oct 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disable right click script III

    This script works fine in Netscape but MSIE ignors it, is there a way to get this or some other script to work in MSIE?

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

    Default

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

  3. #3
    Join Date
    Oct 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,
    Yes, like the one you provided, however, I pasted the code from yours and it does not work in MSIE either. Works fine in Netscape.

    Any other suggestions?

    Jim K.

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

    Default

    That's very odd. Very odd indeed. Post screenshots.

    Host them at imageshack.us if you can.

    Usually no-right-clicks don't work in netscape but do in IE, not t'other way round.

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

  5. #5
    Join Date
    Oct 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, I am not familiar with imageshack but I think I was successful in uploading a screen.zip file at the following location: krautlarger@charter.net's Images
    In the zip file are two screen shots, one from each browser.
    I hope this is what you want and will help. I would send the page but it appears that I cannot attach an html file.

    Jim

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

    Default

    krautlarger@charter.net is an email address.. what what?

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

  7. #7
    Join Date
    Oct 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK, I have attached a zip file to this message.
    Jim

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

    Default

    Your bitmaps are invalid.. *sigh*

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

  9. #9
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi

    Try this

    <SCRIPT language=JavaScript1.1>
    function right(e) {
    if (navigator.appName == 'Netscape' &&
    (e.which == 3 || e.which == 2))
    return false;
    else if (navigator.appName == 'Microsoft Internet Explorer' &&
    (event.button == 2 || event.button == 3)) {
    alert("All Content Copyright Your Company Name");
    return false;
    }
    return true;
    }

    document.onmousedown=right;
    document.onmouseup=right;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (document.layers) window.captureEvents(Event.MOUSEUP);
    window.onmousedown=right;
    window.onmouseup=right;
    // End -->
    </SCRIPT>

    rgds,Simonf

  10. #10
    Join Date
    Oct 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry Simonf,
    Neither browser recognizes your script, both allow a right click.
    Thanks for trying, I need all the help I can get.

    Jim K.

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
  •