zoukankan      html  css  js  c++  java
  • UniGUI学习之多张图片轮播(38)

    function afterCreate(sender){ 
      Ext.util.CSS.createStyleSheet(
        "#"+sender.id+"{overflow:hidden; position:relative; }"
       +"#"+sender.id+" .hd{ height:15px; overflow:visible; position:absolute; right:5px; bottom:25px; z-index: 1;}"
        +"#"+sender.id+" .hd ul{ overflow:visible; zoom:1; float:left;  }"
        +"#"+sender.id+" .hd ul li{ float:left; margin-right:2px;  15px; height:15px; line-height:14px; text-align:center; background:#fff; cursor:pointer;list-style-type:none; }"
        +"#"+sender.id+" .hd ul li.on{ background:#f00; color:#fff; }"
      ); 
      Ext.defer(function(){  var S='<div class="hd"><ul>';
        for (i=0;i<$("#"+sender.body.id).children().length; i++){S += "<li></li>"}; S=S+"</ul><div>";
        $("#"+sender.id+" div:first").before(S);
        $("#"+sender.id).slide({mainCell:"#"+sender.body.id,effect:"leftLoop",easing:"easeInOutBack",autoPlay:true,interTime:5000,delayTime:500});;
      },1); 
    }

    要多少张图片,就多加几个UniImage

  • 相关阅读:
    别让猴子翻到背上
    python生成二维码
    50条经典爱情观
    智力测试题
    SQL数据库优化
    递归函数实现二分查找法
    软件开发类别
    递归函数的深度问题
    UVALive
    UVALive
  • 原文地址:https://www.cnblogs.com/tulater/p/13325117.html
Copyright © 2011-2022 走看看