Hello List,
I have a little menu script and One of the functions is to remove
the link from the active page.
Try as I might I am receiving the following error, which I was hoping
someone
might be able to explain to me. Thanx.
error: L is null in mootools...ver=1.2.1 (line 134)
}},after:function(M,L){if(!L.parentNode)...},bottom:function(M,L)
{L.appendChild(M);
my Function:
function clear_link(){
var unlinked = 0;
a = document.getElements('a');
for(var i=0;i<a.length;i++)
if(a[i].href == window.location.href.split('#')[0]){
removeNode(a[i]);
var unlinked = 1;
}
if (unlinked == 0){
var newHit = a[0];
newHit.parentNode.setProperty
('id','active_nav');
}
}
----------
Daiv Mowbray
[email protected]
----------