1,能否用JS代码屏蔽IE7里面右键菜单以及Page下拉菜单下面的View Source菜单项,谢谢
2,有两个静态页面A和B,A要用form向B传数据,要使数据不能显示在URL中,即要隐藏传递的数据,也不要加密数据再传输,也不能用cookie, 该怎么传输,B接收的话要怎么接收,谢谢

解决方案 »

  1.   

    第二个问题..
    如果是ASP.NET 可以用SESSION
      

  2.   

    第二个问题
    A页面OPEN打开B页面,B页面这样取值
    B.element.value = window.opener.formName.elementName.value
    ...
      

  3.   

    lion98,你的这个方法好像不可行阿,我这边没有成功,你试过吗,能不能把代码贴上来,谢谢
      

  4.   

    页面A
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />
    <title>AAAAAAAAAAAAAAA</title>
    </head><body>
    <form id="form1" name="form1" method="post" action="">
    AAAAAAAAA<input type="text" name="a" />
    <input type="button" name="ttt"  value="test" onclick="window.open('b.html')"/>
    </form>
    </body>
    </html>
    页面B<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />
    <title></title>
    <script>
    function getA(){
    document.form1.b.value = window.opener.form1.a.value;
    }
    </script>
    </head><body onload="getA();">
    <form id="form1" name="form1" method="post" action="">
    BBBBBBBB<input type="text" name="b" />
    </form>
    </body>
    </html>
    测试通过
      

  5.   

    页面a不能有window.open(), URL要放在action里面
      

  6.   

    1.oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
    <body oncontextmenu=return(false)> 禁止查看源文件代码
    <script language="javascript">
    function click(){
    if (event.button==2){alert('You are bad man')}}
    document.onmousedown=cilck
    </script>
    View Source菜单项应该没有办法吧2.window.open()把窗口A作为参数传给B