<?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: script.aculo.us Reflector</title>
	<atom:link href="http://ajaxian.com/archives/scriptaculous-reflector/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/scriptaculous-reflector</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Matthias</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-252436</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Sun, 08 Jul 2007 15:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-252436</guid>
		<description>I don&#039;t know what&#039;s wrong, but it doesn&#039;t work! I&#039;ll try to fix it!</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know what&#8217;s wrong, but it doesn&#8217;t work! I&#8217;ll try to fix it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2006-04-28 at Brandon&#8217;s Blog</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8483</link>
		<dc:creator>links for 2006-04-28 at Brandon&#8217;s Blog</dc:creator>
		<pubDate>Wed, 03 May 2006 03:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8483</guid>
		<description>[...] Ajaxian Â» script.aculo.us Reflector A GREAT effect using script.aculo.us (tags: javascript script.aculo.us webdesign ajax prototype)   No Tags [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajaxian Â» script.aculo.us Reflector A GREAT effect using script.aculo.us (tags: javascript script.aculo.us webdesign ajax prototype)   No Tags [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lon</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8199</link>
		<dc:creator>Lon</dc:creator>
		<pubDate>Sat, 29 Apr 2006 13:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8199</guid>
		<description>Alternatively, you could do this:

&lt;style&gt; 
body { 
  background-color:black; 
  color: white; 
} 
 
img.reflect { 
  code: expression((function(img){ 
    if (!img.reflected) { 
      img.reflected=true; 
      var rImg = document.createElement(&#039;img&#039;); 
      rImg.style.cssText = &quot;position: absolute; clip: rect(auto auto 30% auto); filter: flipv alpha(opacity=50, style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=30)&quot;; 
      var bcr = img.getBoundingClientRect(); 
      rImg.style.top = bcr.bottom - document.body.clientTop; 
      rImg.style.left = bcr.left - document.body.clientLeft; 
      rImg.src = img.src; 
      rImg.width = img.width; 
      rImg.height = img.height; 
      rImg.reflected = true; 
      document.body.appendChild(rImg); 
    } 
  })(this)); 
} 
&lt;/style&gt; 
 
&lt;img src=&quot;http://mir.aculo.us/stuff/reflector/wollzelle.jpg&quot; class=&quot;reflect&quot;&gt;

Works only in the best browser since 2000, but it saves you over 100KB of JS and about 100 images.

Thanks to Sjoerd.</description>
		<content:encoded><![CDATA[<p>Alternatively, you could do this:</p>
<p>&lt;style&gt;<br />
body {<br />
  background-color:black;<br />
  color: white;<br />
} </p>
<p>img.reflect {<br />
  code: expression((function(img){<br />
    if (!img.reflected) {<br />
      img.reflected=true;<br />
      var rImg = document.createElement(&#8216;img&#8217;);<br />
      rImg.style.cssText = &#8220;position: absolute; clip: rect(auto auto 30% auto); filter: flipv alpha(opacity=50, style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=30)&#8221;;<br />
      var bcr = img.getBoundingClientRect();<br />
      rImg.style.top = bcr.bottom &#8211; document.body.clientTop;<br />
      rImg.style.left = bcr.left &#8211; document.body.clientLeft;<br />
      rImg.src = img.src;<br />
      rImg.width = img.width;<br />
      rImg.height = img.height;<br />
      rImg.reflected = true;<br />
      document.body.appendChild(rImg);<br />
    }<br />
  })(this));<br />
}<br />
&lt;/style&gt; </p>
<p>&lt;img src=&#8221;http://mir.aculo.us/stuff/reflector/wollzelle.jpg&#8221; class=&#8221;reflect&#8221;&gt;</p>
<p>Works only in the best browser since 2000, but it saves you over 100KB of JS and about 100 images.</p>
<p>Thanks to Sjoerd.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajaxian Â» script.aculo.us Reflector at blackrimglasses.com</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8153</link>
		<dc:creator>Ajaxian Â» script.aculo.us Reflector at blackrimglasses.com</dc:creator>
		<pubDate>Fri, 28 Apr 2006 21:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8153</guid>
		<description>[...] Ajaxian Â» script.aculo.us Reflector pretty cool and completely useless! [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajaxian Â» script.aculo.us Reflector pretty cool and completely useless! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tejas lakhani</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8149</link>
		<dc:creator>tejas lakhani</dc:creator>
		<pubDate>Fri, 28 Apr 2006 19:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8149</guid>
		<description>i want to have this file in a zip format can you email me.</description>
		<content:encoded><![CDATA[<p>i want to have this file in a zip format can you email me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frato blog &#187; script.aculo.us Reflector, reflet d&#8217;image</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8108</link>
		<dc:creator>Frato blog &#187; script.aculo.us Reflector, reflet d&#8217;image</dc:creator>
		<pubDate>Fri, 28 Apr 2006 07:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8108</guid>
		<description>[...] Scriptaculous Reflector &gt;&gt; L&#8217;article sur Ajaxian &gt;&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] Scriptaculous Reflector &gt;&gt; L&#8217;article sur Ajaxian &gt;&gt; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8103</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Fri, 28 Apr 2006 04:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8103</guid>
		<description>woah awsome.. I just realized you replicate the image for each px line... very cool.

If you dig these effects with multiple instances of images and such you should check out some flash (fla) sources that emulate a mode 7 (aka Mario Kart, DOOM) mode. That would be tight to see in js.

http://www.gotoandplay.it/_articles/2003/07/mario_kart.php
http://www.gotoandplay.it/_articles/2004/11/mode7proto.php

geez yall are harsh...but i see your points.</description>
		<content:encoded><![CDATA[<p>woah awsome.. I just realized you replicate the image for each px line&#8230; very cool.</p>
<p>If you dig these effects with multiple instances of images and such you should check out some flash (fla) sources that emulate a mode 7 (aka Mario Kart, DOOM) mode. That would be tight to see in js.</p>
<p><a href="http://www.gotoandplay.it/_articles/2003/07/mario_kart.php" rel="nofollow">http://www.gotoandplay.it/_articles/2003/07/mario_kart.php</a><br />
<a href="http://www.gotoandplay.it/_articles/2004/11/mode7proto.php" rel="nofollow">http://www.gotoandplay.it/_articles/2004/11/mode7proto.php</a></p>
<p>geez yall are harsh&#8230;but i see your points.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8095</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 28 Apr 2006 02:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8095</guid>
		<description>Scripts like this, the &quot;genie effect&quot; by scott schiller, and the 3d cube rotation a while back all use multiple instances of the same image to slice up; which doesn&#039;t work very well if caching is turned off. Of course, caching is usually on for most people, but if it isn&#039;t it results in multiple requests for the same image, and slowing down everything. I only notice this since I turn caching off when working, and i often forget to turn it back on.</description>
		<content:encoded><![CDATA[<p>Scripts like this, the &#8220;genie effect&#8221; by scott schiller, and the 3d cube rotation a while back all use multiple instances of the same image to slice up; which doesn&#8217;t work very well if caching is turned off. Of course, caching is usually on for most people, but if it isn&#8217;t it results in multiple requests for the same image, and slowing down everything. I only notice this since I turn caching off when working, and i often forget to turn it back on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hubris Sonic</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8092</link>
		<dc:creator>Hubris Sonic</dc:creator>
		<pubDate>Fri, 28 Apr 2006 01:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8092</guid>
		<description>&lt;b&gt;Thats really nice work, really nice.&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p><b>Thats really nice work, really nice.</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: henrah</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8088</link>
		<dc:creator>henrah</dc:creator>
		<pubDate>Fri, 28 Apr 2006 00:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8088</guid>
		<description>@Mike:
to avoid overwriting the native Image object, you could replace
&lt;code&gt;    var Image = { ...stuff... }&lt;/code&gt;
with
&lt;code&gt;var Image = Object.extend(Image &#124;&#124; {}, { ...stuff... });&lt;/code&gt;

...which falls back to a fresh object if for some reason the native object is not there.</description>
		<content:encoded><![CDATA[<p>@Mike:<br />
to avoid overwriting the native Image object, you could replace<br />
<code>    var Image = { ...stuff... }</code><br />
with<br />
<code>var Image = Object.extend(Image || {}, { ...stuff... });</code></p>
<p>&#8230;which falls back to a fresh object if for some reason the native object is not there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8068</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Thu, 27 Apr 2006 19:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8068</guid>
		<description>That dude on the right is PIMP</description>
		<content:encoded><![CDATA[<p>That dude on the right is PIMP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8064</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8064</guid>
		<description>&lt;em&gt;Thomas:&lt;/em&gt; I&#039;m in now way attacking the script, and there&#039;s no question that protype and script.aculo.us are a great set of tools. It&#039;s the idea of making simple things more complicated, which is the way some of the featured items here do. I agree, its fun to push the boundries of what certain technologies can do. But within three days this script will be on every goddamn blog in history.

&lt;em&gt;Chris:&lt;/em&gt; If you want to create mirrored HTML its time to shut the internet down and go home. As for using other peoples images, don&#039;t.</description>
		<content:encoded><![CDATA[<p><em>Thomas:</em> I&#8217;m in now way attacking the script, and there&#8217;s no question that protype and script.aculo.us are a great set of tools. It&#8217;s the idea of making simple things more complicated, which is the way some of the featured items here do. I agree, its fun to push the boundries of what certain technologies can do. But within three days this script will be on every goddamn blog in history.</p>
<p><em>Chris:</em> If you want to create mirrored HTML its time to shut the internet down and go home. As for using other peoples images, don&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr Usewicz</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8061</link>
		<dc:creator>Piotr Usewicz</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8061</guid>
		<description>Great and simple!</description>
		<content:encoded><![CDATA[<p>Great and simple!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Digitaria Blog &#187; Blog Archive &#187; &#8220;That reflector is dope!&#8221;</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8060</link>
		<dc:creator>Digitaria Blog &#187; Blog Archive &#187; &#8220;That reflector is dope!&#8221;</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8060</guid>
		<description>[...] Check it out here. Don&#8217;t overuse it. Use it for good, not evil. [...]</description>
		<content:encoded><![CDATA[<p>[...] Check it out here. Don&#8217;t overuse it. Use it for good, not evil. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Heilmann</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8059</link>
		<dc:creator>Chris Heilmann</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:36:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8059</guid>
		<description>I agree with Jeffrey that this is a lot better with Canvas. This effect is fancy, but the question is: Would you handcode that in HTML? We can do _anything_ with the DOM, but that doesn&#039;t mean we should.

As to Dan&#039;s comment: The difference is that I can do this effect with images I didn&#039;t create or I could even do it with non-image content.</description>
		<content:encoded><![CDATA[<p>I agree with Jeffrey that this is a lot better with Canvas. This effect is fancy, but the question is: Would you handcode that in HTML? We can do _anything_ with the DOM, but that doesn&#8217;t mean we should.</p>
<p>As to Dan&#8217;s comment: The difference is that I can do this effect with images I didn&#8217;t create or I could even do it with non-image content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Fuchs</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8058</link>
		<dc:creator>Thomas Fuchs</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8058</guid>
		<description>@Dan: This is meant as a demo of what you can do with just a few lines of JavaScript when using the Prototype/script.aculo.us libraries.

No one forces you to use it (plus, my original article explicitly states that it&#039;s not meant for production use).

@Bjorn: Can you please tell what you mean by &quot;Scriptaculous has fallen out of favor with me since the new version is broken in gecko browsers&quot;? It&#039;s working fine for me....?</description>
		<content:encoded><![CDATA[<p>@Dan: This is meant as a demo of what you can do with just a few lines of JavaScript when using the Prototype/script.aculo.us libraries.</p>
<p>No one forces you to use it (plus, my original article explicitly states that it&#8217;s not meant for production use).</p>
<p>@Bjorn: Can you please tell what you mean by &#8220;Scriptaculous has fallen out of favor with me since the new version is broken in gecko browsers&#8221;? It&#8217;s working fine for me&#8230;.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8057</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:24:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8057</guid>
		<description>Awesome. Now it takes a huge amount of javascript to show a simple reflection for an image, which isdefinitely what the net needs.

I know, when you&#039;re making the image web-friendly, use Photoshop to add a reflection.

Removing my own shin bones would be cool, but difficult and painful to do - see any connection to this script?</description>
		<content:encoded><![CDATA[<p>Awesome. Now it takes a huge amount of javascript to show a simple reflection for an image, which isdefinitely what the net needs.</p>
<p>I know, when you&#8217;re making the image web-friendly, use Photoshop to add a reflection.</p>
<p>Removing my own shin bones would be cool, but difficult and painful to do &#8211; see any connection to this script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8052</link>
		<dc:creator>Bjorn</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8052</guid>
		<description>Also that doesn&#039;t work with me in Epiphany 2.14, a gecko browser.</description>
		<content:encoded><![CDATA[<p>Also that doesn&#8217;t work with me in Epiphany 2.14, a gecko browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8050</link>
		<dc:creator>Bjorn</dc:creator>
		<pubDate>Thu, 27 Apr 2006 16:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8050</guid>
		<description>Scriptaculous has fallen out of favor with me since the new version is broken in gecko browsers</description>
		<content:encoded><![CDATA[<p>Scriptaculous has fallen out of favor with me since the new version is broken in gecko browsers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://ajaxian.com/archives/scriptaculous-reflector/comment-page-1#comment-8046</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 27 Apr 2006 16:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/scriptaculous-reflector#comment-8046</guid>
		<description>Very cool.  Unfortunate variable naming though, as it overwrites the Image object.  So &quot;new Image()&quot; no longer works. :(</description>
		<content:encoded><![CDATA[<p>Very cool.  Unfortunate variable naming though, as it overwrites the Image object.  So &#8220;new Image()&#8221; no longer works. :(</p>
]]></content:encoded>
	</item>
</channel>
</rss>

