Код:
<!----Скрипт замены слов в навигации ----> <script type="text/javascript"> var itemMass = new Array("HOME","PEOPLE", "CODEX", "SEARCH", "PROFILE", "MESSAGE", "ADMIN", "REGISTER", "LOGIN", "EXIT"); var itemIdMass = new Array("navindex", "navuserlist", "navrules", "navsearch", "navprofile", "navpm", "navadmin", "navregister", "navlogin", "navlogout"); for(i=0; i<itemIdMass.length; i++){ if(document.getElementById(itemIdMass[i])){ var str = document.getElementById(itemIdMass[i]).firstChild.firstChild str.innerHTML=itemMass[i]; } } </script> <script> $(function(){ <!-- userof="AWARDS" str = document.getElementById("navawards").innerHTML if( (pos=str.indexOf("Награды")) != -1 ) document.getElementById("navawards").innerHTML=str.substring(0,pos)+userof+str.substring(pos+7,str.length-1) --> }); </script>