基于jQuery CSS3实现 下拉菜单 Formbox



32 126 43



特效描述:基于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>



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


热门标签: flash导航菜单 flash导航条 flash导航 flash菜单 flash下拉菜单 flash下拉导航菜单 导航切换 菜单切换 滑动导航菜单 滑动导航 滑动菜单 浮动菜单 浮动导航 滚动导航菜单 滚动菜单 滚动导航 右键菜单 收缩菜单 收缩导航 h5动画导航 h5动画菜单 html5动画导航 html5动画菜单 滑动选项卡 滑动切换 滚动切换 滚动条切换 滑动手风琴 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 收缩展开 展开收缩 收缩 展开 切换按钮 表单 表单美化 表单插件 表单美化插件 导航菜单 导航条 菜单栏 导航栏 分类导航 响应式导航条 响应式导航 导航切换 菜单切换 收缩菜单 收缩导航 下拉列表 下拉菜单 下拉导航 下拉导航菜单 下拉菜单导航 响应式下拉菜单 文本框 text文本框 登录框 导航菜单插件 导航插件 菜单插件

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

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

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