php页面中,
有个按纽 <INPUT type="image" src="css/images/es_share.gif" align="right" name="submit">是发表内容的确定按纽,
现要:点上面的按纽时要弹出一个登陆框
此登陆框要是小页面型的,只含 三行(用户名+密码+确定)
这样一来显示效果就好多了,就不用跳到另外的页面去登陆了,
确定登陆的函数是
check_login($username,$password)
{
...
}上面的功能怎么实现呀,多谢
有个按纽 <INPUT type="image" src="css/images/es_share.gif" align="right" name="submit">是发表内容的确定按纽,
现要:点上面的按纽时要弹出一个登陆框
此登陆框要是小页面型的,只含 三行(用户名+密码+确定)
这样一来显示效果就好多了,就不用跳到另外的页面去登陆了,
确定登陆的函数是
check_login($username,$password)
{
...
}上面的功能怎么实现呀,多谢
<div style="position:absolute;right:0;z-index:1;display:block;background-color:#EEEEEE;width:250;height:100;padding:0;margin:0;text-align:center;" id="loginform">
<span style="font-size:13;font-weight:bold;float:right;color:white;cursor:pointer" onclick="this.parentNode.style.display='none'">关闭</span>
<form name='myform' action="check_login.php" method="POST">
<div style="display:block;width:230;height:80;margin:10,10,10,10px;padding:0px;border:1px solid white">
username:<input type= "text" style="background-color:transparent;margin-top:10px" value="username">
password:<input type= "text" style="background-color:transparent;margin-top:10px" value="password">
<input type= "submit" style="background-color:transparent;margin-top:10px;margin:10,10,10,0px" value="reset"><input type= "submit" style="background-color:transparent;margin:10,0,10,10px" value="submit" onclick="check_login();">
</div>
</form>
</div>
回二楼的,是的,想做个 DISCUZ 那样的登陆效果。。
大家帮我想想,
jquery怎么实现呀
可以的,有插件的,去找找
好想有个yprompt
PS:Dreamweaver上面也有类似的插件,我以前弄过一个类似的,谷歌以下。
2 thickbox.js(jquery)