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="#333"; if(i==1){ temp_Tag.style.background="url(/template/images/2ico_01.png) no-repeat center left"; }else if(i==2){ temp_Tag.style.background="url(/template/images/2ico_02.png) no-repeat center left"; }else if(i==3){ temp_Tag.style.background="url(/template/images/2ico_03.png) no-repeat center left"; } temp_list.style.display="none"; } Tag_obj.style.color="#f55319"; if(Tag_id=="Tag_1"){ Tag_obj.style.background="url(/template/images/2ico_01H.png) no-repeat center left"; } else if(Tag_id=="Tag_2"){ Tag_obj.style.background="url(/template/images/2ico_02H.png) no-repeat center left"; } else if(Tag_id=="Tag_3"){ Tag_obj.style.background="url(/template/images/2ico_03H.png) no-repeat center left"; } list_obj.style.display="block"; } function showTab(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 curHover"; Box_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 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.style.background="#252525"; temp_Tab.style.borderTop="5px solid #d51519"; temp_Box.style.display="none"; } Tab_obj.style.background="#d51519"; Tab_obj.style.borderTop="5px solid #252525"; Box_obj.style.display="block"; Box_obj.style.width="1120px"; Box_obj.style.height="auto"; } function showTab3(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.style.background="#252525"; temp_Tab.style.borderTop="5px solid #d51519"; temp_Box.style.display="none"; } Tab_obj.style.background="#d51519"; Tab_obj.style.borderTop="5px solid #252525"; Box_obj.style.display="block"; Box_obj.style.width="1120px"; Box_obj.style.height="auto"; } function showTab5(Tac_id,all_count) { var Tab_obj=document.getElementById(Tac_id); for(var i=1;i<=all_count;i++) { var temp_Tab=document.getElementById("Tac_"+i); temp_Tab.style.background="none"; } Tab_obj.style.background="url(/pc/images/bj_8h.png) no-repeat center top"; Tab_obj.style.backgroundSize="100% auto"; Tab_obj.style.backgroundPositionY="0.2rem"; } function showTad(Tad_id,list_id,all_count) { var Tad_obj=document.getElementById(Tad_id); var list_obj=document.getElementById(list_id); for(var i=1;i<=all_count;i++) { var temp_Tad=document.getElementById("Tad_"+i); var temp_list=document.getElementById("List_"+i); temp_Tad.style.backgroundColor="#f7f7f7"; temp_Tad.style.borderBottom="1px solid #ccc"; temp_list.style.display="none"; } Tad_obj.style.backgroundColor="#fff"; Tad_obj.style.borderBottom="1px solid #fff"; list_obj.style.display="block"; list_obj.style.height="auto"; list_obj.style.width="auto"; }