基于jQuery CSS3實現 下拉菜單 Formbox



25 96 33



特效描述:基于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.cqetom.live//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

加群請備注:從官網了解到

老夫子电子