原帖由 ‥‥穎‥‥ 於 2006-4-11 07:12 PM 發表
我想知
1.點樣可以防止人地copy係xanga入面ge圖
2.禁張圖唔會有link check出一個新ge視窗~入面係個張圖
ths
圖裡左右鍵不許按
<img src=網址 onmousedown=javascript:alert('您採到地雷了')><p>
鎖滑鼠右鍵及防highlight
<body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;">
2.禁張圖唔會有link check出一個新ge視窗~入面係個張圖
<script type='text/javascript'>
// intro splash page by micron
// for more xanga scripts and help go to createblog.com
// change this url to an image of your choice
var image = '圖片網址' ;
function enterSite() {
document.getElementById('splash').style.display = 'none';
var content = document.getElementsByTagName("center");
for (var i=0; i<content.length;i++) {
content.style.display = 'block';
}
return false;
}
if (document.title.slice(-10) == 'Xanga Site') {
document.write('</span></center><style type="text/css"> center {display:none;} .image {border:1px solid #dcdcdc;} </style><table height="100%" width="100%" id="splash"><tr><td align="center" valign="middle" style="text-align:center !important;"><a href="#" onclick="return enterSite();"><img src="'+ image +'" border="0" class="image"></a></td></tr></table><center><span>');
}
</script>