Код:
<script>
<!--
godof="<input type='button' value='Админка' onClick=location.href='Ссылка/admin_options.php'>"
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>
<!--
indexof="<input type='button' value='Форум' onClick=location.href='Ссылка'>"
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="<input type='button' value='Участники' onClick=location.href='Ссылка/userlist.php'>"
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="<input type='button' value='Поиск' onClick=location.href='Ссылка/search.php'>"
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>
<!--
pismaof="<input type='button' value='Сообщения' onClick=location.href='Ссылка/messages.php'>"
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>
<!--
indexof="<input type='button' value='Профиль' onClick=location.href='Ссылка/profile.php?id=2'>"
str = document.getElementById("navindex").innerHTML
pos = str.indexOf("Профиль")
document.getElementById("navprofile").innerHTML=str.substring(0,pos)+indexof+str.substring(pos+5,str.length-1)
-->
</script>
<script>
<!--
indexof="<input type='button' value='Уйти с форума' onClick=location.href='Ссылка/login.php?action=out&id=2'>"
str = document.getElementById("navindex").innerHTML
pos = str.indexOf("Выход")
document.getElementById("navlogout").innerHTML=str.substring(0,pos)+indexof+str.substring(pos+5,str.length-1)
-->
</script>

в хтлм верх