Any idea on where i can find a script that allows no right click to save the images that are on an html page and to prevent the user from dragging the image to their desktop?
Thanks in advance
Here's a bit of Javascript to disable the right click on a page.
<script language=JavaScript>
<!--
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
there is always ways around stuff like that. in fact firefox has an extension available that will ignore this type of javascript (don't know how well it works).
__________________
tg
---
what the hell was i thinking?
there is always ways around stuff like that. in fact firefox has an extension available that will ignore this type of javascript (don't know how well it works).
Ahh, great, could you tell me where??
- Ruben
__________________
.
Originally Posted by MichaelxxOA "He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
you'll need to go to the firefox extension page, download and install the extension. not sure how well it works... not seen anything out there worth stealing.
__________________
tg
---
what the hell was i thinking?
Thanks tg and catbert303, I'll look into it, someday, maybe (maybe not )
- Ruben
__________________
.
Originally Posted by MichaelxxOA "He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."