On Fri, Mar 23, 2012 at 10:58 AM, Andy Fingerhut
<andy.finger...@gmail.com> wrote:
> I definitely like the tooltip idea.  I like it so much that I've already 
> played with it a bit, looking at several web pages with instructions for how 
> to do it, but my knowledge of good ways to do this is zero except for the 
> results of those Google searches.
>
> Has anyone implemented tooltips on a web page?  My preferences for a solution 
> are:
>
> (a) No interaction with the web server required to get the tooltip contents, 
> i.e. as far as the server is concerned, it is a static file web page.  
> Hopefully this means it has a very fast reaction time when the user interacts 
> with it to show or take down the tooltips.
>
> (b) Tooltips always appear within the browser window, never sometimes 
> partially in it and partially outside it.
>
> (c) Tooltips appear while your mouse is hovered over a link, and disappear as 
> soon as the mouse moves away from that link.
>
> (d) works with most current web browsers (e.g. latest Firefox, Chrome, 
> Safari, IE).
>
> (e) No $$ or legal encumbrances to use it.

Without even messing around with JS, let alone AJAX or other stuff
that involves trips to the server for more data, you can give tooltips
to links and images with plain HTML:

<a href="link URL here" title="tooltip text here">link text here</a>
<img src="image URL here" alt="tooltip text here">

In text-mode browsers, if anyone still uses such things, the images
will additionally show as their tooltip texts rather than just the
opaque and useless placeholder text "[IMAGE]".

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to