<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Mootools text drop-shadow</title>
	<link>http://pr0digy.com/mootools/text-dropshadows/</link>
	<description>Web development with CodeIgniter and Mootools.</description>
	<pubDate>Mon, 06 Sep 2010 19:38:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: The CSS text-shadow property is very popular among web designers and front-end developers. In this article, let&#8217;s take a look at 10 resources to get the most out of the text-shadow CSS property. - - Tamil, movies, Religious Hindu Muslim christain Ja</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3715</link>
		<dc:creator>The CSS text-shadow property is very popular among web designers and front-end developers. In this article, let&#8217;s take a look at 10 resources to get the most out of the text-shadow CSS property. - - Tamil, movies, Religious Hindu Muslim christain Ja</dc:creator>
		<pubDate>Sat, 04 Sep 2010 07:46:03 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3715</guid>
		<description>[...] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  Â» Read tutorial [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  Â» Read tutorial [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 Resources To Get The Most Out Of The CSS Text-Shadow Property &#171; R@j@. R.K</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3416</link>
		<dc:creator>10 Resources To Get The Most Out Of The CSS Text-Shadow Property &#171; R@j@. R.K</dc:creator>
		<pubDate>Mon, 22 Feb 2010 11:49:56 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3416</guid>
		<description>[...] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  Â» Read tutorial [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  Â» Read tutorial [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 resources to get the most out of the CSS text-shadow property &#124; moreInet.com &#124; Webdesign, Graphic Design Service in Pattaya</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3261</link>
		<dc:creator>10 resources to get the most out of the CSS text-shadow property &#124; moreInet.com &#124; Webdesign, Graphic Design Service in Pattaya</dc:creator>
		<pubDate>Thu, 21 Jan 2010 08:33:28 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3261</guid>
		<description>[...] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  » Read tutorial [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  » Read tutorial [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 resources to get the most out of the CSS text-shadow property &#8211; multimediaDev</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3247</link>
		<dc:creator>10 resources to get the most out of the CSS text-shadow property &#8211; multimediaDev</dc:creator>
		<pubDate>Sun, 17 Jan 2010 14:37:29 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3247</guid>
		<description>[...] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  » Read tutorial [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  » Read tutorial [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3234</link>
		<dc:creator>Brent</dc:creator>
		<pubDate>Sat, 16 Jan 2010 15:43:40 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3234</guid>
		<description>I was trying to use dropshadows on a menumatic horizontal menu (http://greengeckodesign.com/?q=menumatic) and having the primary menu items with dropshadows (so none of the submenu items).

The problem was the applyDropShadow code was "destroy"ing the elements that the menumatic code relied on. So I changed the dropshadow code so no elements are destroyed, but instead the original elements are simply ammended/appeneded. This might come in handy for people in similar situations.

I also added a few lines that wraps a  around the first word of a menu item so I can bold it in css (it's a pretty cool affect).

Anyway, here is the code for applyDropShadow in case it helps someone:
&lt;pre class="prettyprint"&gt;
applyDropShadow: function(el){

			var size = el.getSize();
				
			// Wrap  around the first word if there is one
			var marray = el.get('html').split(' ');
			if (marray.length &#62; 1) marray[0] = '' + marray[0] + '';
			el.set('html', marray.join(' '));
			
			var clone = el.clone();
			
			var offsetY = this.options.top ? this.options.top.toInt() : this.options.bottom.toInt();
			if(offsetY &#60; 0) offsetY = offsetY * (-1);
			
			var offsetX = this.options.left ? this.options.left.toInt() : this.options.right.toInt();
			if(offsetX &#60; 0) offsetX = offsetX * (-1);
			
			var container = new Element('div', {
					'styles': {
							position: 'relative',
							left: 0,
							top: 0,
							height: size.y + offsetY,
							width: size.x + offsetX
					}
			});
		
			el.setStyles({position: 'absolute', left: 0, top: 0});
			container.wraps(el);
			clone.setStyles(this.options);
			clone.inject(el, 'before');

		}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I was trying to use dropshadows on a menumatic horizontal menu (http://greengeckodesign.com/?q=menumatic) and having the primary menu items with dropshadows (so none of the submenu items).</p>
<p>The problem was the applyDropShadow code was &#8220;destroy&#8221;ing the elements that the menumatic code relied on. So I changed the dropshadow code so no elements are destroyed, but instead the original elements are simply ammended/appeneded. This might come in handy for people in similar situations.</p>
<p>I also added a few lines that wraps a  around the first word of a menu item so I can bold it in css (it&#8217;s a pretty cool affect).</p>
<p>Anyway, here is the code for applyDropShadow in case it helps someone:</p>
<pre class="prettyprint">
applyDropShadow: function(el){

			var size = el.getSize();

			// Wrap  around the first word if there is one
			var marray = el.get('html').split(' ');
			if (marray.length &gt; 1) marray[0] = '' + marray[0] + '';
			el.set('html', marray.join(' '));

			var clone = el.clone();

			var offsetY = this.options.top ? this.options.top.toInt() : this.options.bottom.toInt();
			if(offsetY &lt; 0) offsetY = offsetY * (-1);

			var offsetX = this.options.left ? this.options.left.toInt() : this.options.right.toInt();
			if(offsetX &lt; 0) offsetX = offsetX * (-1);

			var container = new Element('div', {
					'styles': {
							position: 'relative',
							left: 0,
							top: 0,
							height: size.y + offsetY,
							width: size.x + offsetX
					}
			});

			el.setStyles({position: 'absolute', left: 0, top: 0});
			container.wraps(el);
			clone.setStyles(this.options);
			clone.inject(el, 'before');

		}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Han Auto Parts &#187; 10 resources to get the most out of the CSS text-shadow property</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3208</link>
		<dc:creator>Han Auto Parts &#187; 10 resources to get the most out of the CSS text-shadow property</dc:creator>
		<pubDate>Sun, 20 Dec 2009 23:53:08 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3208</guid>
		<description>[...] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  » Read tutorial [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] When you need full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  » Read tutorial [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 resources to get the most out of the CSS text-shadow property</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-3179</link>
		<dc:creator>10 resources to get the most out of the CSS text-shadow property</dc:creator>
		<pubDate>Tue, 08 Dec 2009 15:14:51 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-3179</guid>
		<description>[...] When you need a full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  &#187; Read tutorial [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] When you need a full cross-browser compatibility and still want to use CSS3 properties, JavaScript is always here to help. This tutorial will show you how to recreate the text-shadow CSS property using the MooTools JavaScript framework.  &raquo; Read tutorial [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyrye</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-1335</link>
		<dc:creator>fyrye</dc:creator>
		<pubDate>Mon, 17 Nov 2008 02:21:58 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-1335</guid>
		<description>Hope you don't mind but posting the converted drop shadow code for mootools 1.2.1
&lt;pre class="prettyprint"&gt;
var TextDropShadow = new Class({
		options: {
			color: '#333',
			left: 1,
			top: 1,
			position: 'absolute'
		},

		initialize: function(obj, options){
				this.setOptions(options)
				this.createDropShadows(obj);
		},
		
		createDropShadows: function(obj){
			if('element' == $type(obj)) {
				this.applyDropShadow(obj)
			} else if('array' == $type(obj)) {
				obj.each( function(el) {
					this.applyDropShadow(el);
				}, this);
			} else {
				return false;
			}
		},
		
		applyDropShadow: function(el){
			var size = el.getSize();
			var original = el.clone();
			var shadow = el.clone();

			var offsetY = this.options.top ? this.options.top.toInt() : this.options.bottom.toInt();
			if(offsetY &#60; 0) offsetY = offsetY * (-1);
			
			var offsetX = this.options.left ? this.options.left.toInt() : this.options.right.toInt();
			if(offsetX &#60; 0) offsetX = offsetX * (-1);
			
			var container = new Element('div', {
					'styles': {
							position: 'relative',
							left: 0,
							top: 0,
							height: size.y + offsetY,
							width: size.x + offsetX
					}
			});

			original.setStyles({position: 'absolute', left: 0, top: 0});
			shadow.setStyles(this.options);
						
			container.adopt(shadow).adopt(original);
			container.injectAfter(el);
			el.destroy();
		}
});
TextDropShadow.implement(new Options, new Events);

/*
var addDS = {
	start: function(){
		new TextDropShadow($$('.ds'), {color:'#222', top: 1, left: 1}); //{color:'#222', opacity: 0.5, background: '#fff'});
	}
};
*/
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hope you don&#8217;t mind but posting the converted drop shadow code for mootools 1.2.1</p>
<pre class="prettyprint">
var TextDropShadow = new Class({
		options: {
			color: '#333',
			left: 1,
			top: 1,
			position: 'absolute'
		},

		initialize: function(obj, options){
				this.setOptions(options)
				this.createDropShadows(obj);
		},

		createDropShadows: function(obj){
			if('element' == $type(obj)) {
				this.applyDropShadow(obj)
			} else if('array' == $type(obj)) {
				obj.each( function(el) {
					this.applyDropShadow(el);
				}, this);
			} else {
				return false;
			}
		},

		applyDropShadow: function(el){
			var size = el.getSize();
			var original = el.clone();
			var shadow = el.clone();

			var offsetY = this.options.top ? this.options.top.toInt() : this.options.bottom.toInt();
			if(offsetY &lt; 0) offsetY = offsetY * (-1);

			var offsetX = this.options.left ? this.options.left.toInt() : this.options.right.toInt();
			if(offsetX &lt; 0) offsetX = offsetX * (-1);

			var container = new Element('div', {
					'styles': {
							position: 'relative',
							left: 0,
							top: 0,
							height: size.y + offsetY,
							width: size.x + offsetX
					}
			});

			original.setStyles({position: 'absolute', left: 0, top: 0});
			shadow.setStyles(this.options);

			container.adopt(shadow).adopt(original);
			container.injectAfter(el);
			el.destroy();
		}
});
TextDropShadow.implement(new Options, new Events);

/*
var addDS = {
	start: function(){
		new TextDropShadow($$('.ds'), {color:'#222', top: 1, left: 1}); //{color:'#222', opacity: 0.5, background: '#fff'});
	}
};
*/
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyrye</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-1334</link>
		<dc:creator>fyrye</dc:creator>
		<pubDate>Mon, 17 Nov 2008 02:13:12 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-1334</guid>
		<description>working on adding this to a header where the text is centered via css text-align:center
In which case the drop shadow element aligns it to the left.
i've tried setting the attributes to center it but it removes the drop shadow as well have tried numerous CSS and div implementations with no success to center the text with the drop shadow.
Any clues?</description>
		<content:encoded><![CDATA[<p>working on adding this to a header where the text is centered via css text-align:center<br />
In which case the drop shadow element aligns it to the left.<br />
i&#8217;ve tried setting the attributes to center it but it removes the drop shadow as well have tried numerous CSS and div implementations with no success to center the text with the drop shadow.<br />
Any clues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://pr0digy.com/mootools/text-dropshadows/#comment-1144</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 07 Sep 2008 14:49:56 +0000</pubDate>
		<guid>http://pr0digy.com/mootools/text-dropshadows/#comment-1144</guid>
		<description>Nick, yes it's quite feasible - I'll look into that.

Opacity and the rest of the options can be accessed like this:

&lt;pre class="prettyprint"&gt;
var tds = new TextDropShadow($('desiredelement'), {'opacity': .5});

console.info(tds.options);
console.info(tds.options.opacity);
&lt;/pre&gt;

By the way, &lt;em&gt;console&lt;/em&gt; is a Firebug feature.</description>
		<content:encoded><![CDATA[<p>Nick, yes it&#8217;s quite feasible - I&#8217;ll look into that.</p>
<p>Opacity and the rest of the options can be accessed like this:</p>
<pre class="prettyprint">
var tds = new TextDropShadow($('desiredelement'), {'opacity': .5});

console.info(tds.options);
console.info(tds.options.opacity);
</pre>
<p>By the way, <em>console</em> is a Firebug feature.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
