Right click disable java script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Right click disable java script

    Use the script below so when someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted.

    This script works on all browsers, and it's not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. Copy and paste the following code, and make sure it comes between <head> </head> tag



    PHP Code:
    <script type="text/javascript">
    <!--
    var 
    message="Put a custom message here.....";
    function 
    clickIE() {if (document.all) {alert(message);return false;}}
    function 
    clickNS(e) {if
    (
    document.layers||(document.getElementById&&!document.all)) {
    if (
    e.which==2||e.which==3) {alert(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
    Last edited by metulj; 03.09.11, 21:29.

    #2
    Originally posted by prasun View Post
    Use the script below so when someone right clicks to save an image off your page, a message will come up letting people know that your information is copyrighted.

    This script works on all browsers, and it's not foolproof. If someone really wants something from your page they can find ways around it, but at least it's a warning to people who want to take your graphics. Copy and paste the following code, and make sure it comes between <head> </head> tag



    PHP Code:
    <script type="text/javascript">
    <!--
    var 
    message="Put a custom message here.....";
    function 
    clickIE() {if (document.all) {alert(message);return false;}}
    function 
    clickNS(e) {if
    (
    document.layers||(document.getElementById&&!document.all)) {
    if (
    e.which==2||e.which==3) {alert(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
    and then visitor disables java in browser.... LMFAO
    besides... images can be stollen from any site... so why waste time ?
    It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
    ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
    ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
    キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

    Comment


      #3
      If they using pc browsers Ctrl + u then copy image.

      Or Drag and Drop lmao easy
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        Opera Mini users can download image also by pressing (#,6) . . ' . . . , .

        Comment


          #5
          <script language="javascript" type="text/javascript">function IE(e) {
          if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {
          alert('use your right fingure on ur as hole.'); return false; }} function NS(e) {
          if (document.layers || (document.getElementById && !document.all)) {if (e.which == "2" || e.which == "3") {
          alert('use your right fingure on ur as hole.'); return false; }}}
          document.onmousedown=IE;document.onmouseup=NS;docu ment.oncontextmenu=new Function("return false");</script>



          Try with this code

          Comment


            #6
            <script language="javascript" type="text/javascript">function IE(e) {
            if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {
            alert('use your right fingure on ur as hole.'); return false; }} function NS(e) {
            if (document.layers || (document.getElementById && !document.all)) {if (e.which == "2" || e.which == "3") {
            alert('use your right fingure on ur as hole.'); return false; }}}
            document.onmousedown=IE;document.onmouseup=NS;docu ment.oncontextmenu=new Function("return false");</script>
            Me checked bt its not working what is full code manavworld brother
            check in mozila firefox ctrl+u

            Comment


              #7
              Originally posted by manavworld View Post
              <script language="javascript" type="text/javascript">function IE(e) {
              if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {
              alert('use your right fingure on ur as hole.'); return false; }} function NS(e) {
              if (document.layers || (document.getElementById && !document.all)) {if (e.which == "2" || e.which == "3") {
              alert('use your right fingure on ur as hole.'); return false; }}}
              document.onmousedown=IE;document.onmouseup=NS;docu ment.oncontextmenu=new Function("return false");</script>



              Try with this code
              Brother upload update script ...

              Comment

              Working...
              X