Sarah Bird

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromSarah Bird
ToMe
SubjectlistCollapse + - help
Date24 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
FromMe
ToSarah Bird
SubjectRe: listCollapse + - help
Date24 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 '&plusmn'. 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/
FromSarah Bird
ToMe
SubjectRe: listCollapse + - help
Date24 May 2006 17:57
Thanks for that, much appreciated!
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.