OK, the client side it is.
I recommend you create a new file in the script folder for all your javascript additions in your project.
That way you have your stuff seperated from nopcommerce scripts, easier for later updates.
There are several ways to inlcude your javascript. But as it is your menu control, which is on every page,
you can also put you javascript stuff in the masterpage
look out of the <!-- start and end --> thats whay you need.
Root.Master<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- START -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script>
<script type="text/javascript" src="/scrips/myjavascript.js"></script>
<!-- END -->
<asp:PlaceHolder id="SCRIPTS" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<div class="master-wrapper-page">
<div class="master-wrapper-content">
<nopCommerce:Header ID="ctrlHeader" runat="server" />
<nopCommerce:HeaderMenu ID="ctrlHeaderMenu" runat="server" />
<asp:ContentPlaceHolder ID="cph1" runat="server">
</asp:ContentPlaceHolder>
<div class="clear">
</div>
</div>
<nopCommerce:GoogleAdsense runat="server" ID="ctrlGoogleAdsense" />
<nopCommerce:Footer ID="ctrlFooter" runat="server" />
<nopCommerce:WebAnalytics ID="ctrlWebAnalytics" runat="server" />
</div>
</form>
</body>
</html>
Now open your newly created file and enter this
$(document).ready(
function () {
alert('Worked');
$(".headermenu ul li a").filter(function () {
var currentURL = window.location.toString().split("/");
return $(this).attr("href").indexOf(currentURL[currentURL.length - 1])>0;
}).addClass("active");
}
)
Run your site and see if you get the "Worked" message.
Then you have this bit working. The code should worked on site. I tried it with firebug.
In your styles you need this
.headermenu ul li a.active
{
font-size:25px;
color:red;
font-weight:bold;
}
try to get this working before you change the style.