Jeff Gates wrote:
<lots of stuff snipped>
>Here's an interesting problem:
>We use a series of background images on our front page
>(http://americanart.si.edu). Each time a user goes to that page or refreshes
>another image appears randomly. I'd like to put some descriptive text
>(giving some specific information about that image) when someone rolls over
>Is there a way to do this (fairly easily would of course be best in this
>reverse engineering project -g)?
> background-image: url(images/thayer_background2.jpg);
It looks like you're using ColdFusion to provide server-side decisions
about which random image is displayed and supplying a new stylesheet for
You can't directly title an image that's used in CSS, only when it
appears in the HTML as an img element. Seems as though those images are
actually as much content as they are presentation and you might consider
making them part of the markup, but that might be that
reverse-engineering you were talking about.
Or, you can try putting a title attribute on the splash3 div in the HTML:
<div id="splash3" title="Really Descriptive text goes here...">
and having the same CF code that decides which image (i.e., which
second stylesheet) to use also figure out which value to use.
Hope that is helpful,
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/