include ad_banner query code. cleaned up parser

This commit is contained in:
Matthew Kaito Juyuan Fu authored and Christophe Vilayphiou committed 2012-02-15 00:34:21 +08:00
1 parent 436f039c1b
commit 8ef2d4b02e
4 files changed
+1372 -21

No files matched your search

File diff suppressed because it is too large. Load diff
+22 -1
View File
@@ -17,4 +17,25 @@ function ajax_load_proc(wapper,url){
if(textSta == 'error')
wapper.html("Loading Failed");
});
}
}
// Ad Banner FX code [start]
function onAfter(e) {
var parent = $(this).parent();
var time_to_next = $(this).attr('time_to_next');
parent.cycle('pause');
setTimeout(function(){parent.cycle('resume')},time_to_next);
}
$(document).ready(function() {
$('.slideshow').children('img').click(function()
{
if($(this).attr('link_open')=='new_window')
{
window.open($(this).attr('link_url'));
}
else
{
document.location.href=$(this).attr('link_url')
}
})
});
// Ad Banner FX code [end]