A simple implementation of the fade in effect of jquery

  • 2020-03-30 01:39:26
  • OfStack

Style:


 <style type="text/css">
      #win {      
        width: 98%;     
        position: absolute;          
        display: none;  
        float:left;  
        }    
           

        
        #close {
         margin-left: 155px;
         cursor: pointer;
        }
    </style>

JS code:

 <script  type="text/javascript">
    function showwin() {
        $("#win").fadeIn("slow");
       }
    function hide() {
       $("#win").fadeOut("slow");
      }
</script>

HTML code:

 <div id="win">   
            <div id="title">   
                <table  style="width:100%; background:#78b3ef"  cellpadding="4" cellspacing="1" >
                  <tr>
                     <td>ID</td>
                     <td> The websites </td>
                     <td> The domain name </td>
                     <td> Baidu included </td>
                     <td> Is there a link </td>
                     <td> fuck   As a   <span id="close" onclick="hide()"> Shut down </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=" repair   change " onclick="w_modify()" /></td>
                  </tr>
                  <tr style="background:#FFFFFF;"><td colspan="6"><a href="Default.aspx"> Return to the home page </a></td></tr>
               </table>
            </div>   
        </div>   


Related articles: