effects.js 不记得是哪个ajax里面提供LightPic上例子不错

解决方案 »

  1.   

    错了,是LightBox 2.0上的看图片的例子
      

  2.   

    <html>
    <head>
    <style>
    *{ margin:0; padding:0;}
    body{ height:100%;}
    .dis{ width:100%;  background: green; position:absolute; left:0; right:0; top:0; bottom:0; -moz-opacity:0.5; filter:alpha(opacity=50);z-index:99; height:100%; }
    </style>
    </head>
    <body>
    <select id=sl>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    </select><br/>
    dsdddddddddddddddd<br/>
    <input type=button value="change" onclick=test() ID="Button1" NAME="Button1"></body>
    </html>
    <script>
    function test()
    {
     var div = document.createElement("<div class='dis' oncontextmenu='return false;'>");
     var iframe = document.createElement("<iframe class='dis' style='z-index:98;'>");
     document.getElementsByTagName("body")[0].appendChild(iframe);
     document.getElementsByTagName("body")[0].appendChild(div);
    }
    </script>
    ==================================
    自己去看看,在加点一个显示层