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;  width: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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM