Results 1 to 3 of 3

Thread: Image swap when saved

  1. #1
    Join Date
    Jul 2014
    Location
    West Midlands, UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image swap when saved

    I *think* what I'm looking for is javascript. I used it (~10) years ago, so I know it exists somewhere in the ether.

    I wish to prevent people from saving pictures from a website, but I do not want to block right clicking.

    I would like it to swap the image someone is trying to save for another one.
    (I used to a giant smiley emoticon in the past ).

    Can someone point me towards the relevant script, or suggest an alternative, please

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    Using JQuery:
    Code:
    $('img').bind('contextmenu', function(e) {
        return false;
    });
    http://jsfiddle.net/wM8Zm/622/
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  3. #3
    Join Date
    Jul 2014
    Location
    West Midlands, UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Deadweight View Post
    Using JQuery:
    Code:
    $('img').bind('contextmenu', function(e) {
        return false;
    });
    http://jsfiddle.net/wM8Zm/622/
    Ooooo - is it that simple? Wow! Thank you

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 01:41 PM
  2. Resolved swap image and swap text
    By DIYPARTYHIRE in forum HTML
    Replies: 1
    Last Post: 08-13-2009, 02:31 PM
  3. Replies: 0
    Last Post: 11-26-2008, 11:32 AM
  4. vml editor drawing image to be saved
    By meenakshi in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 07-01-2008, 07:17 PM

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
  •