<script>
$(function () {
var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/") + 1);
$("ul li a").each(function () {
if ($(this).attr("href") == pgurl) {
//alert(pgurl);
$(this).parent().addClass("active");
//$(this).parent().find('li').addClass("active");
// $(this).addClass("active");
$(this).parent().parent().parent().addClass("active");
$(this).parent().parent().parent().parent().parent().addClass("active");
//alert($(this).parent().parent().parent().find('li').addClass("active");
}
})
});
</script>
$(function () {
var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/") + 1);
$("ul li a").each(function () {
if ($(this).attr("href") == pgurl) {
//alert(pgurl);
$(this).parent().addClass("active");
//$(this).parent().find('li').addClass("active");
// $(this).addClass("active");
$(this).parent().parent().parent().addClass("active");
$(this).parent().parent().parent().parent().parent().addClass("active");
//alert($(this).parent().parent().parent().find('li').addClass("active");
}
})
});
</script>
0 comments:
Post a Comment