jQuery(document).ready(function(){ /*-----------------------首页移动---------------------------*/ $(".contHov1").hover( function(){ $(this).addClass("baoG"); $(this).children("a").attr("class","t5"); $(".showImg1").removeClass("disNo"); $(".contHov2").removeClass("jiaL"); $(".contHov2").children("a").attr("class","t7"); $(".showImg2").addClass("disNo"); }, function(){ } ); $(".contHov2").hover( function(){ $(this).addClass("jiaL"); $(this).children("a").attr("class","t5"); $(".showImg2").removeClass("disNo"); $(".contHov1").removeClass("baoG"); $(".contHov1").children("a").attr("class","t7"); $(".showImg1").addClass("disNo"); }, function(){ } ); }); /*************设为首页*****************/ function SetHome(obj) { try { obj.style.behavior = 'url(#default#homepage)'; obj.setHomePage('http://www.cnfda.gov.cn/'); } catch (e) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("抱歉,此操作被浏览器拒绝!\n\n请在浏览器地址栏输入“about:config”并回车然后将[ http://www.cnfda.gov.cn/]设置为'true'"); }; } else { alert("抱歉,您所使用的浏览器无法完成此操作。\n\n您需要手动将' http://www.cnfda.gov.cn/'设置为首页。"); }; }; };