Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Disable left mouse click and drag on images
- From: paul at juniperwebcraft.com (Paul Novitski)
- Subject: [Javascript] Disable left mouse click and drag on images
- Date: Fri Jul 21 17:47:29 2006
At 01:05 PM 7/21/2006, Troy III Ajnej wrote: >THE SCREEN CAPTURE ISSUE - my last cent >Since almost all screen capture applications along with the "print >screen" are invoked with a key stroke, we can use >key down event to call the clearRAM function just in time before the >actual capture takes place. So there will be no >screen capturing either. Pretty clever stuff, Troy. With a little tweaking (the initializing logic has to go into a window.onload-triggered function), your script fills several of the holes. However: - The Print Screen button (on a Windows machine, at least) is not captured by the JavaScript onkeydown and onkeypress events. Even if it were, I suspect it would copy the screen image to the clipboard before bubbling up to the browser and then to the client-side script. - In Firefox, neither clicking nor right-clicking on a DIV triggers clearRAM(). - The Firefox web developer toolbar menu pick 'Disable JavaScript' halts scripting before the onblur event is processed, leaving the page displayed with the original background images. (In fact, none of the web dev toolbar functions seems to trigger the blur event.) - With the page displayed and then Javascript disabled, the user can look at the page source and CSS source to see the image URLs and download them as separate requests. Regards, Paul
- References:
- [Javascript] Disable left mouse click and drag on images
- From: Troy III Ajnej
- [Javascript] Disable left mouse click and drag on images
- Prev by Date: [Javascript] Disable left mouse click and drag on images
- Next by Date: [Javascript] Form with array like structure
- Previous by thread: [Javascript] Disable left mouse click and drag on images
- Next by thread: [Javascript] Form with array like structure
- Index(es):