You are here: Re: controlling the copying of images from a site « HTML « IT news, forums, messages
Re: controlling the copying of images from a site

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация