Fix for banner link

This commit is contained in:
Christophe Vilayphiou committed 2012-08-13 11:03:11 +08:00
1 parent 33fc96ac7c
commit 2ea3193879
3 files changed
+12 -8

No files matched your search

+8 -5
View File
@@ -26,14 +26,17 @@ function getTimeout() {
$(document).ready(function() {
$('.slideshow').children('img').click(function()
{
if($(this).attr('link_open')=='new_window')
if($(this).attr('link_url')!='')
{
window.open($(this).attr('link_url'));
if($(this).attr('link_open')=='new_window')
{
window.open($(this).attr('link_url'));
}
else
{
document.location.href=$(this).attr('link_url')
else
{
document.location.href=$(this).attr('link_url')
}
}
})
});
// Ad Banner FX code [end]