zoukankan      html  css  js  c++  java
  • 缩略图轮播

      

     <%--  全景图片--%>         <script type="text/javascript">             var n, interval;             $(document).ready(function () {                 var $div_li = $("div .showSImgBox li");                 $div_li.click(function () {                     var index = $div_li.index(this);                     $(this).addClass("showCurrent").siblings().removeClass();                     var src = $(".showSImgBox li img").eq(index).attr("src");                     $(" div .showBImgBox img").attr("src", src).fadeIn(5000)                 });                 time(0);             });             var n, interval = null;  // n:指定 或 标记当前播放的图片             function time(index) {                 n = index;                 if (interval == null) {                     interval = setInterval("play()", 5000);                 }             }             function play() {                 var count = $(" .showSImgBox li").length;                 n++;                 if (n > count) {                     n = 0;                 }                 $(".showSImgBox li").removeClass("showCurrent");                 $(".showSImgBox li").eq(n).addClass("showCurrent");                 var src = $(".showSImgBox li img").eq(n).attr("src");                 $("div .showBImgBox img").attr("src", src).fadeIn(5000);             }         </script>         <div class="qjShowBox">             <div class="showBImgBox">                 <img alt="" src="images/quanjing.jpg" />                 <%--    <img src="images/qjShowBimg00.jpg" />--%>             </div>             <div class="showSImgBox" id="showSImgBox">                 <ul>                     <asp:Repeater runat="server" ID="rptquanjingsmall">                         <ItemTemplate>                             <li><href="javascript:void(0)">                                 <img src="<%#globalVariables.FileDir+Eval("GlobalPicBig2") %>alt="" width="181px"                                     height="90px" /></a></li>                         </ItemTemplate>                     </asp:Repeater>                 </ul>             </div>         </div>
  • 相关阅读:
    el-cascader回显问题
    nuxt + ueditor国际化
    nuxt + element + i18n 国际化element(我用的i18n@8.x版本)
    CDH| 组件的使用-Flume| Kafka| Oozie基于Hue的任务调度
    CDH| Hive| Hue| Sqoop| Impala等组件安装部署
    CDH| 组件的安装-HDFS的配置 | Flume| Kafka|
    Flink| 实时需要分析
    Flink| 状态一致性
    Flink| 容错机制
    Flink| 第一个窗口触发时间
  • 原文地址:https://www.cnblogs.com/ft-Pavilion/p/4634851.html
Copyright © 2011-2022 走看看