Форум поддержки пользователей ZeroParking

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Форум поддержки пользователей ZeroParking » Вопросы по скриптам » Трабл со скриптом замены на картинки слов форум, участники, поиск...


Трабл со скриптом замены на картинки слов форум, участники, поиск...

Сообщений 1 страница 3 из 3

1

Короче вставляю скрипт и вот такая по****нь получается, одина картинка выхода отображается... ммм почему другие не отображаются, одни только ссылки на них.

код

Код:
<script>
<!--
regof=" http://s58.radikal.ru/i162/1102/93/a290566136c3.png ' />"
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>
<script>
<!--
vxodiof=" http://s014.radikal.ru/i329/1102/d7/c134d7b7ccad.png ' />" 
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>
<!--
indexof=" http://s15.radikal.ru/i189/1102/1b/25383e89f15a.png ' />"
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=" http://i058.radikal.ru/1102/5a/06e1495bf4dc.png ' />"
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=" http://s016.radikal.ru/i336/1011/f3/881476ca12ad.jpg ' />"
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=" http://s60.radikal.ru/i170/1102/3f/0b0d8c9bda9b.png ' />"
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=" http://s61.radikal.ru/i171/1102/01/246ec35137cd.png ' />"
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=" http://s41.radikal.ru/i094/1102/e8/4aef5ea578ab.png ' />" 
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=" http://i019.radikal.ru/1102/4d/8f432fbec0f6.png ' />"
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="<img src=' http://s011.radikal.ru/i316/1102/96/82b70d3c9ece.png ' />"
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>

Отредактировано Anima (2011-02-13 12:48:48)

0

2

Anima Ссылки должны стоять вплотную к кавычкам, и есть скрипт короче > Нов.Скрипт ЗАМЕНЫ Слов В ПАНЕЛИ НАВИГАЦИИ СВОИМ CЛОВОМ или КАРТИНКОЙ <

+1

3

Deff написал(а):

Ссылки должны стоять вплотную к кавычкам,

Помоему таже фигня.

Deff написал(а):

и есть скрипт короче > Нов.Скрипт ЗАМЕНЫ Слов В ПАНЕЛИ НАВИГАЦИИ СВОИМ CЛОВОМ или КАРТИНКОЙ

Аригато!
Они  заработали)))

0


Вы здесь » Форум поддержки пользователей ZeroParking » Вопросы по скриптам » Трабл со скриптом замены на картинки слов форум, участники, поиск...


Рейтинг форумов | Создать форум бесплатно