Answer the question
In order to leave comments, you need to log in
Highlight the active menu item, if the menu item contains a GET request?
There is a piece of code:
<ul id="msgText" class="shassi_menu_top">
<a class="act" href="/katalog_spectehniki/kranymanipulyatory/gaz/"><li>
ГАЗ
</li></a>
<a href="/katalog_spectehniki/kranymanipulyatory/kamaz/"><li>
КАМАЗ
</li></a>
</ul>
<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 += ' act';
};
};
}catch(e){}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question