var gb2big5_obj=document.getelementbyid("gb2big5") if (gb2big5_obj){ var jf_cn="ft"+self.location.hostname.tostring().replace(/\./g,"") var bodyisft=getcookie(jf_cn) if(bodyisft!="1")bodyisft=default_isft with(gb2big5_obj){ if(typeof(document.all)!="object"){ //非ie浏览器 href="javascript:e_lang_text();location.reload();" //href="javascript:stranbody();location.reload();" }else{ href="#"; onclick= new function("e_lang_text();location.reload();return false") // onclick= new function("stranbody();location.reload();return false") } //title=strantext("点击以繁体中文方式浏览",1,1) //innerhtml=strantext(innerhtml,1,1) } if(bodyisft=="1"){ stranbody(); //settimeout("stranbody()",stranit_delay) } } function e_lang_text(){ var jf_cn="ft"+self.location.hostname.tostring().replace(/\./g,"") var bodyisft=getcookie(jf_cn) if(bodyisft!="1"){ setcookie(jf_cn,'1'); }else{ setcookie(jf_cn,'0'); } } /* by 鱼 2017-06-05 qq 594074555 */ // 导航效果 $(".pub_nav i").click(function(){ $(this).toggleclass("on") $(this).next('ul').toggleclass("slider"); }); // 右侧功能栏 $(function(){ if($(document).scrolltop()>400){ $('.pub_btn').fadein(); } }) $(window).scroll(function(){ if($(this).scrolltop() > 400){ $('.pub_btn').fadein(); }else{ $('.pub_btn').fadeout(); }; }); $('.pub_btn div.box4').click(function(){ $("html, body").animate({ scrolltop: 0 }, 750); }); var flag = 5; $('.pub_btn div.box1').click(function(){ if (flag) { $(this).addclass("on"); flag = 0; }else{ flag = 5; $(this).removeclass("on"); } $('.pub_btn div.box2').removeclass("on"); $(this).find("div.in").click(function(){ $(this).parent().removeclass("on"); }) }); var flag2 = 5; $('.pub_btn div.box2').click(function(){ if (flag2) { $(this).addclass("on"); flag2 = 0; }else{ flag2 = 5; $(this).removeclass("on"); } $('.pub_btn div.box1').removeclass("on"); $(this).find("div.in").click(function(){ $(this).parent().removeclass("on") }) }); // 窗口缩小改变网址 function internet_(){ var width_ = $(window).width(); if (width_<765) { self.location='index1.html'; } } internet_(); $(window).resize(function(){ internet_(); })