资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
基于jQuery的弹出隐藏层的窗口特效
运行效果后,点击菜单,会弹出一个注册表单,类似于很多论坛的用户注册及登录功能那样,目前还是挺流行的。
<!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>弹出层</title> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20src%3D%22http%3A%2F%2Fdemo.glzy8.com%2Fjslib%2Fjquery%2Fjquery-1.6.2.min.js%22%3E%3C%2Fscript%3E"> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20type%3D%22text%2Fjavascript%22%3E%20%0D%0A%24(document).ready(function()%7B%20%0D%0A%24(%22%23button_2%22).click(function()%7B%20%0D%0A%24(%22%23message%22).hide()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show2%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show3%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show4%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show5%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show6%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show7%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show8%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%24(%22%23message_show9%22).click(function()%7B%20%0D%0A%24(%22%23message%22).show()%3B%20%0D%0A%7D)%3B%20%0D%0A%0D%0A%7D)%3B%20%0D%0A%3C%2Fscript%3E"> <style type="text/css"> .pro_list { width:720px; margin:0 auto; } .menu { width:700px; height:30x; padding-top:15px; clear:both; } .message_box { width:550px; border:5px solid #bd0404; background:#fef8f6; position:absolute; margin:0 auto; left: 498px; top: 200px; display:none; } .message_box { width:550px; border:5px solid #bd0404; background:#fef8f6; position:absolute; margin:0 auto; left: 498px; top: 200px; display:none; } .message_box .mess_input { width:200px; border:1px solid #ccc; height:20px; caption-side:inherit; } .ly_td-bg { border-bottom:#f8d1cf dashed 1px; width:180px; padding-right:10px; } .dd { width:200px; height:161px; border:1px solid #ccc; } .bb span { color:#855409; font-size:14px; margin-left:10px; } .mess_show { float:right; margin-right:5px; } </style> </head> <body> <!--头部结束--> <div class="pro_list"> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show" class="mess_show"> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show2" class="mess_show"> </dt> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show3" class="mess_show"> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show4" class="mess_show"> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show5" class="mess_show"> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show6" class="mess_show"> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show7" class="mess_show"> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show8" class="mess_show"> </div> <div class="menu"> <input name="button" src="http://www.glzy8.com/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show9" class="mess_show"> </div> </div> </div> <div class="div_clear"></div> <!--列表结束--> <div class="message_box" id="message"> <table width="550" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="5" height="89"><img src="images/message_1.jpg" _ewebeditor_ta_src="images%2Fmessage_1.jpg" width="550" height="89" /></td> </tr> <tr> <td width="12"> </td> <td width="37" height="27">姓名:</td> <td width="222"><input name="names" class="mess_input" /></td> <td colspan="2"><span class="bb"><span style="color:#FF0000">* </span>您的真实姓名</span></td> </tr> <tr> <td> </td> <td height="27">电话:</td> <td><input name="names" class="mess_input" /></td> <td colspan="2"><span class="bb"><span style="color:#FF0000">* </span>请填写您的电话号码</span></td> </tr> <tr> <td> </td> <td height="27">地址:</td> <td><input name="names" class="mess_input" /></td> <td colspan="2"><span class="bb"><span style="color:#FF0000">* </span>请填写您的地址,以保证资料邮递</span></td> </tr> <tr> <td> </td> <td height="27">邮箱:</td> <td><input name="names" class="mess_input" /></td> <td colspan="2"><span class="bb"><span style="color:#FF0000">* </span>请填写电子邮箱</span></td> </tr> <tr> <td> </td> <td colspan="4"><table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="37" valign="middle">内容</td> <td width="224"><textarea name="text_content" class="dd" id="text_content" onmouseover=menuControl() cols="20" rows="10" style="overflow-y:hidden"></textarea></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr> <td><div style="POSITION: relative;" id=menu_1> <table border=0 cellspacing=0 cellpadding=0 width=180 height=164> <tbody> <tr> <td height=167 valign=top background=images/liuyan_08.png align=right style="padding-left:15px;"><table border=0 cellspacing=0 cellpadding=0 width=217> <tbody> <tr> <td height=30 valign=center width=210 align=left style="border-bottom:1px solid #f1aba7;"><font color=#c02d2c><strong>填写留言或选择快捷留言</strong></font></td> </tr> <tr> <td class=ly_td-bg height=26 width=210 align=left><a onclick="sel('现在就想加入,请给我预留名额。')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><font color=#f05151>现在就想加入,请给我预留名额。</font></a></td> </tr> <tr> <td class=ly_td-bg height=26 width=210 align=left><a onclick="sel('对这个项目很感兴趣,尽快寄资料')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><font color=#f05151>对这个项目很感兴趣,尽快寄资料</font></a></td> </tr> <tr> <td height=26 width=180 align=left><a onclick="sel('请问我这个地方有加入者了吗? ')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><font color=#f05151>请问我这个地方有加入者了吗? </font></a></td> </tr> </tbody> </table></td> </tr> </tbody> </table> </div> <DIV style="POSITION: relative; DISPLAY: none;" id=menu_2> <table border=0 cellSpacing=0 cellPadding=0 width=230 height=164> <TBODY> <TR> <TD height=167 vAlign=top background=images/liuyan_08.png align=right style="padding-left:15px;"><table border=0 cellSpacing=0 cellPadding=0 width=217> <TBODY> <TR> <TD height=30 vAlign=center width=210 align=left><FONT color=#c02d2c><STRONG>填写留言或选择快捷留言</STRONG></TD> </TR> <TR> <TD class=ly_td-bg height=26 width=210 align=left><A onClick="sel('我想加入,请来电话告诉具体细节')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><FONT color=#f05151>我想加入,请来电话告诉具体细节</A></TD> </TR> <TR> <TD class=ly_td-bg height=26 width=210 align=left><A onclick="sel('想找一个合适的项目做,请来电话')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><FONT color=#f05151>想找一个合适的项目做,请来电话</A></TD> </TR> <TR> <TD height=26 width=180 align=left><A onclick="sel('有兴趣开店,请寄资料或打电话。')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><FONT color=#f05151>有兴趣开店,请寄资料或打电话。</A></TD> </TR> </TBODY> </TABLE></TD> </TR> </TBODY> </TABLE> </DIV> <!--sel end--> <!--sel start--> <DIV style="POSITION: relative; DISPLAY: none; " id=menu_3> <table border=0 cellSpacing=0 cellPadding=0 width=230 height=164> <TBODY> <TR> <TD height=167 vAlign=top background=images/liuyan_08.png align=right style="padding-left:15px;"><table border=0 cellSpacing=0 cellPadding=0 width=217> <TBODY> <TR> <TD height=30 vAlign=center width=210 align=left><FONT color=#c02d2c><STRONG>填写留言或选择快捷留言</STRONG></TD> </TR> <TR> <TD class=ly_td-bg height=26 width=210 align=left><A onclick="sel('详细研究过您们的项目,想加入。')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><FONT color=#f05151>详细研究过您们的项目,想加入。</A></TD> </TR> <TR> <TD class=ly_td-bg height=26 width=210 align=left><A onClick="sel('加入你们后,还会提供哪些服务?')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><FONT color=#f05151>加入你们后,还会提供哪些服务?</A></TD> </TR> <TR> <TD height=26 width=210 align=left><A onclick="sel('想去你们公司考察,请给我来电话')" href="javascript:;" _ewebeditor_ta_href="javascript%3A%3B"><FONT color=#f05151>想去你们公司考察,请给我来电话</A></TD> </TR> </TBODY> </TABLE></TD> </TR> </TBODY> </TABLE> </DIV></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td align="right"><input src="images/mess_menu1.jpg" type="image"></td> <td width="161" height="50" align="center"><input name="button" src="images/mess_menu2.jpg" type="image" id="button_2"></td> <td width="118"> </td> </tr> </table> </div> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程