我想问一下,如果我前台的一个表格  我想增加弹出小窗口的功能,比如我点击页面上的“新增”按钮时,弹出一个小窗口,然后再小窗口中新增,前台代码该怎样去弄?
具体的可以联系我QQ:362876004

解决方案 »

  1.   

    JQ 特效。
    可以单独做一个页或者在下面加一个隐藏的div或者模式窗体<!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>
    <title>2.23练习</title>
    <script type="text/javascript" src="/jquery-1.4.js"></script>
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){ //1
     $("#b1").click(function(){ //2
     $("#t1").dialog({  //3
      title:"2.23练习", //T头
      draggable: false, //不可拖动
      resizable: false, //不可改变大小
      height: 300, //高度
      width:400, //宽度
      modal: true, //模态
      buttons:{"关闭":function(){$("#t1").dialog("close");} }//关闭按钮
      }); //3
      }); //2
    });//1
    </script> 
    </head><body>
    <p><a id="b1" href="#" >show</a>
    <div id="t1" name="box" style="display:none" width="400" height="300" border="1" ><tr><td>THANKS</td></tr></div>
    </body>
    </html>
      

  2.   


       //弹出上传页面
        function FN_OpenUpload(name,iWidth,iHeight)
         {                                
                    var name;                             //网页名称,可为空;
                    var iWidth;                          //弹出窗口的宽度;
                    var iHeight;                        //弹出窗口的高度;
                    var iTop = (window.screen.availHeight-30-iHeight)/2;           //获得窗口的垂直位置;
                    var iLeft = (window.screen.availWidth-10-iWidth)/2;           //获得窗口的水平位置;
                    window.open('../FileOperation/UpLoad.aspx','','height='+iHeight+', width='+iWidth+', top='+iTop+',left='+iLeft+',center=no, toolbar=no,menubar=no, scrollbars=no, resizable=no,location=no, status=no');           
         }window.open('你要弹出的窗体名称',参数)
    你可以百度 谷歌一下 还有一个模态窗体也可以