Results 1 to 2 of 2

Thread: Disabling image save with JS

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disabling image save with JS

    Hi,

    I'm building a website for a photographer friend of mine, and she's asked me if there's any way to disable peoples' ability to save her pictures directly off her website. I know you can disable right clicking, but nowadays, the popular browsers (specifically Firefox and Safari) give you the ability to drag an image off a website and onto the desktop.

    The problem I'm having is that although I've found codes that will do this, I can't use them because I have the image locations directly inside JS that I'm using for slideshow galleries. The code I keep finding has to go inside SRC tags that don't exist within my JS.

    So does anyone know of a basic JS code that could just sit in the <HEAD> or <BODY> of my HTML that could do something like this?

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    There have been many discussions about this and basically if it is on the web, people can take it. You can do a lot to deter people; however, if someone wants something, they will get it no matter what. I know this is not the answer you are looking for, but this is one of those things that you just can't get around.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •