<?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>Smart red fox &#187; adminSmart red fox</title>
	<atom:link href="http://www.smartredfox.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smartredfox.com</link>
	<description>Smarter than your average bear</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:18:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta name="generator" content="Obscure 2.0" />
		<item>
		<title>Css portholes</title>
		<link>http://www.smartredfox.com/2011/01/css-portholes/</link>
		<comments>http://www.smartredfox.com/2011/01/css-portholes/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 19:30:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[porthole]]></category>
		<category><![CDATA[rounded]]></category>
		<category><![CDATA[shadows]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=420</guid>
		<description><![CDATA[This tutorial builds on a previous post for creating a rounded inset image from a square picture, this tutorial adds a complex border to make the image look like a stylish porthole. The parts of the (w)hole The final image is made up of: The original image which has a drop-shadow and border applied via css. A 5px wide border that is grey on 3 sides and white at the top. A dark grey 1px border to define the outer &#8230; <a href="http://www.smartredfox.com/2011/01/css-portholes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="download">This tutorial builds on <a href="http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/">a previous post</a> for creating a rounded inset image from a square picture, this tutorial adds a complex border to make the image look like a stylish porthole.</p>
<div>
<div id="attachment_341" class="wp-caption alignleft" style="width: 110px"><img class="size-full wp-image-341 colorbox-420" title="squareimage" src="http://www.smartredfox.com/wp-content/uploads/2011/01/squareimage.png" alt="Square image with no rounding or shadowing." width="100" height="100" /><p class="wp-caption-text">Before first post</p></div>
<div id="attachment_361" class="wp-caption alignleft" style="width: 110px"><img class="alignnone size-full wp-image-361 colorbox-420" title="roundedshadowedmaskedglow" src="http://www.smartredfox.com/wp-content/uploads/2011/01/roundedshadowedmaskedglow.png" alt="" width="100" height="100" /><p class="wp-caption-text">After first post</p></div>
<div id="attachment_422" class="wp-caption alignleft" style="width: 110px"><img class="size-full wp-image-422 colorbox-420" title="shadowglowborder" src="http://www.smartredfox.com/wp-content/uploads/2011/01/shadowglowborder.png" alt="" width="100" height="100" /><p class="wp-caption-text">Final image</p></div>
</div>
<h2>The parts of the (w)hole</h2>
<div id="attachment_440" class="wp-caption alignleft" style="width: 288px"><img class="size-full wp-image-440 colorbox-420" title="portholes" src="http://www.smartredfox.com/wp-content/uploads/2011/01/portholes.png" alt="" width="278" height="340" /><p class="wp-caption-text">A side-on view of the porthole</p></div>
<p>The final image is made up of:</p>
<p>The original image which has a drop-shadow and border applied via css.</p>
<p>A 5px wide border that is grey on 3 sides and white at the top.</p>
<p>A dark grey 1px border to define the outer edge.</p>
<h2>Adding content with pseudo-elements</h2>
<p>It&#8217;s not possible to add more than one border to the div that displays the image, but we can add more items to get the additional borders we need. Doing this manually would be a pain, and would create extra html elements which we don&#8217;t need. Fortunately, we can generate everything that we need in css with the :before and :after pseudo elements. This technique is lifted wholesale from <a href="http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/">Nicolas Gallagher&#8217;s website</a>, so look there for more detail on the technique.</p>
<h2>Changes to the original code</h2>
<p>The image itself is moved from the image div and put onto the pseudo :after element we create so that it appears on top of the others. All of the sizes are also changed to match the additional size needed for the borders we are adding.</p>
<p>The new css for the portholes is below:</p>
<p><strong>Css</strong><br />
<code><br />
.image<br />
{<br />
/*Rounded edges*/<br />
-moz-border-radius: 33px; /* FF1+ */<br />
-webkit-border-radius: 33px; /* Saf3-4 */<br />
border-radius: 33px; /* Opera 10.5, IE 9, Saf5, Chrome */ </code></p>
<p>background-repeat:no-repeat;<br />
border:1px solid #CCCCCC;<br />
display:block;<br />
height:66px;<br />
overflow:hidden;<br />
position:relative;<br />
margin:10px;<br />
width:66px;<br />
z-index:1;<br />
}</p>
<p>.image:before<br />
{<br />
content:&#8221;";</p>
<p>/*Rounded edges*/<br />
-moz-border-radius: 33px; /* FF1+ */<br />
-webkit-border-radius: 33px; /* Saf3-4 */<br />
border-radius: 33px; /* Opera 10.5, IE 9, Saf5, Chrome */</p>
<p>position:absolute;<br />
z-index:-1;<br />
top:0px;<br />
left:0px;<br />
right:0px;<br />
bottom:0px;<br />
border:5px solid #ccc;<br />
border-color:#fefefe #f0f0f0 #eaeaea #f0f0f0;<br />
}</p>
<p>.image:after<br />
{<br />
content:&#8221;";<br />
background:#fff url(../images/finance.jpg) no-repeat 0 0;</p>
<p>/*Shadows*/<br />
-moz-box-shadow:inset 0px 2px 8px #333; /* FF3.5+ */<br />
-webkit-box-shadow:inset 0px 2px 8px #000; /* Saf3.0+*/<br />
box-shadow:inset 0px 2px 8px #333; /* Opera 10.5, IE 9 */</p>
<p>/*Glow effect*/<br />
-webkit-mask-box-image:url(../images/circle60pxglow.png);</p>
<p>/*Rounded edges*/<br />
-moz-border-radius: 33px; /* FF1+ */<br />
-webkit-border-radius: 33px; /* Saf3-4 */<br />
border-radius: 33px; /* Opera 10.5, IE 9, Saf5, Chrome */</p>
<p>position:absolute;<br />
z-index:-1;<br />
top:5px;<br />
left:5px;<br />
right:5px;<br />
bottom:5px;<br />
border:1px solid #999;<br />
}</p>
<h2>Internet Explorer</h2>
<p>IE6 and IE7 don&#8217;t recognise the Pseudo elements at all which in this case means that our image won&#8217;t show at all. To work around this we can use a hack to move the background image back to the image div.</p>
<p><strong>Css</strong><br />
Add the following to the .image{} declaration:</p>
<p><code>	/*IE6/7 hacks*/<br />
	*background:#fff url(../images/finance.jpg) no-repeat 0 0;<br />
	*width:60px;<br />
	*height:60px;<br />
</code></p>
<p>Obviously if you&#8217;re using something like Modernizr or conditional comments then you need to drop the hacks and add the appropriate css elsewhere.</p>
<p>If you find this tutorial useful, or have a better way of doing something please let me know in the comments.</p>
<h2>References</h2>
<p>This design would not have been possible without this excellent article by Nicholas Gallagher:<br />
<a href="http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/">http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2011/01/css-portholes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rounded, shadowed, and shiny pictures with CSS3</title>
		<link>http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/</link>
		<comments>http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 18:29:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=340</guid>
		<description><![CDATA[It&#8217;s easy to create round pictures from square ones using just CSS. It does mean using some proprietary css, but it&#8217;s relatively well supported  &#8211; FireFox, Chrome, Safari, Opera, and IE9 are all OK with it. Adding an inner-shadow to make it look like the image is embedded into the page is just as easy, but not quite as well supported with just css (Chrome has problems). Finally adding a shine effect means creating a special image first, and it&#8217;s &#8230; <a href="http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy to create round pictures from square ones using just CSS. It does mean using some proprietary css, but it&#8217;s relatively well supported  &#8211; FireFox, Chrome, Safari, Opera, and IE9 are all OK with it.</p>
<p>Adding an inner-shadow to make it look like the image is embedded into the page is just as easy, but not quite as well supported with just css (Chrome has problems).</p>
<p>Finally adding a shine effect means creating a special image first, and it&#8217;s only supported in WebKit based browsers (Chrome and Safari).</p>
<p>The code below lets you achieve the effect, and it degrades gracefully for browsers that don&#8217;t support parts of the effect.</p>
<div id="attachment_341" class="wp-caption alignleft" style="width: 110px"><img class="size-full wp-image-341 colorbox-340" title="squareimage" src="http://www.smartredfox.com/wp-content/uploads/2011/01/squareimage.png" alt="Square image with no rounding or shadowing." width="100" height="100" /><p class="wp-caption-text">Before</p></div>
<div id="attachment_361" class="wp-caption alignleft" style="width: 110px"><img class="size-full wp-image-361 colorbox-340" title="roundedshadowedmaskedglow" src="http://www.smartredfox.com/wp-content/uploads/2011/01/roundedshadowedmaskedglow.png" alt="" width="100" height="100" /><p class="wp-caption-text">After</p></div>
<hr />
<h2>Getting started</h2>
<p><img class="size-full alignleft wp-image-341 colorbox-340" title="squareimage" src="http://www.smartredfox.com/wp-content/uploads/2011/01/squareimage.png" alt="Square image with no rounding or shadowing." width="100" height="100" /><br />
First we create a single 60px by 60px div with an image added into the background via css. This is the basic starting block.</p>
<hr /><strong>Html:</strong><br />
<code>&lt;div class="image"&gt;&lt;/div&gt;</code></p>
<p><strong>Css:</strong></p>
<p><code>.image</code><code>{</code><br />
<code> background:transparent url(../images/finance.jpg) no-repeat 0 0;<br />
height:60px;<br />
width:60px;</code><br />
}</p>
<h2>Rounding the corners</h2>
<p><img class="size-full wp-image-343 alignleft colorbox-340" title="rounded" src="http://www.smartredfox.com/wp-content/uploads/2011/01/rounded.png" alt="" width="100" height="100" /><br />
Then we round the corners enough to make our div into circle. Note: The radius is half the full width of the circle, so to get a 60px circle we have to set the radius to 30px.</p>
<hr /><strong>Css:</strong><br />
<code>.image{<br />
<strong>-moz-border-radius: 30px; /* FF1+ */<br />
-webkit-border-radius: 30px; /* Saf3-4 */<br />
border-radius: 30px; /* Opera 10.5, IE 9, Saf5, Chrome */</strong></code></p>
<p><code>background:transparent url(../images/finance.jpg) no-repeat 0 0;<br />
height:60px;<br />
width:60px;<br />
}<br />
</code></p>
<div class="note">
<h4>Internet Explorer</h4>
<p>Versions of Internet Explorer prior to version 9 ignore this css completely so we gracefully degrade back to the plain square image.</p>
</div>
<h2>Adding a shadow</h2>
<p><img class="alignleft size-full wp-image-342 colorbox-340" title="roundedshadowed" src="http://www.smartredfox.com/wp-content/uploads/2011/01/roundedshadowed.png" alt="" width="100" height="100" /><br />
To make the image appear to be embedded into the page we can add an inset drop-shadow.</p>
<hr /><strong>Css:</strong></p>
<p><strong><code>.image{</code></strong></p>
<p><strong><code> -moz-box-shadow:inset 0px 2px 8px #333; /* FF3.5+ */<br />
-webkit-box-shadow:inset 0px 2px 8px #000; /* Saf3.0+*/<br />
box-shadow:inset 0px 2px 8px #333; /* Opera 10.5, IE 9 */</code></strong></p>
<p><code> -moz-border-radius: 30px; /* FF1+ */<br />
-webkit-border-radius: 30px; /* Saf3-4 */<br />
border-radius: 30px; /* Opera 10.5, IE 9, Saf5, Chrome */</code></p>
<p><code>background:transparent url(../images/finance.jpg) no-repeat 0 0;<br />
</code><code> </code><code>height:60px;<br />
width:60px;</code></p>
<p>}</p>
<h3>Problems</h3>
<p><img class="alignleft size-full wp-image-344 colorbox-340" title="chromeshadowspill" src="http://www.smartredfox.com/wp-content/uploads/2011/01/chromeshadowspill.png" alt="" width="100" height="100" /><br />
A problem with this layout occurs from an unexpected source; Chrome (as of  version 8.0.552.224) doesn&#8217;t clip the inset shadow properly when used with rounded corners so you get an odd square with our circular image in the middle.</p>
<p>Normally we could just switch the shadow off the for the offending browser and degrade back to something usable. The problem with this is that Safari and Chrome both use the WebKit rendering engine, so both of them would lose the shadow. This doesn&#8217;t seem like the right thing to do when Safari supports this fine.</p>
<h4>The fix, a new problem and a workaround</h4>
<p>It is possible to get Chrome to play ball by doing the clipping ourselves with an image mask.</p>
<p><img class="alignleft size-full wp-image-355 colorbox-340" title="roundedmasked" src="http://www.smartredfox.com/wp-content/uploads/2011/01/roundedmasked.png" alt="" width="100" height="100" /><br />
Initially I tried to do this with an SVG file so that I could apply it to any size circle without having to recreate the image each time. Unfortunately it appears that Chrome also doesn&#8217;t support SVG files being used as masks. The work around is to use a png file with a single white 60px circle.</p>
<hr /><strong>Css:</strong></p>
<p><strong><code>.image{</code></strong></p>
<p><strong><code>-webkit-mask-box-image:url(../images/circle60px.png);</code></strong></p>
<p><strong><code> </code></strong><code>-moz-box-shadow:inset 0px 2px 8px #333; /* FF3.5+ */<br />
-webkit-box-shadow:inset 0px 2px 8px #000; /* Saf3.0+*/<br />
box-shadow:inset 0px 2px 8px #333; /* Opera 10.5, IE 9 */</code></p>
<p><code><code> -moz-border-radius: 30px; /* FF1+ */<br />
-webkit-border-radius: 30px; /* Saf3-4 */<br />
border-radius: 30px; /* Opera 10.5, IE 9, Saf5, Chrome */</code></code></p>
<p><code>background:transparent url(../images/finance.jpg) no-repeat 0 0;<br />
</code><code> </code><code>height:60px;<br />
width:60px;</code></p>
<p>}</p>
<p><strong>Mask:</strong></p>
<div id="attachment_360" class="wp-caption alignnone" style="width: 70px"><img class="size-full wp-image-360   colorbox-340" style="background-color: #e9e9e9;" title="circle60px" src="http://www.smartredfox.com/wp-content/uploads/2011/01/circle60px.png" alt="" width="60" height="60" /><p class="wp-caption-text">circle60px.png</p></div>
<h2>Added bonus for WebKit based browsers &#8211; Glass effect</h2>
<p><img class="alignleft size-full wp-image-361 colorbox-340" title="roundedshadowedmaskedglow" src="http://www.smartredfox.com/wp-content/uploads/2011/01/roundedshadowedmaskedglow.png" alt="" width="100" height="100" /></p>
<p>Because we&#8217;re already using a mask anyway it&#8217;s quite simple to add a shine/glow effect to the image using the mask file. This is completely ignored by FireFox, Opera etc.</p>
<hr /><strong>New mask:</strong></p>
<div id="attachment_362" class="wp-caption alignnone" style="width: 70px"><img class="size-full wp-image-362  colorbox-340" style="background-color: #e9e9e9;" title="circle60pxglow" src="http://www.smartredfox.com/wp-content/uploads/2011/01/circle60pxglow.png" alt="" width="60" height="60" /><p class="wp-caption-text">circle60pxglow.png</p></div>
<p>If you&#8217;ve got any comments, fixes, or suggestions on how to do this better please let me know below.</p>
<div class="download">
<h2>Update</h2>
<p>I&#8217;ve created a <a href="http://www.smartredfox.com/2011/01/css-portholes/">new post showing how to add a porthole style borders</a> onto the image.
</div>
<h3>References:</h3>
<p>Css3 shadows and rounded corners:<br />
<a href="http://css3please.com/">http://css3please.com/</a></p>
<p>Masking:<br />
<a href="http://webkit.org/blog/181/css-masks/">http://webkit.org/blog/181/css-masks/</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 1375px; width: 1px; height: 1px;"><span id="sample-permalink">http://www.smartredfox.com/2011/01/<span id="editable-post-name" title="Temporary permalink. Click to edit this part.">css-portholes</span>/</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free jQuery page peel (updated)</title>
		<link>http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/</link>
		<comments>http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 09:53:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=291</guid>
		<description><![CDATA[The jQuery version of the page peel script has been very popular on SmartRedFox.com, and I&#8217;ve finally got round to making some updates and changes to it. Since I wrote the original article I found this site, which seems to have the original Flash files for the peel effect, as well as a copy of the non-jQuery version of the files. So, if you want to edit the .fla files, or you don&#8217;t want to use jQuery to display the &#8230; <a href="http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The jQuery version of the page peel script has been very popular on SmartRedFox.com, and I&#8217;ve finally got round to making some updates and changes to it.</p>
<p>Since I wrote the original article I found <a href="http://www.marcofolio.net/webdesign/create_a_peeling_corner_on_your_website.html" target="_blank">this site</a>, which seems to have the original Flash files for the peel effect, as well as a copy of the non-jQuery version of the files. So, if you want to edit the .fla files, or you don&#8217;t want to use jQuery to display the page peel you may want to head over there now.</p>
<h2>Updates:</h2>
<ul>
<li>The most requested feature for the original script was for it to <strong>open the link in the same window</strong>. This is now a configurable option. (Note: I&#8217;ve changed the default to be that the link opens in the same window).</li>
<li>I&#8217;ve changed the default images to make it easier to create your own.</li>
<li>Stopped the dotted outline from appearing when you click on the advert.</li>
<li>Assorted other fixes.</li>
</ul>
<p>To use the new page peel edit the peel.js file to match your set-up:</p>
<ul>
<li><strong>smartredfox.link_url</strong> &#8211; This is the full url (including http://) that you want users to go to when they click your advert.</li>
<li><strong>smartredfox.newWindow &#8211; </strong>Set this to true if you want the link_url to be opened in a new window.</li>
<li><strong>smartredfox.small_image</strong> &#8211; This is the full path to the image users see when the image loads.</li>
<li><strong>smartredfox.big_image</strong> &#8211; This is the full path to the big image that appears when users roll over the page peel.</li>
<li><strong>smartredfox.small_path</strong> &#8211; This is the full path to the small.swf file.</li>
<li><strong>smartredfox.big_path</strong> &#8211; This is the full path to the large.swf file.</li>
</ul>
<p>Then include the peel.js file and jQuery in the head of your website:</p>
<pre class="brush: xhtml">
	  &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
	  &amp;lt;script src=&amp;quot;peel.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
</pre>
<p><a class="pillbutton super large red" href="http://www.smartredfox.com/wp-content/uploads/2010/10/PagePeel_SRF.zip" onClick="javascript: pageTracker._trackPageview('/downloads/peel');"><span>Download now</span></a> <a class="pillbutton super large blue" href="/demos/peel/index.htm" target="_blank"><span>View demo</span></a></p>
<p>If you have any feedback or feature requests please post them in the comments below.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3921669375576540";
google_ad_slot = "5432952433";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Totaliser &#8211; make your numbers roll</title>
		<link>http://www.smartredfox.com/2010/08/totaliser-make-your-totals-exciting/</link>
		<comments>http://www.smartredfox.com/2010/08/totaliser-make-your-totals-exciting/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 10:28:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=219</guid>
		<description><![CDATA[UPDATE 24/08/2010: Various fixes and updates have now been incorporated, and the instructions below have been updated. SmartRedFox is pleased to announce it&#8217;s first ever jQuery plugin &#8211; the Totaliser. It&#8217;s a simple plugin that takes a text box and turns it into a fruit machine style number updater. It&#8217;s easier to see than explain, so take a look at the demo. There are a couple of things you need to know to use it: 1&#62; Include the js file &#8230; <a href="http://www.smartredfox.com/2010/08/totaliser-make-your-totals-exciting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 24/08/2010: Various fixes and updates have now been incorporated, and the instructions below have been updated.</strong></p>
<p><a href="http://www.smartredfox.com/wp-content/uploads/2010/08/totaliser_screen.png"><img class="alignright size-medium wp-image-220 colorbox-219" title="totaliser_screen" src="http://www.smartredfox.com/wp-content/uploads/2010/08/totaliser_screen-300x148.png" alt="" width="300" height="148" /></a>SmartRedFox is pleased to announce it&#8217;s first ever jQuery plugin &#8211; the Totaliser.</p>
<p>It&#8217;s a simple plugin that takes a text box and turns it into a fruit machine style number updater. It&#8217;s easier to see than explain, so <a href="http://www.smartredfox.com/totaliser/totaliser.htm" target="_blank">take a look at the demo</a>.</p>
<p>There are a couple of things you need to know to use it:</p>
<p>1&gt; Include the js file after your jquery include:</p>
<p><strong>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;YOURPATHHERE/jquery.totaliser.js&#8221;&gt;&lt;/script&gt;</strong></p>
<p>2&gt; Call the totaliser against a textbox to create it:</p>
<p><strong>$(&#8216;#textboxid&#8217;).totaliser();</strong></p>
<p>3&gt; When you want to update it just call UpdateTotaliser with a new number:</p>
<p><strong>$(&#8216;#textboxid&#8217;).totaliser</strong><strong>(45545666);</strong></p>
<p>or</p>
<p><strong>$.fn.totaliser</strong><strong>(45545666);</strong></p>
<p>There are a few configurable options for the totaliser:</p>
<ul>
<li>digits &#8211; this sets how many digits the totaliser displays (default is 9)</li>
<li>currency &#8211; set this to false if you don&#8217;t want to show the currency symbol</li>
<li>currencySign &#8211; this sets what currency symbol shows before the number (default is british pounds).</li>
</ul>
<p>So for example to load it up with the dollar sign and only 6 digits you&#8217;d call the following:</p>
<p><strong>$(&#8216;#textboxid&#8217;).totaliser({digits:6,currencySign:&#8221;$&#8221;});</strong></p>
<p><a href="http://www.smartredfox.com/wp-content/uploads/2010/08/totaliserV0_5.zip" onClick="javascript: pageTracker._trackPageview('/downloads/totaliser');" class="pillbutton red large super"><span>Download Totaliser</span></a> <a href="http://www.smartredfox.com/totaliser/totaliser.htm" class="pillbutton blue large super" target="_blank"><span>View demo</span></a><br />
If you have any bugs, suggestions, improvements, or just want to let me know that you&#8217;re using it, please leave a comment.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3921669375576540";
google_ad_slot = "5432952433";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2010/08/totaliser-make-your-totals-exciting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE6 &#8211; Items moving when hovering over another element</title>
		<link>http://www.smartredfox.com/2010/06/ie6-items-moving-when-hovering-over-another-element/</link>
		<comments>http://www.smartredfox.com/2010/06/ie6-items-moving-when-hovering-over-another-element/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:40:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=203</guid>
		<description><![CDATA[I know this is a common problem, and is well documented on a number of sites, but each time I run into this problem I seem to forget the best method for narrowing down where the problem is coming from. First, the problem This is a real example from a project I&#8217;m working on at the moment. This layout worked perfectly in FF3, Chrome, and IE8. It was only when I came to look at the layour in IE6 that &#8230; <a href="http://www.smartredfox.com/2010/06/ie6-items-moving-when-hovering-over-another-element/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I know this is a common problem, and is well documented on a <a href="http://www.positioniseverything.net/explorer/peekaboo.html" target="_blank">number</a> of sites, but each time I run into this problem I seem to forget the best method for narrowing down where the problem is coming from.</p>
<h2 style="text-align: left;">First, the problem</h2>
<p>This is a real example from a project I&#8217;m working on at the moment. This layout worked perfectly in FF3, Chrome, and IE8. It was only when I came to look at the layour in IE6 that I saw the problem.</p>
<p>When first loading the page the following shows:</p>
<div id="attachment_205" class="wp-caption alignnone" style="width: 310px"><a href="http://www.smartredfox.com/wp-content/uploads/2010/06/ie6_wrong.png"><img class="size-medium wp-image-205 colorbox-203" src="http://www.smartredfox.com/wp-content/uploads/2010/06/ie6_wrong-300x291.png" alt="The way it looks" width="300" height="291" /></a><p class="wp-caption-text">Broken in IE6</p></div>
<p>As you can see the box with the tick in it is in completely the wrong place &#8211; it&#8217;s supposed to be just above the &#8220;read more&#8221; link. Now is where IE6 shows it&#8217;s real strangeness. When I hovered over the read more link, or the item itself, it moved to the right place.</p>
<p>I&#8217;d seen this problem a few times before, and thought I knew what I was doing to fix it &#8211; a light smattering of Position:relative, and Zoom:1 and I&#8217;d be done. Unfortunately, it wasn&#8217;t that simple. My next step was a search around the internet-o-web where lots of people seem to describe something very similar, and most of them recommend applying Position:relative to the parent of the float. This didn&#8217;t work for me.</p>
<p>A bit more playing with my setup revealed that applying Position:relative to the list item (the parent&#8217;s, parent&#8217;s, parent) fixed the problem. One to file away for the future!</p>
<p>Here it is where it&#8217;s supposed to be.</p>
<p><a href="http://www.smartredfox.com/wp-content/uploads/2010/06/ie6_right.png"><img class="alignnone size-medium wp-image-204 colorbox-203" title="The way it should look" src="http://www.smartredfox.com/wp-content/uploads/2010/06/ie6_right-300x291.png" alt="The way it should look" width="300" height="291" /></a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 304px; width: 1px; height: 1px;">&lt;ul id=&#8221;incomeList&#8221; class=&#8221;checkboxes nostyle clearfix&#8221;&gt;<br />
&lt;%<br />
foreach (var i in ViewData.Model.Income)<br />
{%&gt;<br />
&lt;li class=&#8221;item&#8221;&gt;<br />
&lt;div class=&#8221;backgroundRpt rounded&#8221;&gt;<br />
&lt;%foreach (var f in i.Factors){<br />
var isChecked = f.UserValue != 0 ? &#8220;checked&#8221; : &#8220;&#8221;;<br />
%&gt;<br />
&lt;div class=&#8221;checkbox&#8221;&gt;<br />
&lt;input id=&#8221;incomeFactor&lt;%:f.FactorId%&gt;&#8221; type=&#8221;checkbox&#8221; &lt;%:isChecked%&gt; value=&#8221;&lt;%=f.Id%&gt;_&lt;%=f.FactorValue%&gt;&#8221;/&gt;<br />
&lt;label for=&#8221;incomeFactor&lt;%:f.FactorId%&gt;&#8221;&gt;<br />
&lt;span class=&#8221;amount&#8221; id=&#8221;factor&lt;%=i.ItemId%&gt;&#8221;&gt;&lt;%=Html.FormatCurrency(((f.FactorValue) * -1).ToString(&#8220;c&#8221;))%&gt;&lt;/span&gt;<br />
&lt;%:f.FactorTitle%&gt;<br />
&lt;/label&gt;<br />
&lt;a href=&#8221;#&#8221; class=&#8221;modallink linkButton rounded&#8221; title=&#8221;&lt;%=f.FactorTitle%&gt;&#8221;&gt;read more&lt;span class=&#8221;ui-icon ui-icon-circle-zoomin&#8221;&gt;&lt;/span&gt;&lt;/a&gt;<br />
&lt;span class=&#8221;modaldetail&#8221;&gt;&lt;%:f.FactorDescription%&gt;&lt;/span&gt;<br />
&lt;/div&gt;<br />
&lt;h4&gt;Consequence&lt;/h4&gt;<br />
&lt;ul class=&#8221;consequencesCount nostyle clearfix&#8221;&gt;<br />
&lt;li class=&#8221;consequence &lt;%:f.UserConsequence.Css%&gt;&#8221;&gt;<br />
&lt;%Html.RenderPartial(&#8220;ConsequenceLink&#8221;, f.UserConsequence);%&gt;<br />
&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;%}%&gt;<br />
&lt;/div&gt;<br />
&lt;/li&gt;<br />
&lt;%}%&gt;<br />
&lt;/ul&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2010/06/ie6-items-moving-when-hovering-over-another-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TimeBot &#8211; Automated timesheets using Bluetooth</title>
		<link>http://www.smartredfox.com/2010/01/timebot-is-here/</link>
		<comments>http://www.smartredfox.com/2010/01/timebot-is-here/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 15:39:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=196</guid>
		<description><![CDATA[For a while now I&#8217;ve been working on a simple way for people to record their working hours and create timesheets automatically, and now it&#8217;s finally ready for release. Timebot is an automated system that checks to see if someone is onsite by looking for their mobile phone or bluetooth enabled device. Timebot is easy and quick to configure, and saves a users time out to Google Calendar for easy management and sharing. Take a look now &#8211; any feedback &#8230; <a href="http://www.smartredfox.com/2010/01/timebot-is-here/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.smartredfox.com/timebot/"><img class="alignright colorbox-196" title="TimeBot" src="http://www.smartredfox.com/timebot/wp-content/uploads/2010/01/timebotpart1.png" alt="TimeBot is released!" width="200" height="200" /></a>For a while now I&#8217;ve been working on a simple way for people to record their working hours and create timesheets automatically, and now it&#8217;s finally ready for release.</p>
<p><a href="http://www.smartredfox.com/timebot/">Timebot</a> is an automated system that checks to see if someone is onsite by looking for their mobile phone or bluetooth enabled device. <a href="../timebot/">Timebot</a> is easy and quick to configure, and saves a users time out to Google Calendar for easy management and sharing.</p>
<p><a href="http://www.smartredfox.com/timebot/">Take a look now</a> &#8211; any <a href="http://www.smartredfox.com/timebot/contact/">feedback is greatly appreciated</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2010/01/timebot-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Very simple Jquery tooltips</title>
		<link>http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/</link>
		<comments>http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/#comments</comments>
		<pubDate>Fri, 29 May 2009 11:29:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=60</guid>
		<description><![CDATA[UPDATE: I&#8217;ve made a couple of changes to the script to make it easier to use and there&#8217;s now a demo available. A few weeks back I was looking for a nice simple way of adding tooltips to some buttons on a site &#8211; sometimes an image alone doesn&#8217;t quite convey what the button does in enough detail. I found the excellent coda popup bubbles on jQuery for designers, this seemed to do everything I wanted it to, but it &#8230; <a href="http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: I&#8217;ve made a couple of changes to the script to make it easier to use and there&#8217;s now a demo available.</strong></p>
<p><a href="http://www.smartredfox.com/wp-content/uploads/2008/10/coda.png"><img class="alignright size-full wp-image-79 colorbox-60" style="border: 1px solid #ccc;" title="coda" src="http://www.smartredfox.com/wp-content/uploads/2008/10/coda.png" alt="" width="205" height="174" /></a></p>
<p>A few weeks back I was looking for a nice simple way of adding tooltips to some buttons on a site &#8211; sometimes an image alone doesn&#8217;t quite convey what the button does in enough detail.</p>
<p>I found the excellent coda popup bubbles on <a href="http://jqueryfordesigners.com/coda-popup-bubbles/" target="_blank">jQuery for designers</a>, this seemed to do everything I wanted it to, but it meant going through all of my html and adding an additional div with the popup content. That&#8217;s fine for me, but other developers are never going to remember to do this and we really want a consistent user interface.</p>
<p>A little bit more looking led to <a href="http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/" target="_blank">Web Designer Wall</a> (#5 in the list). They have a very simple technique that <a href="http://www.smartredfox.com/wp-content/uploads/2008/10/webdesignerwall.png"><img class="alignleft size-full wp-image-80 colorbox-60" style="border: 1px solid #cccccc;margin-top: 15px;" title="webdesignerwall" src="http://www.smartredfox.com/wp-content/uploads/2008/10/webdesignerwall.png" alt="" width="148" height="127" /></a>pulls the Title text from an image and creates the popup out of this. All of dev&#8217;s are told to add title text to images so this was almost perfect. I say almost perfect because unlike the code bubbles the hover events queue up. This means that if you run you cursor back and forth over the buttons the popups keep firing for a few seconds/minutes after you stop.</p>
<p>So my final stop was to combine the two. I also incorporated any fixes I saw in the comments <img class="alignright size-full wp-image-154 colorbox-60" style="border:solid 1px #ccc" title="Smart red fox tooltips." src="http://www.smartredfox.com/wp-content/uploads/2009/05/tooltips.png" alt="Smart red fox tooltips." width="118" height="118" />section of jQuery for Designers.</p>
<p>You can download the <a href="http://www.smartredfox.com/tooltips/tooltips.zip">script here</a>.</p>
<p>Or see a <a href="http://www.smartredfox.com/tooltips/tooltips.htm" target="_blank">demo here</a>.</p>
<p>The image file I use for the tooltips can be <a href="http://www.smartredfox.com/tooltips/tooltips_blue.png">downloaded here</a>, and is free for anyone to use.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3921669375576540";
google_ad_slot = "4949241016";
google_ad_width = 468;
google_ad_height = 15;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Image buttons in an Asp:datagrid for edit/cancel/update</title>
		<link>http://www.smartredfox.com/2009/03/image-buttons-in-an-aspdatagrid-for-editcancelupdate/</link>
		<comments>http://www.smartredfox.com/2009/03/image-buttons-in-an-aspdatagrid-for-editcancelupdate/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 09:45:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=128</guid>
		<description><![CDATA[Just recently I had to style an asp datagrid that another developer had created. Now almost all of our default styles for this site use simple image buttons for actions but the datagrid automatically pumps out the Edit, Cancel, and Delete buttons as plain text. Unfortunately Microsoft have given very little control to designers/developers over what is pumped out onto the page, so it&#8217;s pretty much a link, or an input button as standard. I had a brief look for &#8230; <a href="http://www.smartredfox.com/2009/03/image-buttons-in-an-aspdatagrid-for-editcancelupdate/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<dl id="attachment_130" class="wp-caption alignright" style="width: 282px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-130 colorbox-128" title="Text buttons" src="http://www.smartredfox.com/wp-content/uploads/2009/03/nobuttons.png" alt="The Datagrid with text links." width="272" height="221" /></dt>
</dl>
<p>Just recently I had to style an asp datagrid that another developer had created. Now almost all of our default styles for this site use simple image buttons for actions but the datagrid automatically pumps out the Edit, Cancel, and Delete buttons as plain text. Unfortunately Microsoft have given very little control to designers/developers over what is pumped out onto the page, so it&#8217;s pretty much a link, or an input button as standard.</p>
<p>I had a brief look for a way around this and found lots of people with similar problems but no perfect way round this problem.</p>
<p>The simplest way I found around the problem is to put an image tag into the text attribute. E.g.:</p>
<p><span id="more-128"></span></p>
<p><span style="color: #999999;"><strong>&lt;asp:EditCommandColumn HeaderText=&#8221;Actions&#8221; ButtonType=&#8221;LinkButton&#8221; UpdateText=&#8221;<span style="color: #333399;">&lt;img src=&#8217;../images/buttons/small/updatesmall.png&#8217; alt=&#8217;Update&#8217; /&gt;</span>&#8221; CancelText=&#8221;<span style="color: #333399;">&lt;img src=&#8217;../images/buttons/small/cancelsmall.png&#8217; alt=&#8217;Cancel&#8217; /&gt;</span>&#8221; EditText=&#8221;<span style="color: #333399;">&lt;img src=&#8217;../images/buttons/small/editsmall.png&#8217; alt=&#8217;Edit&#8217; /&gt;</span>&#8220;&gt;&lt;/asp:EditCommandColumn&gt;</strong></span></p>
<p>This does work but it doesn&#8217;t have any hover effects on mouse over,  nor does it allow you to use <a href="http://www.alistapart.com/articles/sprites/" target="_blank">css sprites</a> to keep load times down. In this case it also meant that I&#8217;d have to create seperate images for every action.</p>
<p>So what I did instead was the following; I added an itemStyleCssClass attribute to the EditCommandColumn with my button style on it, then I put span&#8217;s into the text for Edit, Cancel, and Update that have a specific class for each button type:</p>
<p><span style="color: #999999;"><strong>&lt;asp:EditCommandColumn HeaderText=&#8221;Actions&#8221;<span style="color: #333399;"> ItemStyle-CssClass=&#8221;grey_small_circle&#8221;</span> ButtonType=&#8221;LinkButton&#8221; UpdateText=&#8221;<span style="color: #333399;">&lt;span class=&#8217;tick&#8217;&gt;Update&lt;/span&gt;</span>&#8221; CancelText=&#8221;<span style="color: #333399;">&lt;span class=&#8217;cancel&#8217;&gt;Cancel&lt;/span&gt;</span>&#8221; EditText=&#8221;<span style="color: #333399;">&lt;span class=&#8217;edit&#8217;&gt;Edit&lt;/span&gt;</span>&#8220;&gt;&lt;/asp:EditCommandColumn&gt;</strong></span></p>
<p>Then I added the following CSS:</p>
<pre class="brush: css">

/*Create buttons and add hover effect */

.grey_small_circle a{background:url(/admin/images/buttons/medium/grey_small_circle.png) no-repeat 0 0;display:block;line-height:30px;margin-top:1px;outline:none;width:31px}
.grey_small_circle a:hover,a:hover.grey_small_circle{background-position:0 -30px;color:#00affc;text-decoration:none}

/* Add the image inside */

.grey_small_circle span{background:transparent url(/images/icons/medium/all.png) no-repeat -288px -252px;display:block;height:30px;text-indent:-9000px;width:32px}

.grey_small_circle span.edit{background-position:-242px -201px}
.grey_small_circle span.redcross{background-position:-13px -252px}
.grey_small_circle span.remove{background-position:-427px -357px}
</pre>
<dl id="attachment_132" class="wp-caption alignleft" style="width: 369px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-132 colorbox-128" title="Datagrid with hover buttons." src="http://www.smartredfox.com/wp-content/uploads/2009/03/withbuttons.png" alt="Datagrid with hover buttons." width="359" height="284" /></dt>
</dl>
<p>This css adds the grey circle in the background of the buttons (see the screenshot) and makes the hover work using the <a href="http://www.alistapart.com/articles/slidingdoors/" target="_blank">sliding doors technique</a>.</p>
<p>I then use <a href="http://www.alistapart.com/articles/sprites/" target="_blank">css sprites</a> for putting an action image onto each button (using the class we assigned to the span), this technique speeds up load times and stops the unstyled pauses when a user hovers over a button. The last lines of the css attach a sheet of sprites  (in this case the excellent <a href="http://www.pinvoke.com/" target="_blank">PI Diagona icons from pinvoke</a>) and moves them depending on which button needs to be displayed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2009/03/image-buttons-in-an-aspdatagrid-for-editcancelupdate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Jquery page peel script</title>
		<link>http://www.smartredfox.com/2008/12/corner-page-peel-advert-with-jquery/</link>
		<comments>http://www.smartredfox.com/2008/12/corner-page-peel-advert-with-jquery/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 11:48:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=94</guid>
		<description><![CDATA[UPDATE 09/10/10- There is an updated version of the jQuery page peel script now available. Just recently I needed a page peel script for a client. A look around the &#8216;net lead me to a script that seemed to do everything I needed it to, but it used the document.write method which I&#8217;m not a big fan of, and it all seemed a bit inefficient. My client was already including jQuery in their pages so it made sense to rewrite &#8230; <a href="http://www.smartredfox.com/2008/12/corner-page-peel-advert-with-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="warning">UPDATE 09/10/10- There is an <a href="http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/">updated version of the jQuery page peel script now available</a>.</p>
<p><img class="alignleft size-full wp-image-107 colorbox-94" style="border: solid 1px #ccc;" title="page_curl" src="http://www.smartredfox.com/wp-content/uploads/2008/12/page_curl.png" alt="page_curl" width="108" height="106" />Just recently I needed a page peel script for a client. A look around the &#8216;net lead me to <a href="http://www.dougbelshaw.com/2008/01/26/page-peel-script/" target="_blank">a script</a> that seemed to do everything I needed it to, but it used the document.write method which I&#8217;m not a big fan of, and it all seemed a bit inefficient.</p>
<p>My client was already including jQuery in their pages so it made sense to rewrite the javascript using <a href="http://jquery.com/" target="_blank">jQuery</a>. This also has the added benefit of meaning you no longer have to include the script inside the body tag to get it work in IE7.</p>
<p>While we were testing with users I also spotted a problem with some earlier versions of flash not showing the pictures. The simple but strange solution for this was to use two large images, instead of one small and one large. If you&#8217;re not worried about users with old versions of flash you can just use a 100px x 100px image instead of two 650px x 650px images.</p>
<p>You can download the <a href="http://www.smartredfox.com/test/pagepeel.zip">script here</a>.</p>
<p>Or see a <a href="http://www.smartredfox.com/test/index.htm" target="_blank">demo here</a>.</p>
<p>To use this script you need to edit the peel.js file and put the link and image paths in that you want to use, then put the following in the head of your page:</p>
<pre class="brush: xhtml">
&amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;script src=&amp;quot;/pathtojquery/jquery-1.2.6.min.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/script&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;
&amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;script src=&amp;quot;/pathtopeel/peel.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/script&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;
</pre>
<p>That&#8217;s it. Just add those lines and the script does the rest. Obvisously change <span class="attribute-value">/pathtojquery/ to the path to<a href="http://jquery.com/" target="_blank"> jQuer</a>y for your site, and </span><span class="attribute-value">change /pathtopeel/to point to where you uploaded the peel.js file.</span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3921669375576540";
google_ad_slot = "5432952433";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2008/12/corner-page-peel-advert-with-jquery/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>First impressions of YAML</title>
		<link>http://www.smartredfox.com/2008/10/first-steps-with-yaml/</link>
		<comments>http://www.smartredfox.com/2008/10/first-steps-with-yaml/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 14:53:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[YAML]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=45</guid>
		<description><![CDATA[Okay, I&#8217;ll be honest I&#8217;m a bit of a magpie when it comes to web development, and in particular css frameworks. One week I&#8217;ll be telling everyone that&#8217;ll listen (which isn&#8217;t many people) about how great YUI is, and the next week I&#8217;ll be waxing lyrical about the excellent Blueprint framework. So with that little disclaimer out of the way, here&#8217;s my take on the rather excellent YAML CSS framework, and my first foray into using it to layout a &#8230; <a href="http://www.smartredfox.com/2008/10/first-steps-with-yaml/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.smartredfox.com/wp-content/uploads/2008/10/yaml.png"><img class="alignright size-full wp-image-65 colorbox-45" style="border: 1px solid #ccc;" title="yaml" src="http://www.smartredfox.com/wp-content/uploads/2008/10/yaml.png" alt="YAML logo" width="225" height="169" /></a>Okay, I&#8217;ll be honest I&#8217;m a bit of a magpie when it comes to web development, and in particular css frameworks. One week I&#8217;ll be telling everyone that&#8217;ll listen (which isn&#8217;t many people) about how great YUI is, and the next week I&#8217;ll be waxing lyrical about the excellent Blueprint framework.</p>
<p>So with that little disclaimer out of the way, here&#8217;s my take on the rather excellent YAML CSS framework, and my first foray into using it to layout a site.</p>
<p>First things first; YAML seems to be very well thought out. It claims to be cross browser compliant in almost every browser that&#8217;s still in use by more than one man and his dog, and it fixes most of the major problems web developers run into with the older browsers.</p>
<p>Unlike YUI and some of the other Frameworks you&#8217;ll need to download the css files etc. and host them yourself. These can all be downloaded from <a title="Go to the download page." href="http://www.yaml.de/en/download.html" target="_blank">here.</a></p>
<p>YAML lets you get off to a flying start without any real work creating css reset files etc. After slicing and dicing a design I&#8217;ve been working on for a week I managed to get a site up and running cross-browser on the first attempt. This seems to happen very rarely for me. I&#8217;ll admit there were a few tweaks here and there to make it perfect, but overall it just worked.</p>
<p>It&#8217;s got a few default styles that are well thought out and I&#8217;m already finding myself duplicating them in other projects I work on that don&#8217;t use YAML. I&#8217;ll cover details of some of these styles and a bit more on how to use the framework in later posts.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3921669375576540";
google_ad_slot = "1444433905";
google_ad_width = 200;
google_ad_height = 200;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2008/10/first-steps-with-yaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

