/** * Created by Administrator on 2017/10/16. */ $(function(){ var str = ''; $(".tec_text_part").mouseover(function(){ $(this).addClass("box-Shadow"); }).mouseout(function(){ $(this).removeClass("box-Shadow"); }); $(".nav>li.on>a").append(str); $(".navbar-nav>li").mouseenter(function(){ $(this).find(".icon").css("background","url('wp-content/themes/hoko/images/icon_.png')"); $(this).find(".sub-menu").stop(true,true).slideDown(); }).mouseleave(function(){ $(this).find(".icon").css("background","url('wp-content/themes/hoko/images/icon.png')"); $(this).find(".sub-menu").slideUp(); }); $(".sub-menu>li").mouseenter(function(){ $(this).parents(".on").children("a").css("color","#15559d"); $(this).css("background","#f5f5f5"); $(this).children("a").css({"color":"#15559d"}); }).mouseleave(function(){ $(this).css("background","#fff"); $(this).parents(".on").children("a").css("color","#333333"); $(this).children("a").css({"color":"#333333"}); }); $(".list").mouseenter(function(){ $(this).children(".row").addClass("show"); $(this).siblings().children(".row").removeClass("show"); }); // $(".cat-item").mouseenter(function(){ // $(".children a").addClass("catitem"); // $(this).css("background","#f5f5f5"); // $(this).children("a").addClass("catitem"); // // $(this).children("a").css("color","#15559d"); // }).mouseleave(function(){ // $(".children a").removeClass("catitem"); // $(this).css("background","#fff"); // $(this).children("a").removeClass("catitem"); // }); }); //璁句负棣栭〉 function SetHome(obj,url){ try{ obj.style.behavior='url(#default#homepage)'; obj.setHomePage(url); }catch(e){ if(window.netscape){ try{ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); }catch(e){ alert("鎶辨瓑锛屾鎿嶄綔琚祻瑙堝櫒鎷掔粷锛乗n\n璇峰湪娴忚鍣ㄥ湴鍧€鏍忚緭鍏モ€渁bout:config鈥濆苟鍥炶溅鐒跺悗灏哰signed.applets.codebase_principal_support]璁剧疆涓?true'"); } }else{ alert("鎶辨瓑锛屾偍鎵€浣跨敤鐨勬祻瑙堝櫒鏃犳硶瀹屾垚姝ゆ搷浣溿€俓n\n鎮ㄩ渶瑕佹墜鍔ㄥ皢銆?+url+"銆戣缃负棣栭〉銆?); } } } //鏀惰棌鏈珯 function AddFavorite(title, url) { try { window.external.addFavorite(url, title); } catch (e) { try { window.sidebar.addPanel(title, url, ""); } catch (e) { alert("鎶辨瓑锛屾偍鎵€浣跨敤鐨勬祻瑙堝櫒鏃犳硶瀹屾垚姝ゆ搷浣溿€俓n\n鍔犲叆鏀惰棌澶辫触锛岃浣跨敤Ctrl+D杩涜娣诲姞"); } } } //淇濆瓨鍒版闈 function toDesktop(sUrl,sName){ try { var WshShell = new ActiveXObject("WScript.Shell"); var oUrlLink = WshShell.CreateShortcut(WshShell.SpecialFolders("Desktop") + "\\" + sName + ".url"); oUrlLink.TargetPath = sUrl; oUrlLink.Save(); } catch(e) { alert("褰撳墠IE瀹夊叏绾у埆涓嶅厑璁告搷浣滐紒"); } }