Results 11 to 18 of 18
-
18th Aug 2011, 07:37 PM #11MemberWebsite's:
vaporhostn.comIm 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..
-
18th Aug 2011, 11:30 PM #12Member
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
-
18th Aug 2011, 11:59 PM #13MemberWebsite's:
sborg.usRemove
PHP Code:var clickmessage="Right click disabled on images!"
PHP Code:alert(clickmessage);
V3g3ta | Halcyon | Abhi
-
19th Aug 2011, 12:58 AM #14Member
Gutted that didnt work m8, but thanx!
-
19th Aug 2011, 01:09 AM #15MemberWebsite's:
sborg.usTry 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
-
19th Aug 2011, 01:25 AM #16Member
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
-
19th Aug 2011, 02:15 PM #17Member
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;">
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
-
19th Aug 2011, 06:42 PM #18OPBannedWebsite's:
SKDown.Net WarezGuru.Org RARdownload.netthis is what our first guy proposed but we needed a global javascript solution
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Broken Images overlapping New Images
By Leeds in forum vBulletinReplies: 8Last Post: 17th Apr 2012, 08:57 PM -
Help loading images on click
By Zeokat in forum Web Development AreaReplies: 6Last Post: 2nd Apr 2012, 06:21 PM -
Upload images to YouPic.in with 1 click using our new FireFox Add-On.
By Crow in forum Webmaster ResourcesReplies: 0Last Post: 13th Oct 2011, 03:30 AM -
Free images host uploader - images will not expire!
By jippo in forum Useful SitesReplies: 11Last Post: 11th Feb 2011, 11:58 PM
themaCreator - create posts from...
Version 3.22 released. Open older version (or...