function showTab(Tab_id,Box_id,listBox_id,all_count) { var Tab_obj=document.getElementById(Tab_id); var Box_obj=document.getElementById(Box_id); var listBox_obj=document.getElementById(listBox_id); for(var i=1;i<=all_count;i++) { var temp_Tab=document.getElementById("Tab_"+i); var temp_Box=document.getElementById("Box_"+i); var temp_listBox=document.getElementById("listBox_"+i); temp_Tab.className=""; temp_Box.style.display="none"; temp_listBox.style.display="none"; } Tab_obj.className="cur"; Box_obj.style.display="block"; listBox_obj.style.display="inline-block"; } function showTab2(Tab_id,Box_id,all_count) { var Tab_obj=document.getElementById(Tab_id); var Box_obj=document.getElementById(Box_id); for(var i=1;i<=all_count;i++) { var temp_Tab=document.getElementById("Tab_"+i); var temp_Box=document.getElementById("Box_"+i); temp_Tab.className="bigNav"; temp_Box.style.display="none"; } Tab_obj.className="bigNav cur"; Box_obj.style.display="block"; } function showCaseTab(Tab_id,Box_id,all_count) { var Tab_obj=document.getElementById(Tab_id); var Box_obj=document.getElementById(Box_id); for(var i=1;i<=all_count;i++) { var temp_Tab=document.getElementById("caseTab_"+i); var temp_Box=document.getElementById("caseBox_"+i); temp_Tab.className="bigNav"; temp_Box.style.display="none"; } Tab_obj.className="bigNav cur"; Box_obj.style.display="block"; } function showTag(Tag_id,list_id,all_count) { var Tag_obj=document.getElementById(Tag_id); var list_obj=document.getElementById(list_id); for(var i=1;i<=all_count;i++) { var temp_Tag=document.getElementById("Tag_"+i); var temp_list=document.getElementById("List_"+i); temp_Tag.style.color="#1e1e1e"; temp_Tag.style.background="url(/template/images/tab.png) no-repeat center top"; temp_list.style.display="none"; } Tag_obj.style.color="#fff"; Tag_obj.style.background="url(/template/images/tabH.png) no-repeat center top"; list_obj.style.display="block"; } function hoverTab(li_id,all_count) { var li_obj=document.getElementById(li_id); var subBox = li_obj.querySelector(".box"); var subTxt_1 = subBox.querySelector(".txt_1"); var subTxt_2 = subBox.querySelector(".txt_2"); var sbox = subBox.querySelector(".sbox"); for(var i=1;i<=all_count;i++) { var temp_li = document.getElementById("li_"+i); var temp_Box = temp_li.querySelector(".box"); var temp_Txt_1 = temp_Box.querySelector(".txt_1"); var temp_Txt_2 = temp_Box.querySelector(".txt_2"); var temp_sbox = temp_Box.querySelector(".sbox"); temp_li.style.width="205px"; temp_li.style.fontSize="17px"; temp_li.style.textAlign="left"; temp_Box.style.background="url(/template/images/hei.png)"; temp_Txt_1.style.paddingTop="13px"; temp_Txt_2.style.fontWeight="normal"; temp_sbox.style.background="url(/template/images/L_1.png) no-repeat left bottom"; temp_sbox.style.backgroundPositionX="20px"; temp_sbox.style.backgroundPositionY="68px"; temp_sbox.style.paddingLeft="20px"; } li_obj.style.width="297px"; li_obj.style.fontSize="20px"; li_obj.style.textAlign="center"; subBox.style.background="none"; subTxt_1.style.paddingTop="25px"; subTxt_2.style.fontWeight="bold"; sbox.style.background=" url(/template/images/L_2.png) no-repeat center top"; sbox.style.backgroundColor="rgba(191,1,5,0.9)"; sbox.style.paddingLeft="0"; } function showFC() { var fcBox=document.getElementById("fcBox"); var fcBtBox=document.getElementById("fcBtBox"); fcBox.style.height="auto"; fcBtBox.style.display="none"; } function showProTag(ProTag_id,xqList_id,tabTxt_id,tabJiao_id,all_count) { var ProTag_obj=document.getElementById(ProTag_id); var xqList_obj=document.getElementById(xqList_id); var tabTxt=document.getElementById(tabTxt_id); var tabJiao=document.getElementById(tabJiao_id); for(var k=1;k<=all_count;k++) { var temp_ProTag=document.getElementById("ProTag_"+k); var temp_xqList=document.getElementById("xqList_"+k); var temp_tabTxt=document.getElementById("tabTxt_"+k); var temp_tabJiao=document.getElementById("tabJiao_"+k); temp_ProTag.style.color="#1e1e1e"; temp_ProTag.style.borderTop="2px solid #f3f3f3"; temp_tabTxt.style.background="#f3f3f3"; temp_tabJiao.style.background="url(/template/images/jiao.png) no-repeat center bottom"; temp_xqList.style.display="none"; } ProTag_obj.style.color="#fff"; ProTag_obj.style.borderTop="2px solid #f2420c"; tabTxt.style.background="#0869bc"; tabJiao.style.background="url(/template/images/jiao2.png) no-repeat center bottom"; xqList_obj.style.display="block"; } function showFengCai(fcTab_id,fcList_id,all_count) { var fcTab_obj=document.getElementById(fcTab_id); var fcList_obj=document.getElementById(fcList_id); for(var i=1;i<=all_count;i++) { var temp_fcTab=document.getElementById("fcTab_"+i); var temp_fcList=document.getElementById("fcList_"+i); if(temp_fcTab.id=="fcTab_1") { temp_fcTab.style.background="url(/template/images/fcTab_01.png) no-repeat"; } else if (temp_fcTab.id=="fcTab_2") { temp_fcTab.style.background="url(/template/images/fcTab_02.png) no-repeat"; } else if (temp_fcTab.id=="fcTab_3") { temp_fcTab.style.background="url(/template/images/fcTab_03.png) no-repeat"; } temp_fcTab.style.color="#0261c3"; temp_fcList.style.display="none"; } if(fcTab_id=="fcTab_1") { fcTab_obj.style.background="url(/template/images/fcTabH_01.png) no-repeat"; } else if (fcTab_id=="fcTab_2") { fcTab_obj.style.background="url(/template/images/fcTabH_02.png) no-repeat"; } else if (fcTab_id=="fcTab_3") { fcTab_obj.style.background="url(/template/images/fcTabH_03.png) no-repeat"; } fcTab_obj.style.color="#fff"; fcList_obj.style.display="block"; } //文字:渐变、描边、阴影 function setTxtStyle(txtObj,txt) { var canvas = txtObj; var ctx = canvas.getContext("2d"); ctx.font = "bold 50px/50px 黑体,arial,sans-serif"; var lg = ctx.createLinearGradient(0, 0, 0, 60); lg.addColorStop(0,"#6633ff"); lg.addColorStop(0.5,"#66ccff"); lg.addColorStop(1,"#6633ff"); ctx.fillStyle = lg; ctx.strokeStyle = "#0099ff"; ctx.lineWidth = 3; ctx.shadowColor = "#666666"; ctx.shadowBlur = 10; ctx.shadowOffsetX = 5; ctx.shadowOffsetY = 5; ctx.strokeText(txt,10,50); ctx.fillText(txt,10,50); } function showHidden() { var adBottom_obj=document.getElementById("adBottom"); var showNoBt2=document.getElementById("showNoBt2"); if(adBottom_obj.style.display=="block") { adBottom_obj.style.display="none"; showNoBt2.style.display="block"; } else { adBottom_obj.style.display="block"; showNoBt2.style.display="none"; } } function showTabNew(newTab_id,newBox_id,all_count) { var newTab_obj=document.getElementById(newTab_id); var newBox_obj=document.getElementById(newBox_id); for(var i=1;i<=all_count;i++) { var temp_newTab=document.getElementById("newTab_"+i); var temp_newBox=document.getElementById("newBox_"+i); temp_newTab.style.background="url(/template/images/k.png) no-repeat center top"; temp_newBox.style.display="none"; } newTab_obj.style.background="url(/template/images/k2.png) no-repeat center top"; newBox_obj.style.display="block"; } function showNav_OrNot(bt_ID,div_ID) { var bt_obj = document.getElementById(bt_ID); var obj = document.getElementById(div_ID); if(obj.style.display=="none") { obj.style.display="block"; } else { obj.style.display="none"; } }