From 47894ab6f3b18563b8655af53bccf28512c8b3a5 Mon Sep 17 00:00:00 2001 From: Manson Wang Date: Fri, 18 Oct 2013 15:54:50 +0800 Subject: [PATCH] Fix Ad_Banner z-index --- public/static/kernel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/static/kernel.js b/public/static/kernel.js index 49b49ff6b..314410c62 100644 --- a/public/static/kernel.js +++ b/public/static/kernel.js @@ -73,8 +73,10 @@ function OrbitCycle(banner_index){ $(banner.banner_name+" > img").each(function(){ if(index==banner.current){ + $( this ).css( "z-index", $(banner.banner_name+" img").length+1); $(this).fadeTo( "slow" , 1); }else{ + $( this ).css( "z-index", index); $(this).fadeTo( "slow" , 0); } index++;