Fix Ad_Banner
This commit is contained in:
parent
665c01c8b8
commit
764c557794
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue