On Thursday, June 4, 2009 8:39:40 pm David Laakso wrote: > John Fitzgerald wrote: > > Here is a visual aid. > > http://www.fitzio.com/alliedUrology/generalHealth.php > > Anything is possible. Even with the editor of your choice. > > But as of this writing, CSS copes primarily with the way stuff > "looks,"and the way stuff "feels." > Until such time as things may change, perhaps the way to cope with the > way stuff "behaves" is best left to a scripting language. >
I wouldn't quite say "anything is possible." CSS can handle roll-over events (although in this case, it would be pretty clumsy), but it doesn't have any mechanism for click events. More toward answering the question though, essentially you want to make a div appear with a click or a roll over. David is right: Javascript (which is not Java, btw) is probably your best bet. (cue off-topic conversation) Also, PHP would be really bad for this, since it can't change anything without reloading the page. What you're looking to do isn't all that hard, and you can probably find it in a basic tutorial (might try w3schools). It's pretty good project for cutting your teeth on. To get you pointed in the right direction, essentially you want to use the "onclick" and "onmouseover" event handlers, make sure your divs (the balloons will each be a div) have an id, and access the CSS for each div (div.style.display in this case, most likely). Google should be able to help with the rest. ---Tim ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/