<script> var href = location.href; if (href == 'http://studentprograms.ru/testovoe-sobytie') { $('#mainmenu>li>a').css('background', '#f00'); } </script>
<script> alert(location.href); </script>