Activity Stream
48,167 MEMBERS
62145 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1.     
    #1
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net

    Default Disable right click for images (no alert)

    I spent hours and hours and no good script is found.

    I am seeking the following:
    - disable rightclick for images only
    - works on major browsers including chrome
    - no alert message what so ever

    All scripts online have alert messages! and if not it don't work.


    I don't want smart asses to start telling me this is useless since people can disable javascripts.
    tdsii Reviewed by tdsii on . Disable right click for images (no alert) I spent hours and hours and no good script is found. I am seeking the following: - disable rightclick for images only - works on major browsers including chrome - no alert message what so ever All scripts online have alert messages! and if not it don't work. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Stole this from IMDB:

    Code: 
     <img src="" onmousedown="return false;" onmousemove="return false;" oncontextmenu="return false;" />
    It'll work as long as javascript has access to disable or replace context menus. It does not create any alerts in Firefox, have not tested any other browsers.

    //EDIT

    See it in action:
    Code: 
    http://www.imdb.com/media/rm2885532672/rg2675546624
    The image is between the <div class="primary"> tags.

  4.     
    #3
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    hey thanks, but sometimes it is impossible to edit every single link.
    got a global method that works on all images?

    example:
    http://*******/0vZve

  5.     
    #4
    Member
    Its quite easy using jQuery:
    Code: 
    $('img').bind('contextmenu', function(e){
        return false;
    });
    But if your site doesn't use jQuery, I think it will be overkill to include the whole library just to use this function.
    Are you using any CMS for the site? If so, I think you can just use xdb suggestion by adding it to where the CMS generating/outputting the images.

  6.     
    #5
    Member

    Default Same Problem

    Hey i have the same problem as tdsii, im after a script to disable right clicking ONLY on images WITHOUT the alert and for the script to effect ALL images.

    There is this code i found which disables right clicking ALL images but it has the alert on it aswell? is there some way to edit this code to take the alert off maybe?

    http://www.dynamicdrive.com/dynamicindex9/noright2.htm


    Thanx anyway

  7.     
    #6
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    Ste H i went across 100s of sites all codes the same. hope we get a solution.

  8.     
    #7
    Member
    document.oncontextmenu=new Function("return false")

    that line is used to remove the alert from "everything" disabled, puzzling stuff lol.

    yer hopefully someone cracks it.

  9.     
    #8
    Member
    Website's:
    vaporhostn.com
    I see no point in this since new browsers can actually pull the image link into a simple menu like firefoxs page info...

    Or if a user knows how to read the page source... Even google will cache your image...

    Best thing to do is disable hotlinking as just viewing the image is like downloading it.

  10.     
    #9
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    Loonycgb2 read my first post

    I don't want smart asses to start telling me this is useless since people can disable javascripts.
    edit: why people try to protect their software against crackers. groups will rip it anyway. I don't want people's ass to talk. think before you talk. most people don't know how to disable javascript. my audience are not nerds and people without a gf or life.

  11.     
    #10
    Member
    I don't want smart asses to start telling me this is useless since people can disable javascripts.

    Spot on m8, i dont care if people can get the images any other way, its harder for them and time wasting if they want to get the images that way

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Broken Images overlapping New Images
    By Leeds in forum vBulletin
    Replies: 8
    Last Post: 17th Apr 2012, 08:57 PM
  2. Help loading images on click
    By Zeokat in forum Web Development Area
    Replies: 6
    Last Post: 2nd Apr 2012, 06:21 PM
  3. Replies: 0
    Last Post: 13th Oct 2011, 03:30 AM
  4. Replies: 11
    Last Post: 11th Feb 2011, 11:58 PM

Tags for this Thread

BE SOCIAL