Using this: http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.html
I’m using background images instead of gradients/plain colours.
I want to have the bottom of the dropdown box rounded,
this works:
.ui-corner-bottom {background:url(images/backbottom.png);}
but how do i access/call the selector which is made when you roll over the bottom?
this code gets called for hover on all the li.items,
.ui-widget-content .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus {background:url(images/select.png) }
i assumed this would work but it doesnt
.ui-corner-bottom-hover {background:url(images/backbottom2.png); }
This should do the trick.
Jquery ui applies the ui-state-hover class to any element when it’s hovered, by writing both classes together as the style will only be applied to elements that have both classes.
And some additional advice:
I recommend you to use css sprites for this hover effect, this way you avoid the ugly flash of nothing when hovering for the first time over an element that uses a different image for its hover state. Chris Coyier wrote up a nice summary/introduction here: http://css-tricks.com/158-css-sprites/