基于jQuery CSS3实现 下拉菜单 Formbox



74 294 99



特效描述:基于jQuery CSS3实现 下拉菜单 Formbox,基于jQuery CSS3实现 复古 下拉菜单 Formbox

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/style.css" />

2. 引入JS

<script type='text/javascript' src='http://code.jquery.com/jquery-1.4.2.js'></script>
<script type='text/javascript' src='js/formbox.js'></script>

3. HTML代码

    <div id="edgesline" class="edges"></div>
	<div id="tabs">
    <ul id="tabMenu">
        <li class="regular"><a href="home.html">Home</a></li>
        <li class="dropdown"><a href="#tab1">Login</a></li>
        <li class="dropdown"><a href="#tab2">Sign-Up</a></li>
        <li class="dropdown"><a href="#tab3">Forgot Password</a></li>
        <li class="regular"><a href="home.html">Pricing</a></li>
        <li class="regular"><a href="home.html">About</a></li>
        <li class="dropdown"><a href="#tab4">Contact</a></li>
        <li class="edges">&nbsp;</li>
    </ul>
</div>
<div id="tabContainer">
<ul id="tabPanes">
    <li id="tab1">
        <p>
            <div class="formcontainer">
                <div class="text">
                    <label for="username">Username</label>
                    <input type="text" name="username" id="username" alt="The username you chose when signing-up for the site.">
                </div>
                <div class="text">
                    <label for="password">Password</label>
                    <input type="text" name="password" id="password" alt="The password you chose when signing-up for the site.">
                </div>
                <div class="text">
                    <br>
                    <input type="checkbox" name="rememberme" id="rememberme"> Remember Me
                </div>
            </div>            
            <center>
                <div class="block" id="bluebutton">
                    <button>Login</button>
                </div>
            </center>
        </p>
    </li>
    <li id="tab2">
        <p>
            <div class="formcontainer">
                <div class="text">
                    <label for="username">Desired Username</label>
                    <input type="text" name="desusername" id="desusername" alt="Min. 5 characters Long. <br>All Lowercase letters.<br>Easy to remember">
                </div>
                <div class="text">
                    <label for="despassword">Desired Password</label>
                    <input type="text" name="despassword" id="despassword" alt="Min. 5 characters Long.<br>Must include 1 Number<br>& One Uppercase Letter.">
                </div>
                <div class="text">
                    <label for="password">Confirm Password</label>
                    <input type="text" name="confpassword" id="confpassword" alt="Please ensure this matches the password above">
                </div>
            </div>
            <center>
                <div class="block" id="bluebutton">
                    <button>Sign-Up</button>
                </div>
            </center>
        </p>
    </li>
    <li id="tab3">
        <p>
            <div class="formcontainer">
                <div class="text">
                    <label for="username">Username</label>
                    <input type="text" name="username" id="username" alt="Please check your username is correct before clicking Resend.">
                </div>
                <br>    
                Please enter your username above. Click 'Resend' and we'll email you your password.    
                <center>
                    <div class="block" id="bluebutton">
                        <button>Resend</button>
                    </div>
                </center>
            </p>
            </li>
                <li id="tab4">
                    <p>
                        <div class="formcontainer">
                            <div class="text">
                                <label for="yourname">Your E-Mail:</label>
                                <input type="text" name="youremail" id="youremail" alt="Please enter a valid e-mail address so we can reply back to you">
                            </div>
                            <div class="text">
                                <label for="msgsubject">Subject</label>
                                <input type="text" name="msgsubject" id="msgsubject" alt="What is your message concerning?">
                            </div>
                            <div class="text">
                                <label for="password">Message</label>
                                <input type="text" name="msgtext" id="msgtext" alt="Your Message (Please keep it short). We'll get back to you asap!">
                            </div>
                        </div>
                        <center>
                            <div class="block" id="bluebutton">
                                <button>Send</button>
                            </div>
                        </center>
                    </div>
                    </p>
                </li>                
            </ul>
            </div>
<center>
	          <img id="logo" src="images/logo.png"></img><br>
			  <img id="board" border=0 src="images/woodenboard2.jpg"></img>
			<p>
			  <a class="footerlink" href="http://www.51qianduan.com//blog/formbox">
			    Return To The FormBox Article on AddyOsmani.com
			  </a>
			  </p>
</center>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 导航切换 收缩导航菜单 图片头像上传 二级导航菜单 文字收缩展开 文件上传 下拉导航菜单 图片切换 图片收缩展开 文本框 竖直导航菜单 文字切换 下拉框 图标导航菜单 背景切换 复选 固定导航菜单 手风琴 单选 侧边导航菜单 选项卡自动切换 登录框 树形导航菜单 视频切换 注册框 网址导航菜单 列表切换 搜索框 导航菜单插件 验证码 渐隐切换 文字导航菜单 二级联动 全屏切换 三级联动 切换按钮 城市选择 缩放切换 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 收缩收起展开 切换按钮 form表单 导航菜单导航条

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到