Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Loerbeek, Gelderland, Netherlands
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    No right clicking

    Ey There people,

    I'm making a site, and I don't want that people "right-click" on my site. Is there some kind of html-code for???

    If there is, can someone please send me that code... You can put it here, or mail it to me: tedraggie@hotmail.com

    --> for the one that will help me

    Thank you very much

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is it:

    <!------------------------------------------------------------------------------->

    <script language=JavaScript>
    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>

    <!------------------------------------------------------------------------------->


    Put it into your <head>
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Left-handers love those scripts...Totally useless.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I agree, I had it on my very first site, and people found that due to the fact that they swapped the buttons for their mouse, they couldn't do anything... and were dead, and couldnt navigate unless they swapped the mouse keys.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #6
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Loerbeek, Gelderland, Netherlands
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well okay, maybe it doesn't block everything. But to me it's important that people won't take my pictures directy, doing "right click - save pic as". And most of the people if they can't right-click they don't know what else to do... so that's my purpose

  • #7
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Trust me, if your site is html, or any other format, apart from .asp, I can get absolutely and literally anything that I want to get from it as I please, be it a picture, or an .swf file, or, sound file a movie.

    Disabling right-click is a waste of time.

    Unless you use .asp, you are wasting your time.


    Sorry.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #8
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    Tedje, please pay attention on following notes :
    • Post your topic to a correct forum. When there are problems with controlling objects or events, it's definitely a scripting matter.
    • Use search before posting. CodingForums has the most qualified members and moderators, which has already answered nearly all the questions one can propose.

    Kindly,
    Zvona
    First Aid for
    Web Design

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Any 9 year old can also just push the 'print screen' button or drag the pic to the address bar...presto! Like I said..useless.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #10
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    File -> Save As, often does the trick too...
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you look in the "general web building" category, you'll see right at the top this topic, since it gets asked so much.

  • #12
    Regular Coder
    Join Date
    Jun 2002
    Location
    North East England
    Posts
    853
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feel free to submit your site to http://sitesusingnorightclickscripts.com so I can avoid it in future.

  • #13
    New Coder
    Join Date
    Aug 2002
    Location
    canda
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts
    y don't you put a light watermark somewhere on your images
    Jose -better than u since 1986
    http://???.com
    Ask And u will receive

  • #14
    New to the CF scene
    Join Date
    Sep 2002
    Location
    Loerbeek, Gelderland, Netherlands
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just want to have it, if you wiz-kids still can get my ****, so what doesn't interest me, so get off my back and leave me.....

  • #15
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Someone is touchy... we are only offering some advice...
    http://www.mudsplat.com - Web design, print, and marketing solutions.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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