Small correction..

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

Reply via email to