Hi guys,
var Lst;
function CngClass(obj){
if (Lst) Lst.className='';
obj.className='selected';
Lst=obj;
}
The links then all have this added to them:
onclick="CngClass(this);"
It works fantastically. Now I would like the first link to already be highlighted (having the class "selected") on loading the page.
I tried giving the link an id, say xxxx, and then: body onload="CngClass('xxxx');"
This works in IE, Chrome, and Safari; but FF gives an error: xxxx is not defined.
Apparently it's wrong, but I don't know how to fix it: how to define xxxx? Any alternative solution to highlighting the first link is welcome.
Thanks
Eyal