<?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: Tooltips for Forms</title>
	<atom:link href="http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/</link>
	<description>Coding for the Web - A JavaScript Resource</description>
	<lastBuildDate>Mon, 06 Dec 2010 16:29:21 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Irradcacifs</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-1330</link>
		<dc:creator>Irradcacifs</dc:creator>
		<pubDate>Thu, 12 Nov 2009 19:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-1330</guid>
		<description>I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!

Sorry for offtopic</description>
		<content:encoded><![CDATA[<p>I found this site using [url=http://google.com]google.com[/url] And i want to thank you for your work. You have done really very good site. Great work, great site! Thank you!</p>
<p>Sorry for offtopic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Gallagher</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-113</link>
		<dc:creator>Marten Gallagher</dc:creator>
		<pubDate>Tue, 24 Feb 2009 16:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-113</guid>
		<description>Thanks - I am not a programmner but am a logical person so I managed to fiddle and add three variables to the htmlcode part so that the tooltip can be thrown aroudn anywhere.

My next step is to get it to draw messages from a standard bank of messages in a textfile. Will keep you posted.

And yes you are right - the detialed comments helped a non-programmer sort through it logically.

Latest incarnation:
http://www.martengallagher.co.uk/css/tooltips.js</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; I am not a programmner but am a logical person so I managed to fiddle and add three variables to the htmlcode part so that the tooltip can be thrown aroudn anywhere.</p>
<p>My next step is to get it to draw messages from a standard bank of messages in a textfile. Will keep you posted.</p>
<p>And yes you are right &#8211; the detialed comments helped a non-programmer sort through it logically.</p>
<p>Latest incarnation:<br />
<a href="http://www.martengallagher.co.uk/css/tooltips.js" rel="nofollow">http://www.martengallagher.co.uk/css/tooltips.js</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Slaughter</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-112</link>
		<dc:creator>Stan Slaughter</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-112</guid>
		<description>Glad you are finding it of some use.  I tried to design it so it would be easy for any to customize and change the code to suit their needs. (One of the reasons there are almost as many comments as there is code :) )

To make the tip appear to the right you need to just add the width of the form element to the tip_left position. You would do this under the current line 47.  So this:

&lt;strong&gt;   // Add obj height to top position so tip box DIV will show up underneath &quot;obj&quot;  
    tip_top += obj.offsetHeight; &lt;/strong&gt; 

would become this:

&lt;strong&gt;   // Add obj height and width so tip box will show up underneath and to the right of &quot;obj&quot;
    tip_top += obj.offsetHeight;
    tip_left += obj.offsetWidth;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Glad you are finding it of some use.  I tried to design it so it would be easy for any to customize and change the code to suit their needs. (One of the reasons there are almost as many comments as there is code :) )</p>
<p>To make the tip appear to the right you need to just add the width of the form element to the tip_left position. You would do this under the current line 47.  So this:</p>
<p><strong>   // Add obj height to top position so tip box DIV will show up underneath &#8220;obj&#8221;<br />
    tip_top += obj.offsetHeight; </strong> </p>
<p>would become this:</p>
<p><strong>   // Add obj height and width so tip box will show up underneath and to the right of &#8220;obj&#8221;<br />
    tip_top += obj.offsetHeight;<br />
    tip_left += obj.offsetWidth;</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Gallagher</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-111</link>
		<dc:creator>Marten Gallagher</dc:creator>
		<pubDate>Mon, 23 Feb 2009 22:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-111</guid>
		<description>And one last query - is itpossible to change something somewhere so the offset is to the right or to the left rather thannunderneath.A drop-down box obscures the tooltip.

http://www.martengallagher.co.uk/experimenting/form.html

Section 02 - hover over 02a1 red
or
Section 06 - hover over &#039;Which building material do you prefer?&#039;

These would be places where the better ofset might be to the left of the origin. Any thoughts?

Am very impressed with it thus far and am hoping to build it into my &#039;search for the definitive form&#039; of which that page is the experimental base.</description>
		<content:encoded><![CDATA[<p>And one last query &#8211; is itpossible to change something somewhere so the offset is to the right or to the left rather thannunderneath.A drop-down box obscures the tooltip.</p>
<p><a href="http://www.martengallagher.co.uk/experimenting/form.html" rel="nofollow">http://www.martengallagher.co.uk/experimenting/form.html</a></p>
<p>Section 02 &#8211; hover over 02a1 red<br />
or<br />
Section 06 &#8211; hover over &#8216;Which building material do you prefer?&#8217;</p>
<p>These would be places where the better ofset might be to the left of the origin. Any thoughts?</p>
<p>Am very impressed with it thus far and am hoping to build it into my &#8216;search for the definitive form&#8217; of which that page is the experimental base.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Slaughter</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-110</link>
		<dc:creator>Stan Slaughter</dc:creator>
		<pubDate>Mon, 23 Feb 2009 22:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-110</guid>
		<description>&quot;How would I go about setting the width to a fixed width&quot;

Change line 114

from this:

&quot;var tip_width = (iNumChars * iCharWidth + 6 &gt; iMaxWidth ) ? iMaxWidth : iNumChars * iCharWidth + 6;&quot;

to this:

&quot;var tip_width = XXXX&quot;

Where XXXX is the fixed width you want it to be.</description>
		<content:encoded><![CDATA[<p>&#8220;How would I go about setting the width to a fixed width&#8221;</p>
<p>Change line 114</p>
<p>from this:</p>
<p>&#8220;var tip_width = (iNumChars * iCharWidth + 6 > iMaxWidth ) ? iMaxWidth : iNumChars * iCharWidth + 6;&#8221;</p>
<p>to this:</p>
<p>&#8220;var tip_width = XXXX&#8221;</p>
<p>Where XXXX is the fixed width you want it to be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Gallagher</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-109</link>
		<dc:creator>Marten Gallagher</dc:creator>
		<pubDate>Mon, 23 Feb 2009 21:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-109</guid>
		<description>Oh, and Firefox/Mac OSX 10.4.11 and Safari/Mac OSX 10.4.11</description>
		<content:encoded><![CDATA[<p>Oh, and Firefox/Mac OSX 10.4.11 and Safari/Mac OSX 10.4.11</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Gallagher</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-108</link>
		<dc:creator>Marten Gallagher</dc:creator>
		<pubDate>Mon, 23 Feb 2009 21:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-108</guid>
		<description>Oh and for information it works on IE8/XP and in IE8/Windows 7 and in Chrome/XP and Chrome/Windows 7</description>
		<content:encoded><![CDATA[<p>Oh and for information it works on IE8/XP and in IE8/Windows 7 and in Chrome/XP and Chrome/Windows 7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Gallagher</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-107</link>
		<dc:creator>Marten Gallagher</dc:creator>
		<pubDate>Mon, 23 Feb 2009 21:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-107</guid>
		<description>I have just worked it out and I am so embarrassed! I had copied from the web page and included all the line numbers!

Aaarrgghh!

But while you&#039;re there...I want to do all the styling outside in an external css file...so have been trying to comment out the css style lines but it gets a bit tangled with the size of the box calculation bit. How would I go about setting the width to a fixed width and the allowing it to adjust the height normnallylike any block of html?</description>
		<content:encoded><![CDATA[<p>I have just worked it out and I am so embarrassed! I had copied from the web page and included all the line numbers!</p>
<p>Aaarrgghh!</p>
<p>But while you&#8217;re there&#8230;I want to do all the styling outside in an external css file&#8230;so have been trying to comment out the css style lines but it gets a bit tangled with the size of the box calculation bit. How would I go about setting the width to a fixed width and the allowing it to adjust the height normnallylike any block of html?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan Slaughter</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-106</link>
		<dc:creator>Stan Slaughter</dc:creator>
		<pubDate>Mon, 23 Feb 2009 20:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-106</guid>
		<description>Martin,

With out seeing how your are using it, I&#039;m not sure if I can help - but does your &quot;msg&quot; contain single or double quote marks ?

Also were you using IE8 ?  I&#039;ve not tested it against that yet.</description>
		<content:encoded><![CDATA[<p>Martin,</p>
<p>With out seeing how your are using it, I&#8217;m not sure if I can help &#8211; but does your &#8220;msg&#8221; contain single or double quote marks ?</p>
<p>Also were you using IE8 ?  I&#8217;ve not tested it against that yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marten Gallagher</title>
		<link>http://stansight.com/WordPress/2007/10/17/tooltips-for-forms/comment-page-1/#comment-105</link>
		<dc:creator>Marten Gallagher</dc:creator>
		<pubDate>Mon, 23 Feb 2009 17:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://stansight.com/WordPress/?p=14#comment-105</guid>
		<description>Am getting this eror:

missing ; before statement
16. function Tooltips(msg,displayseconds) { \n

What might I have done wrong?</description>
		<content:encoded><![CDATA[<p>Am getting this eror:</p>
<p>missing ; before statement<br />
16. function Tooltips(msg,displayseconds) { \n</p>
<p>What might I have done wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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

