Small correction..
var activePage = window.location.pathname.substr(1); $("a[href="+activePage+"] img").trigger("mouseover");
Small correction..
var activePage = window.location.pathname.substr(1); $("a[href="+activePage+"] img").trigger("mouseover");