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.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2003
    Location
    Milton Keynes, UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    protect your content

    IM new to all this but the following code will deter visitors to your site, who have limited knowledge, copying your content.
    where nothing is 100% it will stop the chancers taking your hard work and using it as their own, I hope. Dont be too hard on me


    <script language="JavaScript">
    <!--
    var popup="Sorry, right-click is disabled.\n\nThis Site Copyright 2002-2003";
    function noway(go) {
    if (document.all) {
    if (event.button == 2) {
    alert(popup);
    return false;
    }
    }
    if (document.layers) {
    if (go.which == 3) {
    alert(popup);
    return false;
    }
    }
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown=noway;
    // --> </script>

    <script language="JavaScript1.1">
    <!-- var debug = true;
    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('This Page is fully protected! copyright 2002-2003');
    return false;
    }

    return true;
    }
    document.onmousedown=right;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown=right;
    //--></script>

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    hmm. i'm not at all sure what to say here. i think the best i can do is maybe close this thread (if anyone disagrees with that, let me know, and i'll open it right back up), and link to this thread: http://www.codingforums.com/showthre...&threadid=4437
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

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