大眾論壇 » Xanga 討論區 » 徵求:Xanga防右鍵 & high line 語法

2008-3-27 18:27 Evan@肥佬
徵求:Xanga防右鍵 & high line 語法

舊果個用唔到 =.= ...
搵佐好耐都搵唔到個岩用...
有冇人而家用緊果d岩用架?...

2008-4-16 15:06 nicky_hkc
我都係呀...仲有冇其他code可以用呀?我唔想人地copy我xanga d圖....

2008-5-10 18:51 13abe
[font=Tahoma][color=black]<SCRIPT Language="JavaScript">
var message="Function Disabled!";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(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>[/color][/font]
[color=#8b0000][/color]
[color=#8b0000][/color]

[color=indigo]我用緊呢個. 應該OK既. 唔知幫唔幫到你啦.! <3:) [/color]

[[i] 本帖最後由 13abe 於 2008-5-10 18:53 編輯 [/i]]

2008-6-7 13:21 月兒落我心
[code]<script>
window.onload=setEvent;

function setEvent(){
   document.body.oncontextmenu=noReturn;
   document.body.onselectstart=noReturn;
   document.body.ondragstart=noReturn;
}

function noReturn(){
   event.returnValue=false;
}
</script>[/code]

樓上果個試過...唔得...
呢個得-v-
我e+ xanga都用緊...:cool:

2008-6-26 08:52 ZOE_0405
thx...我都用左^^

2008-8-10 17:08 ZOE_0405
真係用到牙`謝謝

頁: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.