typict
2/1/2016 - 3:08 PM

JS + клас активний пункт меню

JS + клас активний пункт меню

<script type="text/javascript">
try{
var el=document.getElementById('msgText').getElementsByTagName('a');
var url=document.location.href;
for(var i=0;i<el.length; i++){
if (url==el[i].href){
el[i].className += ' selected';
};
};
}catch(e){}
</script>