锁禁图片
是不是每次都有人来 Copy image url,Copy image,拖走你照片....? =w= 很讨厌对不对 ? 用了这个过后,不管怎样 别人都偷不到你的图片了 :D
Blog Template
1. 设计 - 添加小工具 - HTML/JavaScript
2. 添加代码进去:
3. 保存
Blogskin
1. 去模板
2. Ctrl + F,寻找 </html>
3. </html>下面添加代码:
4. 保存。
<script type='text/javascript'>
document.ondragstart = function () { return false; }; </script>
<SCRIPT TYPE='text/javascript'>
<!--
//Disable right click script
//visit http://www.rainbow.arch.scriptmania.com/scripts/
var message="Sorry, right-click has been disabled";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</SCRIPT>