<?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 Opacity Object</title>
	<atom:link href="http://jacobsantos.com/2006/projects/javascript-opacity-object/feed/" rel="self" type="application/rss+xml" />
	<link>http://jacobsantos.com/2006/projects/javascript-opacity-object/</link>
	<description>Rumblings, rants, essays, stories by Jacob Santos about Web Site Development, Persistent Browser-Based Games, personal journal, and Programming.</description>
	<lastBuildDate>Mon, 21 May 2012 13:04:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3-aortic-dissection</generator>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://jacobsantos.com/2006/projects/javascript-opacity-object/comment-page-1/#comment-18318</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Tue, 25 Sep 2007 23:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=252#comment-18318</guid>
		<description>Not really, the methods that change this.opacity, is the *Timer(). The methods that should be called are FadeIn() and FadeOut(). I believe Stop() was for having both FadeIn() and FadeOut for another objects, but it never worked right.

I actually use other JavaScript libraries, which handle opacity better than my class. If I had known more about JavaScript and programming in general, then this class would never have been created and this post would have been about using that JS library instead.</description>
		<content:encoded><![CDATA[<p>Not really, the methods that change this.opacity, is the *Timer(). The methods that should be called are FadeIn() and FadeOut(). I believe Stop() was for having both FadeIn() and FadeOut for another objects, but it never worked right.</p>
<p>I actually use other JavaScript libraries, which handle opacity better than my class. If I had known more about JavaScript and programming in general, then this class would never have been created and this post would have been about using that JS library instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://jacobsantos.com/2006/projects/javascript-opacity-object/comment-page-1/#comment-18247</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 25 Sep 2007 05:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=252#comment-18247</guid>
		<description>Thanks for posting this, it was very helpful.

One fix though for you.  Your fadeOut doesn&#039;t work because the opacity value isn&#039;t being set in the setOpacity function.

So change setOpacity to:

	      Opacity.prototype.setOpacity = function(value)
	      {
	          if(value == 0) {
	              this.style.display = &#039;none&#039;;
	          } else {
	              this.style.display = &#039;block&#039;;
	          }
	  
	          this.opacity = value;
	          this.style.opacity = (value / 100); 
	          this.style.MozOpacity = (value / 100);
	          this.style.KhtmlOpacity = (value / 100);
	          this.style.filter = &quot;alpha(opacity=&quot; + value + &quot;)&quot;;
	  
	      }</description>
		<content:encoded><![CDATA[<p>Thanks for posting this, it was very helpful.</p>
<p>One fix though for you.  Your fadeOut doesn&#8217;t work because the opacity value isn&#8217;t being set in the setOpacity function.</p>
<p>So change setOpacity to:</p>
<p>	      Opacity.prototype.setOpacity = function(value)<br />
	      {<br />
	          if(value == 0) {<br />
	              this.style.display = &#8216;none&#8217;;<br />
	          } else {<br />
	              this.style.display = &#8216;block&#8217;;<br />
	          }</p>
<p>	          this.opacity = value;<br />
	          this.style.opacity = (value / 100);<br />
	          this.style.MozOpacity = (value / 100);<br />
	          this.style.KhtmlOpacity = (value / 100);<br />
	          this.style.filter = &quot;alpha(opacity=&quot; + value + &quot;)&quot;;</p>
<p>	      }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://jacobsantos.com/2006/projects/javascript-opacity-object/comment-page-1/#comment-380</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Wed, 08 Nov 2006 03:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=252#comment-380</guid>
		<description>Another effect object should be used instead, I&#039;m sorry to say. There is some risk of memory leakage. Which is of course true for other JS libraries as well.

---------------

What I did instead of having it in the &lt;head&gt;&lt;/head&gt; is place it in the page so that it would start as soon as possible.

[html]
&lt;script src=&quot;path/to/script.js&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt;
&lt;p id=&quot;changeOpacity&quot; onmouseover=&quot;var opacity = new Opacity(this); opacity.setOpacity(0); opacity.FadeIn();&quot;&gt;
    Text here.
&lt;/p&gt;
[/html]</description>
		<content:encoded><![CDATA[<p>Another effect object should be used instead, I&#8217;m sorry to say. There is some risk of memory leakage. Which is of course true for other JS libraries as well.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>What I did instead of having it in the <head></head> is place it in the page so that it would start as soon as possible.</p>
<pre class="brush: xml; title: ;">
&lt;script src=&quot;path/to/script.js&quot; language=&quot;javascript&quot;&gt;&lt;/script&gt;
&lt;p id=&quot;changeOpacity&quot; onmouseover=&quot;var opacity = new Opacity(this); opacity.setOpacity(0); opacity.FadeIn();&quot;&gt;
    Text here.
&lt;/p&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://jacobsantos.com/2006/projects/javascript-opacity-object/comment-page-1/#comment-376</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Wed, 08 Nov 2006 00:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=252#comment-376</guid>
		<description>Could you give an example on how to use incorporate this into a, HTML document? I am fairly new to this. Thanks</description>
		<content:encoded><![CDATA[<p>Could you give an example on how to use incorporate this into a, HTML document? I am fairly new to this. Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

