Was I the first to mention it??? (<a href="http://lists.drupal.org/archives/development/2006-05/msg00955.html">http://lists.drupal.org/archives/development/2006-05/msg00955.html</a>)<br>
<br>
Just kidding, but this is some really wonderfull stuff. I'm already
using jQuery in Drupal projects and as I said, it's a perfect match.<br>
<br>
Regards, Anders<br><br><div><span class="gmail_quote">On 8/22/06, <b class="gmail_sendername">Morbus Iff</b> &lt;<a href="mailto:morbus@disobey.com">morbus@disobey.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; I mentioned that I started playing with jQuery, when I put the finishing<br>&gt; touches on my hovertips module I planned to contribute it (for 4.7.x):<br>&gt;<br>&gt; <a href="http://dave-cohen.com/node/1186">http://dave-cohen.com/node/1186
</a><br><br>I never did like this particular implementation. There are four types:<br><br>&nbsp;&nbsp;* Inside spans: &lt;p&gt;Whee! &lt;span&gt;you're hovering!&lt;/span&gt;&lt;/p&gt;, which makes<br>&nbsp;&nbsp;&nbsp;&nbsp;it really ugly for screen readers or just general DOM goodness.
<br><br>&nbsp;&nbsp;* External divs, like you: &lt;p&gt;Whee&lt;/p&gt; &lt;div&gt;you're hovering!&lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;Also can be ugly depending on where you place all the divs (at the<br>&nbsp;&nbsp;&nbsp;&nbsp;very end of the document? is that cleanly possible?). Would require
<br>&nbsp;&nbsp;&nbsp;&nbsp;you to match up IDs in two different places though.<br><br>&nbsp;&nbsp;* Alt/title hovers - based on the value of the title text. &lt;p title=<br>&nbsp;&nbsp;&nbsp;&nbsp;&quot;you're hovering!&quot;&gt;Whee!&lt;/p&gt;. This one's bad because you can't use
<br>&nbsp;&nbsp;&nbsp;&nbsp;HTML in your tip very cleanly.<br><br>&nbsp;&nbsp;* JS events, such like &lt;p onmouseover=&quot;tooltip_on('you're hovering!')&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;onmouseout=&quot;tooltip_off()&quot;&gt;Whee!&lt;/p&gt;. I tend to like this one (and
<br>&nbsp;&nbsp;&nbsp;&nbsp;implemented it in my game.module, not via jQuery though) the most<br>&nbsp;&nbsp;&nbsp;&nbsp;because it a) doesn't pollute the DOM, b) don't harm screen readers,<br>&nbsp;&nbsp;&nbsp;&nbsp;c) allows HTML, d) keeps everything in one place, e) doesn't require
<br>&nbsp;&nbsp;&nbsp;&nbsp;bookkeeping (which ID goes with this element?).<br><br>Comments?<br><br>[1] <a href="http://cvs.drupal.org/viewcvs/drupal/">http://cvs.drupal.org/viewcvs/drupal/</a><br>&nbsp;&nbsp;&nbsp;&nbsp; contributions/modules/game/game.moduleview=markup
<br><br>--<br>Morbus Iff ( omnia mutantur, nihil interit )<br>Technical: <a href="http://www.oreillynet.com/pub/au/779">http://www.oreillynet.com/pub/au/779</a><br>Culture: <a href="http://www.disobey.com/">http://www.disobey.com/
</a> and <a href="http://www.gamegrene.com/">http://www.gamegrene.com/</a><br>icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / <a href="http://jabber.org">jabber.org</a>: morbus<br></blockquote></div><br>