<ul>
<li id="mallnavli1"><a href="/mall/">商城首页</a></li>
<li id="mallnavli2"><a href="class.aspx">全部分类</a></li>
<li id="mallnavli3"><a href="list.aspx?type=buy&viewtype=1">热销排行</a></li>
<li id="mallnavli4"><a href="list.aspx?type=tj">商品推荐</a></li>
<li><a href="/tuan/" target="_blank">团购频道</a></li>
</ul>
<div class="clear">
<script type="text/javascript">
function mall_nav_init(){
var url=location.href;
if(url.indexOf("/mall/class.aspx")!=-1){if(document.getElementById("mallnavli2"))document.getElementById("mallnavli2").className="on";}
else if(url.indexOf("/mall/list.aspx?type=buy")!=-1){if(document.getElementById("mallnavli3"))document.getElementById("mallnavli3").className="on";}
else if(url.indexOf("/mall/list.aspx?type=tj")!=-1){if(document.getElementById("mallnavli4"))document.getElementById("mallnavli4").className="on";}
else{if(document.getElementById("mallnavli1"))document.getElementById("mallnavli1").className="on";}
}
mall_nav_init();
</script>
</div>