Radio seite Hinzugefügt
This commit is contained in:
20
js/nav.js
20
js/nav.js
@@ -1,11 +1,15 @@
|
||||
function setActive() {
|
||||
|
||||
aObj = document.getElementById('nav').getElementsByTagName('a');
|
||||
for (var i = 0; i < aObj.length; i++) {
|
||||
if (document.location.href == aObj[i].href) {
|
||||
aObj[i].className = 'active';
|
||||
function setActive() {
|
||||
|
||||
aObj = document.getElementsByTagName('nav')[0].getElementsByTagName('a');
|
||||
|
||||
for (var i = 0; i < aObj.length; i++) {
|
||||
|
||||
if (document.location.href == aObj[i].href) {
|
||||
|
||||
aObj[i].className = 'active';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = setActive;
|
||||
Reference in New Issue
Block a user