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

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1.     
    #11
    Member
    Website's:
    vaporhostn.com
    Im free to say as i please.. And something to know people protect there apps because its WAY harder to crack an app then to download a image...

    These kinds of codes are for people who think "oh wait maybe if i do this ill look a little smarter by trying to block them"

    When as you could easily show images through a simple php file that watermarks all images being used with the named php file...

    So again being a smartass? no im just letting you know theres more creative ways of doing things then this noob ass way that doesnt work..

  2.   Sponsored Links

  3.     
    #12
    Member
    All i want to do is stop people right clicking on my images, and i cant use a FULL disable right click option because there are songs on my php for people to right click and save as.

    A nice quick way to do tht will be great thanx

  4.     
    #13
    Member
    Website's:
    sborg.us
    Remove

    PHP Code: 
    var clickmessage="Right click disabled on images!" 
    and all instances of

    PHP Code: 
    alert(clickmessage); 
    From the above mentioned script, And that should do the job

    V3g3ta | Halcyon | Abhi

  5.     
    #14
    Member
    Gutted that didnt work m8, but thanx!

  6.     
    #15
    Member
    Website's:
    sborg.us
    Try this one out then:

    PHP Code: 
    <script language=JavaScript
    <!--  
    //Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive 
    //For full source code, visit http://www.dynamicdrive.com  

    var message="";  
    /////////////////////////////////// 

    function clickIE4(){
    if (
    event.button==2){ return false; } 
    }  

    function 
    clickNS4(e){ 
        if (
    document.layers||document.getElementById&&!document.all){ 
            if (
    e.which==2||e.which==3){ 
                return 
    false
             } 
        } 
    }  

    if (
    document.layers){ 
        
    document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4
    } else if (
    document.all&&!document.getElementById){
        
    document.onmousedown=clickIE4
    }  

    document.oncontextmenu=new Function("return false")  // -->  
    </script> 


    Just paste this above </body>. Works on FF and Opera, tested by me

    Edit: Just realized that this is for everything, And not just images O.o

    V3g3ta | Halcyon | Abhi

  7.     
    #16
    Member
    Yer that does work but for everything m8, i cudnt right click my links thats all.

    Got to be a way around this...

    thanx alot for trying

  8.     
    #17
    Member
    I have found a way!!!

    This way works with images INDIVIDUALLY, which is actually better. And its only 1 line of code......


    Take your image tag:

    Code: 
    <img src="mypic.jpg" height="24" width="100">

    Add the following event handler to the end of your tag:

    Code: 
    onContextMenu="return false;">

    So it will look like this:

    Code: 
    <img src="mypic.jpg" height="24" width="100" onContextMenu="return false;">
    DONE!


    You can also add an alert message before the return false like this:

    Code: 
    <img src="mypic.jpg" height="24" width="100" onContextMenu="alert('YOUR MESSAGE HERE');return false;">

    I would have prefered a code to control every image at once, but this way i have more control individually, its great!! enjoy

  9.     
    #18
    Banned
    Website's:
    SKDown.Net WarezGuru.Org RARdownload.net
    this is what our first guy proposed but we needed a global javascript solution

Page 2 of 2 FirstFirst 12

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