MontyBurns
Programmer
Hi
I've got a DHTML menu tree, and i'm trying not to use CSS classes to define it's style.
How do I get the top level elements to pick up the style rule for A and A:hover, when they aren't actually links?
Using <a href="javascript: void(0)"> doesn't seem to work, so I wrote the following and called it from each top level link:
//do nothing
function doNothing (nothing)
{
//nothing
}
and call it with:
<a href="javascript: doNothing('nothing')>
Unfortunately this is misbehaving under some circumstances - and i'm sure there's a better way anyway.
Any suggestions would be appreciated,
Burns
I've got a DHTML menu tree, and i'm trying not to use CSS classes to define it's style.
How do I get the top level elements to pick up the style rule for A and A:hover, when they aren't actually links?
Using <a href="javascript: void(0)"> doesn't seem to work, so I wrote the following and called it from each top level link:
//do nothing
function doNothing (nothing)
{
//nothing
}
and call it with:
<a href="javascript: doNothing('nothing')>
Unfortunately this is misbehaving under some circumstances - and i'm sure there's a better way anyway.
Any suggestions would be appreciated,
Burns