|
Тема |
Re: какво меню, какъв бъг,... [re: ghs] |
|
Автор |
tkulev () |
|
Публикувано | 19.03.06 13:07 |
|
|
Какво не ти е ясно?
Сложил съм кода (хтмл-а) на менюто, заедно със css-a а ето и JavaScript-a:
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes;
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;
Моля ви помогнете!
PS. ето и какво се получава:
Редактирано от tkulev на 19.03.06 13:15.
|
| |
|
|
|