<?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>dawnerd &#187; xhtml</title>
	<atom:link href="http://dawnerd.com/tag/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://dawnerd.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 13 Aug 2010 18:20:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rollover Images Without Javascript</title>
		<link>http://dawnerd.com/post/9_rollover-images-without-javascript/</link>
		<comments>http://dawnerd.com/post/9_rollover-images-without-javascript/#comments</comments>
		<pubDate>Fri, 16 May 2008 05:29:44 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=9</guid>
		<description><![CDATA[One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually &#8230; <a href="http://dawnerd.com/post/9_rollover-images-without-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually fairly simple to get working. <span id="more-9"></span></p>
<p>Take for example this button:</p>
<pre>
<code markup="none">
<a href="results.html" class="button"></a>
</code>
</pre>
<p>Right now the button doesn&#8217;t do a thing. However, if we apply some CSS to it, we get a nice button with a rollover.</p>
<pre>
<code markup="none">
.button{
    background:url('url/to/image.png') no-repeat;
    width:20px;
    height:20px;
    display:block;
}
.button:hover{
    background:url(url/to/rollover.png) no-repeat;
}
</code>
</pre>
<p>Now the button will show the image and swap to the rollover when you hover over it. All without Javascript. But, you ask &#8220;How do you preload the images without Javascript?&#8221;</p>
<p>I laugh, such a simple answer. Put the rollover images at the top of the page, inside of a hidden div.</p>
<pre>
<code markup="none">
<div style="display:none;">
    <img src="url/to/rollover.png" alt="" />
</div>

</code>
</pre>
<p>And there you have it, JS free rollover images.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/9_rollover-images-without-javascript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simple XHTML Flash Embedding</title>
		<link>http://dawnerd.com/post/8_simple-xhtml-flash-embedding/</link>
		<comments>http://dawnerd.com/post/8_simple-xhtml-flash-embedding/#comments</comments>
		<pubDate>Sat, 10 May 2008 05:00:08 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[swf]]></category>
		<category><![CDATA[valid]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=8</guid>
		<description><![CDATA[The typical way mot people embed flash is pure ugly. Not only is it ugly, but it breaks the XHTML standard. Luckily, there&#8217;s a way around it which is much better than the traditional way, and as an added bonus, &#8230; <a href="http://dawnerd.com/post/8_simple-xhtml-flash-embedding/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The typical way mot people embed flash is pure ugly. Not only is it ugly, but it breaks the XHTML standard. Luckily, there&#8217;s a way around it which is much better than the traditional way, and as an added bonus, has a built in flash plugin check without any javascript! <span id="more-8"></span></p>
<pre>
<code markup="none">
<object type="application/x-shockwave-flash" data="yourswf.swf" width="100" height="100"><param name="movie" value="yourswf.swf" /><img src="no-flash.png" width="100" height="100" alt="" />
</object>
</code>
</pre>
<p>The data in the object tag (beside the param tag) is only called if the flash plugin is not available. Meaning you can put any html you want there as an alternative. I&#8217;m sure if you play around with it you will find how much better this is.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/8_simple-xhtml-flash-embedding/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
