代码如下:
echo "<script language=\"javascript\">
function showpicture$cid0(){
var owin=window.open(\"showpicture.html\",\"_blank\",\"top=0,left=40,width=900,height=700,toolbar=no\");
var char=document.images['img$cid0'].src;
owin.document.write(\"<img src=\"+char+\">\");
owin.document.write(\"<\script language='javascript' for='document' event='oncontextmenu'>\");
owin.document.write(\"window.event.returnValue=false;\");
owin.document.write(\"</\script>\");
}
</script>";
參考答案:<SCRIPT language=javascript>
function click() {if (event.button==2) {alert('不许你偷看!');}}document.onmousedown=click
</SCRIPT>