html5: 将需要点击打开的代码加在html5代码的最后
<div id="login-window">
<form method="post" action="">
<label for="username">用户:</label>
<input type="text" id="username" name="username" /><br />
<label for="password">密码:</label>
<input type="password" id="password" name="password" /><br />
<input type="submit" id="login-submit" name="login" /><br />
<a class="signup" href="signup.html">注册新用户</a>
</form>
</div>
javascript:
login-window.js
var modal=(function(){//建立一个modal对象
var $window=$(w