<%
s001 = Request.ServerVariables("PATH_INFO")
s002=len(s001)
durl = mid(s001,2,s002)
%>
<script>
$('#nav li a').each(function(){
if($(this).attr("href") == "<%=durl%>" || $(this).attr("href") == "<%=lm%>.asp" || $(this)[0].href==String(window.location)){
$(this).addClass('cur').siblings().removeClass('cur');} })
</script>
asp获取url 实现导航样式切换
发表于

发表回复