|
Posted by Jonathan N. Little on 11/12/06 17:29
Nico Schuyt wrote:
> mantrid wrote:
>> Is there a way to prevent users copying a full size image from a web
>> page. '
>
> No guarantee, but you can make it difficult for most of them.
>
>> ....
>> is there a way around having to have two images and use the full
>> ssize one and stop it being copied or if copied will only be a
>> thumbnail?
>
> My knowledge of Javascript is limited, but have a look in IE6 at
> http://www.nicoschuyt.nl/test/thumb_large.htm
>
<img alt="" src="img_large.jpg" width="261" height="550"
ONMOUSEDOWN="if ((document.layers && event.which == 3) ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
?
(document.all && event.button == 2)) saveAsMe('somethingelse.txt'); return
false;">
function saveAsMe (filename){
document.execCommand('SaveAs',null,filename)
^^^^^^^^^^^
?
}
Why bother with testing for old Netscape? "execCommand" crap is only
something MS dreamt up! Your example will only work in IE, so you'd only
be confusing folks who are confused already! ;-)
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|