View Full Version : keep highlighted when selected...

May 25th, 2007, 11:57 AM

I've got this page i've made up and there is the menu (light grey boxes) which are 10% opaque until you roll over them... then they become 100% opaque.

This is great, but ideally I would like to be able to have the item that is currently selected remaining 100% opaque even after you rollout.

Is this possible???

here's the code.



May 25th, 2007, 07:22 PM
I'm getting a JavaScript error on your test page, so I can't really see how it is supposed to work.

The solution is conceptual simple, though, the implementation may be tricky. You a variable that tracks the selected box. Each time you select a box, update that variable. Then when you reset the opacity of the boxes, don't reset the one that is selected.