Steisye*
Тогда Вам нужно заменить скрипт замены пунктов меню
<script type="text/javascript">
$(function(){
$('li#navindex>a>span:contains("Форум")').html('Наш город').css('color' , 'maroon');
$('li#navrules>a>span:contains("Правила")').html('Кодекс собак').css('color' , 'blue');
$('li#navuserlist>a>span:contains("Участники")').html('Собаки').css('color' , 'maroon');
$('li#navsearch>a>span:contains("Поиск")').html('Собачий нюх').css('color' , 'blue');
$('li#navprofile>a>span:contains("Профиль")').html('Я - собака').css('color' , 'maroon');
$('li#navpm>a>span:contains("Сообщения")').html('Собачья почта').css('color' , 'blue');
});
</script>на более длинный, но рабочий:
Для изменения слова "Форум"
<script>
<!--
indexof="Форумочек"
str = document.getElementById("navindex").innerHTML
pos = str.indexOf("Форум")
document.getElementById("navindex").innerHTML=str.substring(0,pos)+indexof+str.substring(pos+5,str.length-1)
-->
</script>Для изменения слова Участники
<script>
<!--
userof="Люди"
str = document.getElementById("navuserlist").innerHTML
if( (pos=str.indexOf("Участники")) != -1 )
document.getElementById("navuserlist").innerHTML=str.substring(0,pos)+userof+str.substring(pos+9,str.length-1)
-->
</script>Для изменения слова Правила
<script>
<!--
pravilof="Законы"
str = document.getElementById("navrules").innerHTML
pos = str.indexOf("Правила")
document.getElementById("navrules").innerHTML=str.substring(0,pos)+pravilof+str.substring(pos+14,str.length-1)
-->
</script>Для изменения слова Поиск
<script>
<!--
findof="Найти"
str = document.getElementById("navsearch").innerHTML
pos = str.indexOf("Поиск")
document.getElementById("navsearch").innerHTML=str.substring(0,pos)+findof+str.substring(pos+5,str.length-1)
-->
</script>Для изменения слова Профиль
<script>
<!--
faseof="Профайл участника"
str = document.getElementById("navprofile").innerHTML
pos = str.indexOf("Профиль")
document.getElementById("navprofile").innerHTML=str.substring(0,pos)+faseof+str.substring(pos+14,str.length-1)
-->
</script>Для изменения слова Сообщения
<script>
<!--
pismaof="Мессаги"
str = document.getElementById("navpm").innerHTML
pos = str.indexOf("Сообщения")
document.getElementById("navpm").innerHTML=str.substring(0,pos)+pismaof+str.substring(pos+9,str.length-1)
-->
</script>Для изменения слова Администрирование
<script>
<!--
godof="Админ-панель"
str = document.getElementById("navadmin").innerHTML
pos = str.indexOf("Администрирование")
document.getElementById("navadmin").innerHTML=str.substring(0,pos)+godof+str.substring(pos+17,str.length-1)
-->
</script>Для изменения слова Выход
<script>
<!--
valiof="Уйти"
str = document.getElementById("navlogout").innerHTML
pos = str.indexOf("Выход")
document.getElementById("navlogout").innerHTML=str.substring(0,pos)+valiof+str.substring(pos+5,str.length-1)
-->
</script>Для изменения слова Вход
<script>
<!--
vxodiof="Зайти"
str = document.getElementById("navlogin").innerHTML
pos = str.indexOf("Войти")
document.getElementById("navlogin").innerHTML=str.substring(0,pos)+vxodiof+str.substring(pos+5,str.length-1)
-->
</script>Для изменения слова Регистрация
<script>
<!--
regof="Рега на форуме"
str = document.getElementById("navregister").innerHTML
pos = str.indexOf("Регистрация")
document.getElementById("navregister").innerHTML=str.substring(0,pos)+regof+str.substring(pos+18,str.length-1)
-->
</script>Или попросите автора Вашего скрипта подправить его, чтобы замена шла до указания числа новых сообщений.
Отредактировано rps (Чт, 27 Окт 2011 22:47:49)
*


