Email conversation
From | Sarah Bird |
To | Me |
Subject | listCollapse + - help |
Date | 24 May 2006 15:06 |
Hi Tarquin
I am working on your listCollapse javascript to create a menu for a website
i am making for a friend. I have got it working perfectly - but i was
wondering if there was anyway I could get rid of the + - signs on the drop
down titles (so you just have to click on the word to activate the drop down
bit) & is there anyway I could make all of the menu items a rollover - so
they change colour when you roll over them rather than them staying one
colour?
Thanks. Hope to hear from you soon.
Sarah
From | Me |
To | Sarah Bird |
Subject | Re: listCollapse + - help |
Date | 24 May 2006 17:41 |
Sarah,
> i was wondering if there was anyway I could get rid of the + - signs
When you collapse the list, you pass it some HTML to use there. My examples
use '±'. If you do not want anything there, just use ''.
> is there anyway I could make all of
> the menu items a rollover
The menu style is controlled by CSS, and it is up to you to decide exactly
how you want to style them. The CSS :hover pseudo-class is what you should
use for this. Unfortunately, IE will need you to attach this to the links
instead of the LI, so make sure that the links have block display, then use:
#whateverIdYouAreUsing li a:hover {
background: red;
}
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Sarah Bird |
To | Me |
Subject | Re: listCollapse + - help |
Date | 24 May 2006 17:57 |
Thanks for that, much appreciated!