jquery淡入淡出效果介紹

來源:互聯網
上載者:User

jquery淡入淡出效果介紹

 本篇文章主要是對jquery淡入淡出效果的簡單一實例進行了介紹,需要的朋友可以過來參考下,希望對大家有所協助

樣式:

 

 

 代碼如下:

 <style type="text/css">

      #win {      

        width: 98%;     

        position: absolute;          

        display: none;  

        float:left;  

        }    

           

 

 

        /*控制關閉按鈕的位置*/

        #close {

         margin-left: 155px;

         cursor: pointer;

        }

 

    </style>

 

 

JS代碼:

代碼如下:

 <script  type="text/javascript">

    function showwin() {

        $("#win").fadeIn("slow");

       }

    function hide() {

       $("#win").fadeOut("slow");

      }

 

</script>

 

 

html代碼:

 代碼如下:

 <div id="win">   

            <div id="title">   

                <table  style="width:100%; background:#78b3ef"  cellpadding="4" cellspacing="1" >

                  <tr>

                     <td>ID</td>

                     <td>網站名</td>

                     <td>網域名稱</td>

                     <td>百度收錄</td>

                     <td>是否存在連結</td>

                     <td>操 作  <span id="close" onclick="hide()">關閉</span>   </td>

                  </tr>

                  <tr  style="background:#FFFFFF;">

                     <td><span id="w_id"></span></td>

                     <td><input id="txt_title" type="text" style="width: 237px" /></td>

                     <td><input id="txt_classurl" type="text" style="width: 259px" /></td>

                     <td><span id="w_baidu"></span></td>

                     <td><input id="txt_exist" type="text" style="width: 83px" /></td>

                     <td><input id="Button1" type="button" value="修 改" onclick="w_modify()" /></td>

                  </tr>

                  <tr style="background:#FFFFFF;"><td colspan="6"><a href="Default.aspx">返回首頁</a></td></tr>

               </table>

            </div>   

        </div>   

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.