Just a Computer Graphics Studio & My Life

網頁中若有圖片不想讓別人下載,通常網頁設計師會寫javascript來阻止瀏覽者按右鍵,jQuery中也有其寫法,很簡單的幾行程式。

<script>
$(document).ready(function()
  {
    $(document).bind("contextmenu",function(event){
      return false;
    });
  });
</script>

不過破解其實也很容易,Firefox有取消javascript的選項;抑或者可以使用鍵盤複製圖片,正所謂:魔高一尺,道高一丈:P哈~說反了,偷圖者是魔XD

About these ads

發表留言

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

標籤雲

關注

Get every new post delivered to your Inbox.

Join 88 other followers

%d bloggers like this: