$(function(){ var imgList = $("#main_nav img" ); var imgSrc=["http://www.nb-rubber.com/templets/default/images_cn/daohang_03.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_04.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_05.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_009.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_10.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_06.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_07.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_08.gif" ]; var imgSrcHover=["/templets/default/images_cn/daohang2_03.gif","/templets/default/images_cn/daohang2_04.gif","/templets/default/images_cn/daohang2_05.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_009.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_10.gif","/templets/default/images_cn/daohang2_06.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_07.gif","http://www.nb-rubber.com/templets/default/images_cn/daohang_08.gif"]; var liList= $("#main_nav>ul>li"); var currentLink = document.location.href; var linkss=$("#main_nav>ul>li>a"); for(var i=0;i