<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Template Reactor Blog</title>
	<atom:link href="http://templatereactor.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://templatereactor.com/blog</link>
	<description>Web Development Blog</description>
	<lastBuildDate>Wed, 11 Aug 2010 10:49:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Stop Sniffing my Browser Type!</title>
		<link>http://templatereactor.com/blog/stop-sniffing-my-browser-type.html</link>
		<comments>http://templatereactor.com/blog/stop-sniffing-my-browser-type.html#comments</comments>
		<pubDate>Wed, 11 Aug 2010 10:47:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FireFox]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=329</guid>
		<description><![CDATA[Quite often Opera users complain that their favorite browser cannot parse a web page and gives the following error: Here are some examples of various sites (if they have not already been fixed): http://www.beautifulpeople.com/index/en http://gameinformer.com/games/singularity/b/pc/default.aspx http://cph.dk/CPH/DK/MAIN Mind you, the sites are displayed correctly in other popular web browsers.  They can be displayed correctly in Opera [...]]]></description>
			<content:encoded><![CDATA[<p>Quite often Opera users complain that their favorite browser cannot parse a web page and gives the following error:</p>
<p><a href="http://templatereactor.com/blog/wp-content/uploads/2010/08/untitled.png"><img class="aligncenter size-full wp-image-335" title="parsing failed" src="http://templatereactor.com/blog/wp-content/uploads/2010/08/untitled.png" alt="" width="617" height="404" /></a></p>
<p><span id="more-329"></span></p>
<p>Here are some examples of various sites (if they have not already been fixed): <a href="http://www.beautifulpeople.com/index/en">http://www.beautifulpeople.com/index/en</a> <a href="http://gameinformer.com/games/singularity/b/pc/default.aspx">http://gameinformer.com/games/singularity/b/pc/default.aspx</a><a href="http://gameinformer.com/games/singularity/b/pc/default.aspx"> </a><a href="http://cph.dk/CPH/DK/MAIN">http://cph.dk/CPH/DK/MAIN</a></p>
<p>Mind you, the sites are displayed correctly in other popular web browsers.  They can be displayed correctly in Opera if you ask them to be parsed as HTML and not XML. (Click “Parse Document as HTML”).</p>
<p>So is it Opera that cannot parse XML or do other browsers chose to ignore XML in the page type and simply parse it as HTML?  The answer is in the server&#8217;s response:</p>
<p>If the browser is Opera:</p>
<p><a href="http://templatereactor.com/blog/wp-content/uploads/2010/08/untitled0.png"><img class="aligncenter size-full wp-image-342" title="Opera" src="http://templatereactor.com/blog/wp-content/uploads/2010/08/untitled0.png" alt="" width="621" height="367" /></a></p>
<p>If the browser is Mozilla Firefox:</p>
<p><a href="http://templatereactor.com/blog/wp-content/uploads/2010/08/untitled4.png"><img class="aligncenter size-full wp-image-333" title="Mozilla Firefox" src="http://templatereactor.com/blog/wp-content/uploads/2010/08/untitled4.png" alt="" width="612" height="285" /></a></p>
<p>Turns out the server lies to some browsers.  It can be said with a certain level of confidence that it does so based on the User-Agent line.  If you set Opera to Internet Explorer or Firefox in “Browser Identification” – the pages are displayed correctly.  The reverse is true as well – setting user agent to «Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)» in Safari causes the server to mark the content as application/xhtml-xml in which case Safari fails to parse the document.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/stop-sniffing-my-browser-type.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Silverlight to the GAC.</title>
		<link>http://templatereactor.com/blog/adding-silverlight-to-the-gac.html</link>
		<comments>http://templatereactor.com/blog/adding-silverlight-to-the-gac.html#comments</comments>
		<pubDate>Wed, 04 Aug 2010 07:11:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=315</guid>
		<description><![CDATA[Sometimes there comes a need to refer to a Silverlight assembly from several different projects, the last thing you want is to copy the assembly to every project, you want it in the GAC. Silverlight environment is not .NET and simply adding the assembly to the GAC with gacutil gives no effect.  On the other [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes there comes a need to refer to a Silverlight assembly from several different projects, the last thing you want is to copy the assembly to every project, you want it in the GAC.</p>
<p>Silverlight environment is not .NET and simply adding the assembly to the GAC with gacutil gives no effect.  On the other hand one may notice the standard Silverlight assemblies in “Add reference” dialog of Visual Studio after having installed Silverlight.</p>
<p>As it turns out, to be able to refer to any assembly from any project with “Add reference” all that&#8217;s needed is a special key in the registry:</p>
<ul>
<li>openHKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MicrosoftSDKs\Silverlight\v4.0\AssemblyFoldersEx</li>
<li>if you have a 32-bit Windows, remove the Wow6432Node part.</li>
<li>Create a registry key with the name of your project</li>
<li>Add the default value containing the path to the assemblies</li>
</ul>
<p>Now “Add reference” will show all the assemblies from the path in the key.</p>
<p>The solution turned out to be quite straight-forward.  Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/adding-silverlight-to-the-gac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery. A quick coda-slider improvement.</title>
		<link>http://templatereactor.com/blog/jquery-a-quick-coda-slider-improvement.html</link>
		<comments>http://templatereactor.com/blog/jquery-a-quick-coda-slider-improvement.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 09:50:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=309</guid>
		<description><![CDATA[The problem: coda-slider does not provide for assigning a class to the inside of the current panel.  It lets you assign the current class to the dynamic tabs, if they are enabled, but some projects require applying the current class to the elements that are being displayed and rotated. The solution: add a function to [...]]]></description>
			<content:encoded><![CDATA[<p>The problem: coda-slider does not provide for assigning a class to the inside of the current panel.  It lets you assign the current class to the dynamic tabs, if they are enabled, but some projects require applying the current class to the elements that are being displayed and rotated.</p>
<p>The solution: add a function to the source code of the plugin:</p>
<p>return this.each(function(){</p>
<p>// Uncomment the line below to test your preloader<br />
// alert(&#8220;Testing preloader&#8221;);</p>
<p>var slider = $(this);</p>
<p>// to add current class to current panel<br />
slider.setCurrentPanel = function() {<br />
$(&#8216;.panel&#8217;, slider).removeClass(&#8216;current&#8217;);<br />
$(&#8216;.panel:eq(&#8216; + (currentPanel-1) + &#8216;)&#8217;, slider).addClass(&#8216;current&#8217;);<br />
}</p>
<p>Next, add the function call to the places where currentPanel is set: lines 83, 99, 119 and 226)</p>
<p>slider.setCurrentPanel();</p>
<p>You can change the file yourself or just download the <a href="http://templatereactor.com/blog/wp-content/uploads/2010/jquery/jquery.coda-slider-2.0_modified.js">result</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/jquery-a-quick-coda-slider-improvement.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery AeroWindow Plugin. Creating Aero-like Windows.</title>
		<link>http://templatereactor.com/blog/jquery-aerowindow-plugin-creating-aero-like-windows.html</link>
		<comments>http://templatereactor.com/blog/jquery-aerowindow-plugin-creating-aero-like-windows.html#comments</comments>
		<pubDate>Fri, 23 Jul 2010 12:59:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=294</guid>
		<description><![CDATA[Here&#8217;s another handy jQuery plugin, it let&#8217;s you style your web site after Windows Aero® by creating windows that look like Windows 7 Aero and offer standard window functionality. Basic functionality and features: minimize, maximize and close buttons special feature: shiny objects animation during window move double-clicking the window bar maximizes the window infinitely extensible [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another handy jQuery plugin, it let&#8217;s you style your web site after Windows Aero® by creating windows that look like Windows 7 Aero and offer standard window functionality.</p>
<p><a href="http://templatereactor.com/store/template-type-jquery.html"><img class="aligncenter size-full wp-image-296" title="jQuery Aero Window" src="http://templatereactor.com/blog/wp-content/uploads/2010/07/jQuery-aerowindow.jpg" alt="JQuery AeroWindow Plugin" width="584" height="218" /></a></p>
<p>Basic functionality and features:</p>
<ul>
<li>minimize, maximize and close buttons</li>
<li>special feature: shiny objects animation during window move</li>
<li>double-clicking the window bar maximizes the window</li>
<li>infinitely extensible windows</li>
<li>visual window highlighting</li>
<li>animated window size change</li>
<li>moving windows with mouse</li>
<li>Z-order management (managing the windows stacking order)</li>
</ul>
<p>and so on&#8230;</p>
<p><span id="more-294"></span></p>
<p>Available parameters:</p>
<ul>
<li>window title</li>
<li>initial window X and Y coordinates, centering</li>
<li>standard window size</li>
<li>minimal window size</li>
<li>window state: minimized, maximum size, normal</li>
<li>parameters for window animation tuning</li>
<li>generating windows on mouse and Javascript events</li>
</ul>
<p>Examples:</p>
<p>Define a simple windows in AeroWindow</p>
<p>$ (&#8216;#YourContainerDiv&#8217;).AeroWindow((WindowTitle: &#8216;My first very cool Aero Window for Web&#8217;,));</p>
<p>Define some special window parameters:</p>
<p>$ (&#8216;# YourContainerDiv&#8217;).AeroWindow((WindowTitle:&#8217;My first very cool Aero Window for Web&#8217;, WindowPositionTop: &#8216;center&#8217;, WindowPositionLeft: &#8216;center&#8217;, WindowWidth: 400, WindowHeight: 100, Window Animation: &#8216;easeOutCubic&#8217; WindowResizable: true, WindowDraggable: true WindowMinimize: true, WindowMaximize : false, WindowClosable: true));</p>
<p>Browser compatibility has been verified for IE 6, IE 7, IE 8, Firefox 3, Chrome 4, Safari 4, Opera 10.  The current (as of the time of this writing) AeroWindow release is 2.0 and is based on jQuery v1.4.2.</p>
<p>Here&#8217;s a nice little <a href="http://www.soyos.net/tl_files/demos/aero-window/">demo</a>.  To download AeroWindow, follow this <a href="http://www.soyos.net/tl_files/downloads/AeroWindow-jQuery-Plugin-Version-2.0.zip">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/jquery-aerowindow-plugin-creating-aero-like-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Compliance for IE 6-8 at all Cost.</title>
		<link>http://templatereactor.com/blog/css3-compliance-for-ie-6-8-at-all-cost.html</link>
		<comments>http://templatereactor.com/blog/css3-compliance-for-ie-6-8-at-all-cost.html#comments</comments>
		<pubDate>Wed, 21 Jul 2010 14:00:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=288</guid>
		<description><![CDATA[CSS3 is cool and all web developers would love to use it&#8217;s tasty features.  The announced support for CSS3 by such browsers as Opera, Firefox, Safari, Chrome and even IE 9 heats up the interest for this protocol quite a bit, but there&#8217;s still an issue of IE 6, 7 and 8.  The fact that [...]]]></description>
			<content:encoded><![CDATA[<p>CSS3 is cool and all web developers would love to use it&#8217;s tasty features.  The announced support for CSS3 by such browsers as Opera, Firefox, Safari, Chrome and even IE 9 heats up the interest for this protocol quite a bit, but there&#8217;s still an issue of IE 6, 7 and 8.  The fact that IE 9 is not intended to run on XP will probably keep the number of IE 6-8 users high for quite a while.  This is where our discussion of CSS3 could end.  And yet there are efforts to make IE6-8 CSS3 compliant.  Let&#8217;s take a look at some of them, many are rather odd.</p>
<p><span id="more-288"></span></p>
<p><a href="http://code.google.com/intl/ru/chrome/chromeframe/">Google Chrome Frame</a></p>
<p>This IE plugin renders pages with the Chrome engine.  Among the drawbacks is the need to install the plugin.  People who use IE do not want to / are afraid to / cannot install anything.</p>
<p>The fact that the plugin is being used makes one think – perhaps the answer is in using something to render the page instead of IE.  It makes little sense to try and build such a solution from scratch, but hey, there are some solutions out there already.</p>
<p>Like an html renderer written in Flash: <a href="http://motionandcolor.com/">HTMLWrapper</a>.  It renders HTML and CSS through Actionscript with Flash goodies like gradients, animation, audio, video, etc.  There&#8217;s also the <a href="http://as3htmlparser.sourceforge.net/">AS3 HTML Parser Library</a> and <a href="http://deng.com.br/">DENG</a>.  There are even SVG HTML renderers and enven a Javascript renderer for Javascript (talk about odd).</p>
<p>All of the above seems rather hard core, below are some examples of slightly more elegant solutions.</p>
<p>One could use different hacks like the <a href="http://www.smashingmagazine.com/2010/04/28/css3-solutions-for-internet-explorer/">advice</a> from the Smashing Magazine though this solution is hardly convenient or pretty.</p>
<p>A systematic solution is needed and it exists: jQuery to the rescue!</p>
<p><a href="http://bililite.com/blog/2009/01/16/jquery-css-parser/">jQuery CSS parser</a></p>
<p>This wonderful jQuery plugin lets you replace the following javascript:</p>
<p>$(&#8216;.gallery a&#8217;).lightbox({overlayBgColor: &#8216;#ddd&#8217;});</p>
<p>with the following CSS:</p>
<p>.gallery a {<br />
-jquery-lightbox: {overlayBgColor: &#8216;#ddd&#8217;};<br />
}</p>
<p>There are plenty of plugins that emulate CSS3 in jQuery:</p>
<p>border-radius<br />
<a href="http://ragamo.medioclick.com/jquery/corners/">jQuery Canvas Rounded Corners</a><br />
<a href="http://www.atblabs.com/jquery.corners.html">jQuery Corners</a></p>
<p>border-image<br />
<a href="http://www.lrbabe.com/sdoms/borderImage/index.html">borderImage</a></p>
<p>Multiple Backgrounds<br />
<a href="http://plugins.jquery.com/project/backgroundlayers">Background Layers</a></p>
<p>and so on&#8230;</p>
<p>There are caveats, however.  Most of these emulators are rather raw and only work well on the demos on their home pages.  Those that work well will turn the web page into a mess if used together.  Try applying the border-radius and Multiple Background to the same block.</p>
<p>Perhaps your project could benefit from writing your own library that emulates CSS3.</p>
<p>Oh yeah, all of the proposed solutions will slow IE6-8 down.  This makes sense, let them suffer for not switching.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/css3-compliance-for-ie-6-8-at-all-cost.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-browser box-shadow for a fixed size block.</title>
		<link>http://templatereactor.com/blog/cross-browser-box-shadow-for-a-fixed-size-block.html</link>
		<comments>http://templatereactor.com/blog/cross-browser-box-shadow-for-a-fixed-size-block.html#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:11:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=278</guid>
		<description><![CDATA[In a recent article we&#8217;ve discussed creating the box-shadow effect viewable in all browsers with the use of filters.  The method has a number of drawbacks of which the biggest is performance.  Here&#8217;s another method that&#8217;s aimed at efficiency and performance, though it can only be used on blocks with fixed width and height. As [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://templatereactor.com/blog/opera-box-shadow-bug.html" target="_self">recent article</a> we&#8217;ve discussed creating the box-shadow effect viewable in all browsers with the use of filters.  The method has a number of drawbacks of which the biggest is performance.  Here&#8217;s another method that&#8217;s aimed at efficiency and performance, though it can only be used on blocks with fixed width and height.</p>
<p>As usual, it&#8217;s quite simple for the compliant browsers:</p>
<p><span id="more-278"></span></p>
<p>.block {</p>
<p>width: 100px;</p>
<p>height: 100px;</p>
<p>background: #ff6600;</p>
<p>-webkit-box-shadow: 0px 0px 10px  #000000;</p>
<p>-moz-box-shadow: 0px 0px 10px #000000;</p>
<p>box-shadow: 0px 0px 10px #000000;</p>
<p>}</p>
<p>For IE we will use VML.  The following code enables it.  (this is a conditional comment of course).</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;xml:namespace ns=&#8221;urn:schemas-microsoft-com:vml&#8221; prefix=&#8221;v&#8221; /&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;style&gt;</p>
<p>v\:rect  {</p>
<p>behavior:url(#default#VML);</p>
<p>}</p>
<p>v\:fill  {</p>
<p>behavior:url(#default#VML);</p>
<p>}</p>
<p>&lt;/style&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>Without the above the browser will not recognize VML tags.</p>
<p>And here&#8217;s the markup:</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;v:rect stroked=&#8221;false&#8221; class=&#8221;shadow&#8221;&gt;</p>
<p>&lt;v:fill focusposition=&#8221;.1,.1&#8243; focussize=&#8221;.79,.79&#8243; color=&#8221;white&#8221; color2=&#8221;#999999&#8243; opacity=&#8221;90%&#8221; opacity2=&#8221;.0&#8243;&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>&lt;div class=&#8221;block&#8221;&gt;&amp;nbsp;&lt;/div&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;/v:fill&gt;</p>
<p>&lt;/v:rect&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>For those not familiar with VML, here&#8217;s a brief explanation:</p>
<ul>
<li><strong>v:roundrect</strong> — creates a rectangle with rounded corners</li>
<li><strong>stroked=«false»</strong> — stroked is true by default which creates a pixel-wide black frame</li>
<li><strong>arcsize</strong> — rounding radius</li>
<li><strong>v:fill</strong> — fills a shape with color, gradient or an image</li>
<li><strong>color2</strong> — the shadow color</li>
<li><strong>color</strong> — can be anything, we&#8217;re making it transparent anyway</li>
<li><strong>opacity</strong> — second color&#8217;s opacity</li>
<li><strong>opacity2</strong> — shadow opacity</li>
<li><strong>type</strong> — fill type. In our case it&#8217;s a circular gradient</li>
<li><strong>focusposition</strong> — the gradient&#8217;s focal point position within the block</li>
<li><strong>focussize</strong> — size of the gradient</li>
</ul>
<p>The two final parameters control the placement and the intensity of our shadow.  They will change depending on the block size.</p>
<p>And finally, the shadow&#8217;s parameters:</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;style&gt;</p>
<p>.shadow {</p>
<p>width: 120px;</p>
<p>height: 120px;</p>
<p>padding: 10px;</p>
<p>display: block;</p>
<p>margin: -10px;</p>
<p>}</p>
<p>&lt;/style&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>The VLM shape size does not include the padding.  It&#8217;s size is equal to block width + padding on the left + padding on the right (same with height).  A negative margin is added to compensate for the padding.</p>
<p>Here&#8217;s the end result:</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;</p>
<p>&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;ru&#8221;&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;xml:namespace ns=&#8221;urn:schemas-microsoft-com:vml&#8221; prefix=&#8221;v&#8221; /&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;title&gt;&lt;/title&gt;</p>
<p>&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html;charset=UTF-8&#8243;&gt;</p>
<p>&lt;script src=&#8221;<a href="view-source:http://templatereactor.com/blog/shared/js/jquery-1.4.2.min.js">shared/js/jquery-1.4.2.min.js</a>&#8220;&gt;&lt;/script&gt;</p>
<p>&lt;style&gt;</p>
<p>* {</p>
<p>margin: 0;</p>
<p>padding: 0;</p>
<p>}</p>
<p>body {</p>
<p>padding: 100px;</p>
<p>}</p>
<p>.block {</p>
<p>width: 100px;</p>
<p>height: 100px;</p>
<p>background: #ff6600;</p>
<p>-webkit-box-shadow: 0px 0px 10px  #000000;</p>
<p>-moz-box-shadow: 0px 0px 10px #000000;</p>
<p>box-shadow: 0px 0px 10px #000000;</p>
<p>}</p>
<p>&lt;/style&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;style&gt;</p>
<p>v\:roundrect  {</p>
<p>behavior:url(#default#VML);</p>
<p>}</p>
<p>v\:fill  {</p>
<p>behavior:url(#default#VML);</p>
<p>}</p>
<p>.shadow {</p>
<p>width: 116px;</p>
<p>height: 116px;</p>
<p>padding: 8px;</p>
<p>display: block;</p>
<p>margin: -8px;</p>
<p>}</p>
<p>&lt;/style&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;v:roundrect stroked=&#8221;false&#8221; arcsize=&#8221;0.09&#8243;&gt;</p>
<p>&lt;v:fill focusposition=&#8221;.1,.1&#8243; focussize=&#8221;.79,.79&#8243; color=&#8221;white&#8221; color2=&#8221;#000000&#8243; opacity=&#8221;.9&#8243; opacity2=&#8221;.0&#8243;&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>&lt;div class=&#8221;block&#8221;&gt;&amp;nbsp;&lt;/div&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;</p>
<p>&lt;/v:fill&gt;</p>
<p>&lt;/v:rect&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p>Try it from different browsers, the shadow should be identical in all of them, like this:</p>
<p><a href="http://templatereactor.com/blog/wp-content/uploads/2010/07/drop-shadow.bmp"><img class="aligncenter size-full wp-image-281" title="drop-shadow" src="http://templatereactor.com/blog/wp-content/uploads/2010/07/drop-shadow.bmp" alt="drop-shadow-fixed-size-block" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/cross-browser-box-shadow-for-a-fixed-size-block.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Cross-Browser Box-Shadow.</title>
		<link>http://templatereactor.com/blog/creating-a-cross-browser-box-shadow.html</link>
		<comments>http://templatereactor.com/blog/creating-a-cross-browser-box-shadow.html#comments</comments>
		<pubDate>Fri, 16 Jul 2010 09:07:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=256</guid>
		<description><![CDATA[Creating a Cross-Browser Box-Shadow Here&#8217;s a very simple way to implement the box-shadow in css. Perhaps the idea is too simple and obvious for the esteemed writers of the Internet to ever want to publish it. First, the compliant browsers: div { background: green; /* required for IE */ -webkit-box-shadow: 0px 0px 15px #222; -moz-box-shadow: [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a Cross-Browser Box-Shadow</p>
<p>Here&#8217;s a very simple way to implement the box-shadow in css.  Perhaps the idea is too simple and obvious for the esteemed writers of the Internet to ever want to publish it.</p>
<p>First, the compliant browsers:</p>
<p>div {<br />
background: green; /* required for IE */<br />
-webkit-box-shadow: 0px 0px 15px  #222;<br />
-moz-box-shadow: 0px 0px 15px #222;<br />
box-shadow: 0px 0px 15px #222;<br />
}</p>
<p>The idea really boils down to applying the shadow filter four times with different directions.  This way the shadow wraps around the edges of the container.</p>
<p><span id="more-256"></span></p>
<p>&lt;!&#8211;[if IE]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
div {<br />
filter:<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=45, Strength=6)<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=135, Strength=6)<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=225, Strength=6)<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=315, Strength=6);<br />
position: relative;<br />
top: -12px;<br />
left: -12px;<br />
zoom: 1;<br />
}<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>There are however some caveates:<br />
•	the shadow created with the four filters is darker than the box-shadow from css, a little tweaking of color and strength may be required<br />
•	IE augments the block by the size of the shadow and since we have two shadows on each side the size in incremented twice.  At the end the block needs to be moved to the left an up according to this formula: left = top = -(strength*2)<br />
•	IE6 and IE7 require hashlayout, for them the zoom (width, height or any other parameters assigned to hashlayout) needs to be set at 1<br />
•	The block must have a background or the filters will be applied to child elements<br />
Drawbacks:</p>
<p>•	filters slow things down<br />
•	IE does not switch off font anti-aliasing inside a block with filters<br />
•	The shadows displayed in IE is more square than the one rendered in other browsers<br />
•	alphaImageLoader does not work inside such a block.  Perhaps neither do other filters – the research continues.</p>
<p>Here&#8217;s an example:</p>
<p>&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&gt;<br />
&lt;html lang=&#8221;en&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html;charset=UTF-8&#8243;&gt;<br />
&lt;!&#8211;&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;css/main.css&#8221; media=&#8221;all&#8221;&gt;&#8211;&gt;<br />
&lt;!&#8211;&lt;script type=&#8221;text/javascript&#8221; src=&#8221;js/jquery-1.4.2.min.js&#8221;&gt;&lt;/script&gt;&#8211;&gt;<br />
&lt;!&#8211;&lt;script type=&#8221;text/javascript&#8221; src=&#8221;js/main.js&#8221;&gt;&lt;/script&gt;&#8211;&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
* {<br />
margin: 0;<br />
padding: 0;<br />
}<br />
body {<br />
background: #064064;<br />
padding: 50px;<br />
}<br />
.main {<br />
width: 300px;<br />
height: 300px;<br />
background: green;<br />
margin: 0 auto;<br />
-webkit-box-shadow: 0px 0px 15px  #222;<br />
-moz-box-shadow: 0px 0px 15px #222;<br />
box-shadow: 0px 0px 15px #222;<br />
}<br />
&lt;/style&gt;</p>
<p>&lt;!&#8211;[if IE]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
.main {<br />
filter: progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=45, Strength=6)<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=135, Strength=6)<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=225, Strength=6)<br />
progid:DXImageTransform.Microsoft.Shadow(color=&#8217;#042b47&#8242;, Direction=315, Strength=6);<br />
position: relative;<br />
top: -12px;<br />
left: -12px;<br />
}<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;</p>
<p>&lt;div style=&#8221;margin: 0 auto; width: 300px; margin-bottom: 50px; color: #fff;&#8221;&gt;anti-aliasing anti-aliasing anti-aliasing anti-aliasing anti-aliasing anti-aliasing&lt;/div&gt;<br />
&lt;div&gt;<br />
&lt;div style=&#8221;margin: 0 auto;&#8221;&gt;without anti-aliasing without anti-aliasing without anti-aliasing without anti-aliasing without anti-aliasing&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><br />
<html lang="en"><br />
<head><br />
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><br />
        <!--
<link rel="stylesheet" type="text/css" href="css/main.css" media="all">&#8211;><br />
        <!--<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>--><br />
        <!--<script type="text/javascript" src="js/main.js"></script>--></p>
<style type="text/css">
                * {
                        margin: 0;
                        padding: 0;
                }
                body {
                        background: #064064;
                        padding: 50px;
                }
                .main {
                        width: 300px;
                        height: 300px;
                        background: green;
                        margin: 0 auto;
                        -webkit-box-shadow: 0px 0px 15px  #222;
                        -moz-box-shadow: 0px 0px 15px #222;
                        box-shadow: 0px 0px 15px #222;
                }
        </style>
<p>        <!--[if IE]></p>
<style type="text/css">
                .main {
                        filter: progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=45, Strength=6)
                                        progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=135, Strength=6)
                                        progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=225, Strength=6)
                                        progid:DXImageTransform.Microsoft.Shadow(color='#042b47', Direction=315, Strength=6);
                        position: relative;
                        top: -12px;
                        left: -12px;
                }
        </style>
<p>        <![endif]--><br />
        <title></title><br />
</head><br />
<body></p>
<div style="margin: 0 auto; width: 300px; margin-bottom: 50px; color: #fff;">anti-aliasing anti-aliasing anti-aliasing anti-aliasing anti-aliasing anti-aliasing</div>
<div class="main">
<div style="margin: 0 auto;">without anti-aliasing without anti-aliasing without anti-aliasing without anti-aliasing without anti-aliasing</div>
</div>
<p></body><br />
</html></p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/creating-a-cross-browser-box-shadow.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3D API for the Flash Player</title>
		<link>http://templatereactor.com/blog/3d-api-for-the-flash-player.html</link>
		<comments>http://templatereactor.com/blog/3d-api-for-the-flash-player.html#comments</comments>
		<pubDate>Thu, 15 Jul 2010 08:28:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=246</guid>
		<description><![CDATA[Despite all the criticism of Flash, Adobe Systems keeps developing products based on it. The company is not staying astray from the general fascination with 3D that is being observed all over the world. This fall they plan to present the new version of the browser Flash Plugin with full support of 3D graphics. Lately [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://templatereactor.com/store/template-category-threedimension.html"><img src="http://templatereactor.com/blog/wp-content/uploads/2010/07/Flash-3D.png" alt="Flash-3D" title="Flash-3D" width="444" height="358" class="aligncenter size-full wp-image-247" /></a></p>
<p>Despite all the criticism of Flash, Adobe Systems keeps developing products based on it.  The company is not staying astray from the general fascination with 3D that is being observed all over the world.  This fall they plan to present the new version of the browser Flash Plugin with full support of 3D graphics.</p>
<p>Lately the main task was making sure the technology can perform on smart-phones and other devices with limited computing capabilities so the newer versions of Flash are much less power-demanding.  They even have some 3D functionality though it remains very limited.</p>
<p>The information about the upcoming 3rd dimension was published in the agenda of Adobe MAX – a conference for developers scheduled to take place at the end of October in LA.  The innovation to be presented at the Flash Player 3D Future session for developers.  The name suggests that Adobe sees it&#8217;s future in 3D.</p>
<p><span id="more-246"></span></p>
<p>No details are being disclosed to let the suspense build up till the last minute.  Adobe is promising a packed agenda as the 3D functionality looks to be quite extensive.  Some tools for creating 3D presentations in Flash are already available, but the plan is to expand on them greatly as the capabilities of the plugin are about to multiply.  The plan is to discuss the deadlines for developing new versions of Flash Player and to present the new 3D API.  The participants are being promised a thorough introduction into the capabilities of the new technology.</p>
<p>If you are planning to develop 3D games, augmented reality or new interactive web sites – you must visit the upcoming conference – states Adobe.</p>
<p>The highest demand for 3D Flash is likely to come from the browser games developers.  If Adobe can provide enough performance (perhaps through utilizing the graphical accelerators) – there will be a breakthrough in the industry.</p>
<p>Adobe Systems is most likely reacting to the tightening market conditions with the popularity of 3D.  In the recent past most leading platform developers have been releasing products with a certain amount of 3D support.  Nvidia for example presented it&#8217;s 3D video streaming based on Microsoft Silverlight at the recent Computex.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/3d-api-for-the-flash-player.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera Box-Shadow Bug</title>
		<link>http://templatereactor.com/blog/opera-box-shadow-bug.html</link>
		<comments>http://templatereactor.com/blog/opera-box-shadow-bug.html#comments</comments>
		<pubDate>Tue, 06 Jul 2010 10:33:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Opera]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=238</guid>
		<description><![CDATA[A rather unpleasant bug has been discovered in Opera related to rendering the box-shadow property. If this property is assigned to an element with a :hover pseudo-class the shadow gets rendered incorrectly on mouse over event. Searching for the solution on the Internet provides no information. Experimentally it has been determined that a workaround exists [...]]]></description>
			<content:encoded><![CDATA[<p>A rather unpleasant bug has been discovered in Opera related to rendering the box-shadow property.  If this property is assigned to an element with a :hover pseudo-class the shadow gets rendered incorrectly on mouse over event.  Searching for the solution on the Internet provides no information.  Experimentally it has been determined that a workaround exists in assigning the same shadow to an underlining element with the same size as element:hover.  The shadow can be made transparent.</p>
<p><a href="http://templatereactor.com/blog/wp-content/uploads/2010/07/opera_drop_shadow.jpg"><img src="http://templatereactor.com/blog/wp-content/uploads/2010/07/opera_drop_shadow.jpg" alt="" title="opera box shadow" width="247" height="371" class="alignleft size-full wp-image-239" /></a></p>
<p>The bug has been reproduced in versions 10.54 and 10.60 for Mac OS.  The illustration shows just how the shadow is rendered in blocks with the following properties:</p>
<p>/* top block */<br />
div.first:hover {<br />
box-shadow: 0 2px 10px #5f5<br />
}<br />
/* bottom block */<br />
div.second {<br />
box-shadow: 0 2px 10px rgba(0,0,0,0)<br />
}<br />
div.second:hover {<br />
box-shadow: 0 2px 10px #5f5<br />
}</p>
<p>This might help the web programmers, but hopefully the browser developers will notice it too and fix this tiny but unpleasant issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/opera-box-shadow-bug.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 9 Platform Preview</title>
		<link>http://templatereactor.com/blog/internet-explorer-9-platform-preview.html</link>
		<comments>http://templatereactor.com/blog/internet-explorer-9-platform-preview.html#comments</comments>
		<pubDate>Tue, 06 Jul 2010 10:26:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://templatereactor.com/blog/?p=230</guid>
		<description><![CDATA[On June 24th 2010 the IE 9 developers&#8217; team has released another update for the new browser following up on the promise given at the MIX10 conference. The IE9 Platform Preview can be downloaded from IE9 TestDrive web site. The new version provides for HTML5 tags like audio, video and canvas (with hardware acceleration), support [...]]]></description>
			<content:encoded><![CDATA[<p>On June 24th 2010 the IE 9 developers&#8217; team has released another update for the new browser following up on the promise given at the MIX10 conference.</p>
<p>The IE9 Platform Preview can be downloaded from IE9 TestDrive web site.</p>
<p>The new version provides for 	HTML5 tags like audio, video and canvas (with hardware acceleration), support of Web Open Front Format (WOFF), a number of performance enhancements and bug fixes.</p>
<p>There are many new demo samples:</p>
<p><a href="http://templatereactor.com/blog/wp-content/uploads/2010/07/ie.jpg"><img src="http://templatereactor.com/blog/wp-content/uploads/2010/07/ie-300x101.jpg" alt="" title="ie" width="300" height="101" class="aligncenter size-medium wp-image-231" /></a></p>
<p>118 new tests have been added to the Testing Center + 1309 tests for ES5.</p>
<p>A score of 83/100 has been reached for ACID3.  WebKit SunSpider JavaScript Benchmark shows an improvement in JavaScript handling speed.</p>
<p>A lot of new video footage has been released on Channel 9 to support the release:</p>
<p>•	Internet Explorer 9 Platform Preview 3: A Look at the New Demos<br />
•	Internet Explorer 9 Platform Preview 3: A Look at ECMAscript 5<br />
•	Internet Explorer 9 Platform Preview 3: A Look at Canvas<br />
•	Internet Explorer 9 Platform Preview 3: A Look at HTML5 Video Support<br />
•	Internet Explorer 9 Platform Preview 3: A Look at Canvas and Amazon.com</p>
<p>There&#8217;s also a new post in the IE development team blog.</p>
<p>IE9 Platform Preview has been downloaded more than 2 million times since the release date.</p>
]]></content:encoded>
			<wfw:commentRss>http://templatereactor.com/blog/internet-explorer-9-platform-preview.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

