|
paullee
- PageAdmin熟手
- 295
- 506
- 2010-08-13
|
1#
t
T
发表于 2012-06-05 16:20
|显示全部
JS代码: - //滑动门
- function ShowTab(Id,Boxid)
- {
- document.getElementById("Tab_"+Id).className="template_sign_tab_over";
- document.getElementById("Template_Content_"+Boxid).innerHTML=document.getElementById("Template_Content_"+Id).innerHTML;
- }
- function HideTab(Ids)
- {
- var AIds=Ids.split(',');
- for(i=0;i<AIds.length;i++)
- {
- document.getElementById("Tab_"+AIds[i]).className="template_sign_tab_out";
- document.getElementById("Template_"+AIds[i]).style.display="none";
- }
- }
- function Hide_Template(Ids)
- {
- var AIds=Ids.split(',');
- for(i=0;i<AIds.length;i++)
- {
- document.getElementById("Template_"+AIds[i]).style.display="none";
- }
- }
- function Show_Template(Ids)
- {
- var AIds=Ids.split(',');
- for(i=0;i<AIds.length;i++)
- {
- document.getElementById("Template_"+AIds[i]).style.display="";
- }
- }
- function Load_Template(Id,Boxid)
- {
- document.getElementById(Boxid).innerHTML=document.getElementById("Template_Content_"+Id).innerHTML;
- }
复制代码CSS代码: - /*自定义-首页滑动门*/
- .template_sign_tab_over{float:left;display:inline;text-align:center;width:98px;height:22px;color:#003060;border-bottom: 3px solid #9F0;cursor:pointer;}
- .template_sign_tab_out{float:left;display:inline;text-align:center;width:98px;padding:0 0 0 0;color:#003060;border:0;border-width:0 1px 0 0;cursor:pointer;}
复制代码自定义内容: - <script type="text/javascript">
- Show_Template('10');
- HideTab('4,5,6,7,8,9');
- ShowTab('4','10');
- </script>
复制代码自定义样式: - <style type="text/css">.template_title{background:none}</style>
- <div class="template_title"><span id="Tab_4" class="template_sign_tab_over" onmouseover="HideTab('4,5,6,7,8,9');ShowTab('4','10')"><a target="_blank" href="/product/category_3_5_7.html">格力中央空调</a></span> <span id="Tab_5" class="template_sign_tab_out" onmouseover="HideTab('4,5,6,7,8,9');ShowTab('5','10')"><a target="_blank" href="/product/category_3_5_8.html">美的中央空调</a></span> <span id="Tab_6" class="template_sign_tab_out" onmouseover="HideTab('4,5,6,7,8,9');ShowTab('6','10')"><a target="_blank" href="/product/category_3_5_36.html">大金中央空调</a></span> <span id="Tab_7" class="template_sign_tab_out" onmouseover="HideTab('4,5,6,7,8,9');ShowTab('7','10')"><a target="_blank" href="/product/nav_3_7.html">富士通中央空调</a></span> <span id="Tab_8" class="template_sign_tab_out" onmouseover="HideTab('4,5,6,7,8,9');ShowTab('8','10')"><a target="_blank" href="/product/nav_3_9.html">恒温恒湿机</a></span> <span id="Tab_9" class="template_sign_tab_out" onmouseover="HideTab('4,5,6,7,8,9');ShowTab('9','10')"><a target="_blank" href="/product/nav_3_10.html">地暖</a></span></div>
复制代码隐藏所有涉及模块的默认模块标志 效果展示 http://www.zlhvac.com只是这种方法在搜索引擎抓取的快照中显示不出来,另一种显示出来的没人分享过方法
|