• jq广告无缝轮播实例


     代码如下 复制代码
    <html>
    <head>
    <metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/>
    <title>jquery广告无缝轮播代码演示</title>
     
    <styletype="text/css">
     li{
      list-style:none;
     }
     .mains{
      700px;
      margin:0 auto;
     }
     .mains .title{
      font-size:25px;
      padding:10px 0 5px 50px;
     }
     .g1{
      380px;
      height:180px;
     }
    </style>
    <scripttype="text/javascript"src="js/jquery.min.js"></script>
    </head>
    <body>
     <divclass="mains">
      <divclass="title">jquery广告无缝轮播代码演示</div>
      <divclass="g1"style="overflow: hidden;">
       <ulid="ulID"style="position: relative; height: 1800px; 380px; top: 0px;">
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/1.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/2.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/3.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/4.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/5.jpg"style=" 380px; height: 180px;"></li>
     
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/1.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/2.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/3.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/4.jpg"style=" 380px; height: 180px;"></li>
        <listyle=" 380px; height: 180px; float: left;">
         <imgsrc="img/5.jpg"style=" 380px; height: 180px;"></li>
       </ul>
      </div>
     </div>
     <scripttype="text/javascript">
      var PlaceTop = parseInt($("#ulID").css("top"));
      var int;
      function moveUL(){
       var ulID = $("#ulID");
       PlaceTop = --PlaceTop;
       if(PlaceTop == -900)
       {
        PlaceTop = 0;
       }
       ulID.css("top",PlaceTop);
       if(PlaceTop < -900){
        alert("Eror!");
        clearInterval(int);
       }
      }
      int=setInterval("moveUL()",10);
      $(".g1").hover(function(){
       clearInterval(int);
      },function(){
       int=setInterval("moveUL()",10);
      });
     </script>
    </body>
    </html>
  • 相关阅读:
    发邮件遇到 Failure sending mail.The remote name could not be resolved: 'www.youdomain.com' 问题的解决方法
    machine.config, inetinfo.exe, aspnet_wp.exe, aspnet_state.exe这些文件的作用于位置.
    IIS的变迁(IIS3, IIS4, IIS5, IIS6, IIS7)
    精简代码 (转)
    新年第一帖——元旦这天骑车迷路了
    我是月亮,也想做那天上的太阳
    记几点吧
    谈谈电影
    闺蜜
    大气
  • 原文地址:https://www.cnblogs.com/aivnfjgj/p/7010212.html
Copyright © 2020-2023  润新知