<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript Fading Tooltips (Only 2KB)</title>
	<atom:link href="http://www.webresourcesdepot.com/javascript-fading-tooltips-only-2kb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webresourcesdepot.com/javascript-fading-tooltips-only-2kb/</link>
	<description>Free Web Resources</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:25:32 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gavin Laking</title>
		<link>http://www.webresourcesdepot.com/javascript-fading-tooltips-only-2kb/comment-page-1/#comment-7367</link>
		<dc:creator>Gavin Laking</dc:creator>
		<pubDate>Sat, 07 Jun 2008 14:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=331#comment-7367</guid>
		<description>Seems wordpress ate my rails tags, so in your views use

tooltip(&quot;label&quot;, &quot;tooltip text goes here&quot;)

Sorry about that :-)</description>
		<content:encoded><![CDATA[<p>Seems wordpress ate my rails tags, so in your views use</p>
<p>tooltip(&#8221;label&#8221;, &#8220;tooltip text goes here&#8221;)</p>
<p>Sorry about that <img src='http://www.webresourcesdepot.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Laking</title>
		<link>http://www.webresourcesdepot.com/javascript-fading-tooltips-only-2kb/comment-page-1/#comment-7366</link>
		<dc:creator>Gavin Laking</dc:creator>
		<pubDate>Sat, 07 Jun 2008 14:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=331#comment-7366</guid>
		<description>You can also create Rails helper to save your typing a bit (add this to app/helpers/application_helper.rb):

def tooltip(label, text, html_options={})
options = {:class =&gt; ‘hotspot’, :onmouseover =&gt; “tooltip.show(’#{text}’)”, :onmouseout =&gt; “tooltip.hide();”}.merge(html_options)
content_tag(:span, options) do
label
end
end

Then in your views, simply use:



Hope that helps someone :-)</description>
		<content:encoded><![CDATA[<p>You can also create Rails helper to save your typing a bit (add this to app/helpers/application_helper.rb):</p>
<p>def tooltip(label, text, html_options={})<br />
options = {:class =&gt; ‘hotspot’, <img src='http://www.webresourcesdepot.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> nmouseover =&gt; “tooltip.show(’#{text}’)”, <img src='http://www.webresourcesdepot.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> nmouseout =&gt; “tooltip.hide();”}.merge(html_options)<br />
content_tag(:span, options) do<br />
label<br />
end<br />
end</p>
<p>Then in your views, simply use:</p>
<p>Hope that helps someone <img src='http://www.webresourcesdepot.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in -0.776 seconds -->
