代码驿站移动版
频道导航
HTML/Xhtml
CSS
JavaScript
HTML5
PHP教程
ASP.NET
正则表达式
AJAX
ThinkPHP
Yii
MySQL
MariaDB
Oracle
MongoDB
Redis
DedeCMS
PHPCMS
帝国CMS
WordPress
Discuz
其它CMS
Zend Studio
Sublime
Notepad
Dreamweaver
Windows
Linux
Nginx
Apache
IIS
CentOS
Ubuntu
Debian
网站优化
工具资源
PHP源码
ASP.NET源码
其它源码
图标素材
按钮素材
字体素材
DedeCMS模板
帝国CMS模板
PHPCMS模板
WordPress模板
Discuz!模板
单页模板
开发软件下载
服务器软件下载
广告投放
联系我们
版权申明
软件编程
网页前端
移动开发
数据库
服务器
脚本语言
PHP代码
JAVA代码
Python代码
Android代码
当前位置:
主页
>
网页前端
>
JavaScript代码
>
基于jQuery的弹出隐藏层的窗口特效
时间:2021-01-21 10:54:56 | 栏目:
JavaScript代码
| 点击:次
运行效果后,点击菜单,会弹出一个注册表单,类似于很多论坛的用户注册及登录功能那样,目前还是挺流行的。
<!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> <script src="http://demo.jb51.net/jslib/jquery/jquery-1.6.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#button_2").click(function(){ $("#message").hide(); }); $("#message_show").click(function(){ $("#message").show(); }); $("#message_show2").click(function(){ $("#message").show(); }); $("#message_show3").click(function(){ $("#message").show(); }); $("#message_show4").click(function(){ $("#message").show(); }); $("#message_show5").click(function(){ $("#message").show(); }); $("#message_show6").click(function(){ $("#message").show(); }); $("#message_show7").click(function(){ $("#message").show(); }); $("#message_show8").click(function(){ $("#message").show(); }); $("#message_show9").click(function(){ $("#message").show(); }); }); </script> <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="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show" class="mess_show"> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show2" class="mess_show"> </dt> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show3" class="mess_show"> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show4" class="mess_show"> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show5" class="mess_show"> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show6" class="mess_show"> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show7" class="mess_show"> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/jscss/demoimg/201108/pro_l_menu2.jpg" type="image" id="message_show8" class="mess_show"> </div> <div class="menu"> <input name="button" src="https://www.jb51.net/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" 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:;"><font color=#f05151>现在就想加入,请给我预留名额。</font></a></td> </tr> <tr> <td class=ly_td-bg height=26 width=210 align=left><a onclick="sel('对这个项目很感兴趣,尽快寄资料')" href="javascript:;"><font color=#f05151>对这个项目很感兴趣,尽快寄资料</font></a></td> </tr> <tr> <td height=26 width=180 align=left><a onclick="sel('请问我这个地方有加入者了吗? ')" href="javascript:;"><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:;"><FONT color=#f05151>我想加入,请来电话告诉具体细节</A></TD> </TR> <TR> <TD class=ly_td-bg height=26 width=210 align=left><A onclick="sel('想找一个合适的项目做,请来电话')" href="javascript:;"><FONT color=#f05151>想找一个合适的项目做,请来电话</A></TD> </TR> <TR> <TD height=26 width=180 align=left><A onclick="sel('有兴趣开店,请寄资料或打电话。')" href="javascript:;"><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:;"><FONT color=#f05151>详细研究过您们的项目,想加入。</A></TD> </TR> <TR> <TD class=ly_td-bg height=26 width=210 align=left><A onClick="sel('加入你们后,还会提供哪些服务?')" href="javascript:;"><FONT color=#f05151>加入你们后,还会提供哪些服务?</A></TD> </TR> <TR> <TD height=26 width=210 align=left><A onclick="sel('想去你们公司考察,请给我来电话')" href="javascript:;"><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需再刷新一下页面才能执行
]
您可能感兴趣的文章:
JavaScript常见事件处理程序实例总结
url传递的参数值中包含&时,url自动截断问题的解决方法
Javascript的匿名函数小结
javascript上下左右定时滚动插件
Javascript别踩白块儿(钢琴块儿)小游戏实现代码
相关文章
11-08
兼容浏览器的js事件绑定函数(详解)
11-27
Javascript实例教程(19) 使用HoTMetal(2)
11-23
Webpack中loader打包各种文件的方法实例
10-05
javascript判断图片是否加载完成的方法推荐
11-22
在javascript中执行任意html代码的方法示例解读
JQuery
VUE
AngularJS
MSSql
MySQL
MongoDB
Redis
Linux
Tomcat
Nginx
网站首页
广告投放
联系我们
版权申明
联系站长