首页 > 代码库 > 弹窗main

弹窗main

<!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=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="http://www.mamicode.com/jquery-1.11.2.min.js">
</script>
<script type="text/javascript" src="http://www.mamicode.com/tanchuang.js">
</script>
<link href="http://www.mamicode.com/tanchuang.css" rel="stylesheet" type="text/css" />
<style type="text/css">
*{
    margin: 0px auto;
}
</style>
</head>

<body style="background-color:#999">
<div style="width:200px; margin-top:10px; margin-right:50px;">


<input type="button" value="http://www.mamicode.com/登录" id="btntc" style="width:100px; height:30px; font-size:18px;" />


</div>



<div id="tc"></div>



</body>
<script type="text/javascript">
$(document).ready(function(e) {
    
    $(‘#btntc‘).click(function(){
        
            var html = "<form action=‘shoppingchuli.php‘ method=‘post‘><div><div>账号:<input type=‘text‘ name=‘uid‘ value=http://www.mamicode.com/‘lisi‘ />

密码:

"; var button =""; var win = new Window({ width : 400, //宽度 height : 150, //高度 title : ‘天启购物登录‘, //标题 content : html, //内容 isMask : false, //是否遮罩 buttons : button, //按钮 isDrag:true, //是否移动 }); }) }); </script> </html>

 

弹窗main