Fix Ad_Banner

This commit is contained in:
Manson Wang 2013-10-08 17:40:29 +08:00
parent 665c01c8b8
commit 764c557794
1 changed files with 1 additions and 4 deletions

View File

@ -36,7 +36,6 @@ function ajax_load_proc(wapper,url,isBanner){
function BannerCycle(banner_index){ function BannerCycle(banner_index){
var banner = banners[banner_index]; var banner = banners[banner_index];
// $.getScript('/static/jquery.cycle.all.latest.js', function(){
if (!!$.prototype.cycle && (banner.image_loaded==banner.image_count)){ if (!!$.prototype.cycle && (banner.image_loaded==banner.image_count)){
$(banner.banner_name).ready(function() { $(banner.banner_name).ready(function() {
$(banner.banner_name).cycle({ $(banner.banner_name).cycle({
@ -48,11 +47,9 @@ function BannerCycle(banner_index){
}); });
}); });
}else{ }else{
// console.log("Waiting"); if (!!$.prototype.cycle) $.getScript('/static/jquery.cycle.all.latest.js');
$.getScript('/static/jquery.cycle.all.latest.js');
setTimeout("BannerCycle("+banner_index+")",500); setTimeout("BannerCycle("+banner_index+")",500);
} }
// });
} }
// Ad Banner FX code [start] // Ad Banner FX code [start]