Мне нужен скрипт, которые сменят эти заголовки на картинки. Заголовки в основном чуть выше "новые сообщение", "активные темы"....
Смена заголовков "ЛС", "профиль", "администрирование, ит.д на картинки
Сообщений 1 страница 9 из 9
Поделиться218.09.2010 18:41:16
ensi
Форум
<script>
<!--
indexof="<img src='...' >"
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="<img src='...' >"
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>
<!--
findof="<img src='...' >"
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="<img src='...' >"
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="<img src='...' >"
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="<img src='...' >"
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='...' >"
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="<img src='...' >"
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="<img src='...' >"
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>Вместо "..." ссылку на картинку.
Поделиться318.09.2010 23:56:31
StarQ
Спасибо
Поделиться419.09.2010 00:01:26
StarQ
Но код не работает
Поделиться519.09.2010 16:24:53
Но код не работает
Код работает. Как вставляете и что вставляете?
Поделиться619.09.2010 16:50:31
StarQ
Тогда поставим вопрос иначе. Куда ставить код? В хтмл низ или верх?
Вставляю я ссылку на картинку
Поделиться719.09.2010 16:54:08
ensi
В ХМТЛ-низ.
Поделиться819.09.2010 17:00:32
StarQ
Хорошо. Сейчас попробуем
Поделиться919.09.2010 17:08:35
StarQ
На самом деле работаем =;З спасяб