H
howard.jones
Hi Folks,
I am working on an interactive editor for a graphical map. I have
almost all of it sketched out now, but one problem remains...
I'm using a <ul> to make a toolbar at the top of the screen, with
various CSS to make it into a horizontal toolbar. Each toolbar button
is an <li><a> pair. The href for the a is "#" and there's an onclick
atribute.
However, the buttons are modal. Each one is a verb, and you'd then pick
the target by clicking on the large image below the toolbar. So far, I
can change the class of the other buttons to grey them out, but I can't
actually stop them being represented as links - the pointer still
changes to a hand as you pass over them, and they are still clickable.
A little experimentation has show that removing the href for a button,
in the HTML, will give the effect I want - is there a neat and portable
way to do this programmatically? Setting the href to '' isn't enough
unfortunately.
Can anyone point me in the right direction please?
Thanks in advance for any pointers,
Howie
I am working on an interactive editor for a graphical map. I have
almost all of it sketched out now, but one problem remains...
I'm using a <ul> to make a toolbar at the top of the screen, with
various CSS to make it into a horizontal toolbar. Each toolbar button
is an <li><a> pair. The href for the a is "#" and there's an onclick
atribute.
However, the buttons are modal. Each one is a verb, and you'd then pick
the target by clicking on the large image below the toolbar. So far, I
can change the class of the other buttons to grey them out, but I can't
actually stop them being represented as links - the pointer still
changes to a hand as you pass over them, and they are still clickable.
A little experimentation has show that removing the href for a button,
in the HTML, will give the effect I want - is there a neat and portable
way to do this programmatically? Setting the href to '' isn't enough
unfortunately.
Can anyone point me in the right direction please?
Thanks in advance for any pointers,
Howie