是禁止不了查看源代码的。
他在那里加上了onmousemove='HideMenu()' oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()"

解决方案 »

  1.   

    禁止选择网页文字:
    onselectstart="return false"
    禁止页面拷贝:
    oncopy="return false"将代码写在
    <body onselectstart="return false" oncopy="rerurn false">就可以做到了
      

  2.   

    就是了,直接用查看不就可以咯
    其实还有种方法,你在ie中输入:
    javascript:void(document.body.oncontextmenu=null)
    回车就ok了
      

  3.   


    <html>
    <head>
    <title>JavaScript脚本精粹--自动弹出窗口</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
    A{TEXT-DECORATION: none;}
    A:hover{COLOR: #CC0000;}
    A:link {color: #000000;}
    A:visited {color: #000000;}BODY
    {
    FONT-SIZE: 9pt;background:#f6f6f6
    }
    TD
    {
    FONT-FAMILY:宋体;FONT-SIZE: 9pt;line-height: 150%; }
    Input
    {
    BACKGROUND-COLOR: #E7F7DB; 
    BORDER-BOTTOM: #007500 1px solid;
    BORDER-LEFT: #007500 1px solid;
    BORDER-RIGHT: #007500 1px solid;
    BORDER-TOP: #007500 1px solid;
    COLOR: #000000;
    HEIGHT: 18px;
    border-color: #007500 #007500 #007500 #007500; font-size: 9pt
    }
    Button
    {
    FONT-SIZE: 9pt;HEIGHT: 20px; }
    Select
    {
    FONT-SIZE: 9pt;HEIGHT: 20px;}
    .border
    {
    border: 1px solid #007500;}
    .border2
    {
    background:#ffffff;BORDER-bottom: #007500 1px solid; 
    }
    .title_txt
    {
    background:url(Skin/5/topBar_bg_20.gif);}
    .title
    {
    background:url(Skin/5/title.gif);height: 22;}
    .tdbg
    {
    background:#ffffff;line-height: 150%; 
    }
    .txt_css
    {
    background:url(Skin/5/txt_css.gif);height: 36;
    }
    .title_lefttxt
    {
    filter: DropShadow(Color=#ffffff, OffX=2, OffY=2, Positive=2)
    }
    .title_left
    {
    background:url(Skin/5/title_left1.gif);height: 26;
    }
    .tdbg_left
    {
    background:#E7F7DB
    line-height: 150%;
    }
    .title_left2
    {
    background:#E7F7DB;height:8;
    }
    .tdbg_left2
    {
    background:url(Skin/5/tdbg_left2.gif);height: 13;}
    .tdbg_leftall
    {
    background:#E7F7DB;BORDER-left: #56B02B 1px solid; BORDER-right: #56B02B 1px solid; 
    }
    .title_maintxt
    {
    color: #000000;filter:Glow(Color=#ffffff, Strength=3)
    }
    .title_main
    {
    background:url(Skin/5/title_main.gif);height: 22;
    }
    .tdbg_main
    {
    background:url(Skin/5/tdbg_main2.GIF);line-height: 100%;}
    .title_main2
    {
    background:url(Skin/5/maintop.gif);height: 202;
    }
    .tdbg_main2
    {
    background:url(Skin/5/tdbg_main3.GIF);height: 27;
    }
    .tdbg_mainall
    {
    background:url(Skin/5/kt01-p1.GIF);
    }
    .title_righttxt
    {
    filter: DropShadow(Color=#ffffff, OffX=2, OffY=2, Positive=2)
    }
    .title_right
    {
    background:url(Skin/5/title_right1.gif);height: 26;
    }
    .tdbg_right
    {
    background:#F2FBEB;}
    .title_right2
    {
    background:url(Skin/5/title_main.gif);height: 22;
    }
    .tdbg_right2
    {
    background:url(Skin/5/title_main.gif);height: 22;
    }
    .tdbg_rightall
    {
    background:#E7F7DB;BORDER: #56B02B 1px solid; }
    .topborder
    {
    background-image: url(Skin/5/topborder.gif);
    }
    .nav_top
    {
    background-image: url(Skin/5/nav_top.gif);height: 25;
    }
    .nav_main
    {
    line-height: 150%;background:url(Skin/5/nav_main.gif);
    line-height: 150%;height: 134;
    }
    .nav_bottom
    {
    background-image: url(Skin/5/nav_bottom.gif);}
    .nav_menu
    {
    background:url(Skin/5/nav_menu.gif);height: 24;
    }
    .menu
    {
    background-color: #56B02B;width:97%;border: 1px;}
    td.MenuBody
    {
    background-color: #E7F7DB;
    }
    </style> <script language="JavaScript" type="text/JavaScript">
    function HideMenu() 
    {
    }
    </script>
      

  4.   

    <script type='text/javascript' language='JavaScript1.2' src='stm31.js'></script>
    <script language="JavaScript" type="text/JavaScript">
    //树形导航的JS代码
    document.write("<style type=text/css>#master {LEFT: -200px; POSITION: absolute; TOP: 25px; VISIBILITY: visible; Z-INDEX: 999}</style>")
    document.write("<table id=master width='218' border='0' cellspacing='0' cellpadding='0'><tr><td><img border=0 height=6 src=images/menutop.gif  width=200></td><td rowspan='2' valign='top'><img id=menu onMouseOver=javascript:expand() border=0 height=70 name=menutop src=images/menuo.gif width=18></td></tr>");
    document.write("<tr><td valign='top'><table width='100%' border='0' cellspacing='5' cellpadding='0'><tr><td height='400' valign='top'><table width=100% height='100%' border=1 cellpadding=0 cellspacing=5 bordercolor='#666666' bgcolor=#ecf6f5 style=FILTER: alpha(opacity=90)><tr>");
    document.write("<td height='10' align='center' bordercolor='#ecf6f5'><font color=999900><strong>栏 目 树 形 导 航</strong></font></td></tr><tr><td valign='top' bordercolor='#ecf6f5'>");
    document.write("<iframe width=100% height=100% src='classtree.asp?ChannelID=2' frameborder=0></iframe></td></tr></table></td></tr></table></td></tr></table>");var ie = document.all ? 1 : 0
    var ns = document.layers ? 1 : 0
    var master = new Object("element")
    master.curLeft = -200; master.curTop = 10;
    master.gapLeft = 0; master.gapTop = 0;
    master.timer = null;if(ie){var sidemenu = document.all.master;}
    if(ns){var sidemenu = document.master;}
    setInterval("FixY()",100);function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
    clearTimeout(eval(layerName).timer)
    if(eval(layerName).curLeft != fromLeft){
    if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
    else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
    else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
    if(ie){document.all[layerName].style.left = eval(layerName).curLeft}
    if(ns){document[layerName].left = eval(layerName).curLeft}
    }
    if(eval(layerName).curTop != fromTop){
       if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
    else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
    else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
    if(ie){document.all[layerName].style.top = eval(layerName).curTop}
    if(ns){document[layerName].top = eval(layerName).curTop}
    }
    eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
    }function setPace(layerName, fromLeft, fromTop, motionSpeed){
    eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
    eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
    moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
    }var expandState = 0function expand(){
    if(expandState == 0){setPace("master", 0, 10, 10); if(ie){document.menutop.src = "images/menui.gif"}; expandState = 1;}
    else{setPace("master", -200, 10, 10); if(ie){document.menutop.src = "images/menuo.gif"}; expandState = 0;}
    }function FixY(){
    if(ie){sidemenu.style.top = document.body.scrollTop+10}
    if(ns){sidemenu.top = window.pageYOffset+10}
    }
    </script><script language="JavaScript" type="text/JavaScript">
    //双击鼠标滚动屏幕的代码
    var currentpos,timer;
    function initialize()
    {
    timer=setInterval ("scrollwindow ()",30);
    }
    function sc()
    {
    clearInterval(timer);
    }
    function scrollwindow()
    {
    currentpos=document.body.scrollTop;
    window.scroll(0,++currentpos);
    if (currentpos !=document.body.scrollTop)
    sc();
    }
    document.onmousedown=sc
    document.ondblclick=initialize
    </script>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    //-->
    </script>
    </head>
      

  5.   

    <body leftmargin=0 topmargin=0 onmousemove='HideMenu()' oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()">
    <noscript><iframe src=*></iframe></noscript>......不贴了,内容太长了
      

  6.   

    <body leftmargin=0 topmargin=0 onmousemove='HideMenu()' oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()">
    "查看"->"源文件"怎么样也禁不掉的啊!只能糊弄些刚上网的人。我把这个页面源文件拷下来再自己建个html。把禁止的去掉。呵呵!:
    -------------------
    <!--
    var gt = unescape('%3e');
    var popup = null;
    var over = "Launch Pop-up Navigator";
    popup = window.open('', 'popupnav', 'width=200,height=180,resizable=1,scrollbars=auto');
    if (popup != null) {
    if (popup.opener == null) {
    popup.opener = self; 
    }
    popup.location.href = '弹出文件名.html';
    }
    // -->
    </script> 
    -------------------------
      

  7.   

    http://chanye.finance.sina.com.cn/
    这样呢?大家还有办法吗?
      

  8.   

    用myie,禁用javascript,原形毕露。
    只要是能让人看的网页,是绝对能看到代码的
    实在不行用下载工具下载下来 记事本打开仔细研究。