熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java核心技術 >> 正文

jquery.lazyload 圖片延遲加載實例

2022-06-13   來源: Java核心技術 

<!doctype html public "//wc//dtd xhtml transitional//en" "/dtd/xhtmltransitionaldtd">
<html xmlns="">
<head>
<meta httpequiv="contenttype" content="text/html; charset=gb" />
<title>jquerylazyload 圖片延遲加載實例</title>
<script src="; type="text/網頁特效"></script>
<script type="text/javascript" src="/js/jquerylazyloadjs"></script>
<script type="text/javascript" >
      $(function() {
          $("img")lazyload({placeholder : "img/greygif"});
      });
</script>
</head>

<body>
<table width="" border="" align="center">
  <tr>
    <td height=""><img src="/gif" width="" height="" /></td>
  </tr>
  <tr>
    <td height=""><img src="/jpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height=""><img src="/gif" width="" height="" /></td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height=""><img src="/oraclejpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height=""><img src="/suningjpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height=""><img src="/zgcjpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height=""><img src="/woyaojpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height=""><img src="/zpjpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height=""><img src="/happyjpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height="">&nbsp;</td>
  </tr>
  <tr>
    <td height=""><img src="/cocoonjpg" width="" height="" /></td>
  </tr>
  <tr>
    <td height=""><img src="/suningjpg" width="" height="" /></td>
  </tr>
</table>

</body>
</html>

jquerylazyloadjs下載



From:http://tw.wingwit.com/Article/program/Java/hx/201404/30481.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.