SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Help With This

  1. #1
    SitePoint Enthusiast jpimms's Avatar
    Join Date
    Nov 2003
    Location
    CANADA
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help With This

    here is a script that im having a problem with, the problem is the disable function works well with the no right click but when ever someone puts the mouse over the picture they still able to copy the picture. can any one help me with this

    heres the code

    <script language="JavaScript">

    <!--
    // No rightclick script v.2.5

    var message="????????????.\?????????\n\????????\n???";

    // Don't edit below!

    function click(e) {
    if (document.all) {
    if (event.button == 2) {
    alert(message);
    return false;
    }
    }
    if (document.layers) {
    if (e.which == 3) {
    alert(message);
    return false;
    }
    }
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown=click;
    // -->

    </script>
    <script language="JavaScript" fptype="dynamicanimation">
    <!--
    function dynAnimation() {}
    function clickSwapImg() {}
    //-->
    </script>
    <script language="JavaScript1.2" fptype="dynamicanimation" src="animate.js">
    </script

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, there is no real way to stop anyone from stealing anything on the web. Especially since the photo is already on the user's hard drive by the time the user sees it displayed.

    Search any forum for 'no right click' and you will find hundreds of people saying it can be done, and thousands giving reasons/explanations/code why it can't.

    The best you can do is to put a 'watermark' in the photo and then, if you ever see it elsewhere, sue the individual.
    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


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
  •