<?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</title>
	<atom:link href="http://www.smartredfox.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smartredfox.com</link>
	<description>Smarter than your average bear</description>
	<lastBuildDate>Thu, 16 May 2013 13:57:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Gravity Forms &#8211; Limited date field</title>
		<link>http://www.smartredfox.com/2013/05/gravity-forms-limited-date-field/</link>
		<comments>http://www.smartredfox.com/2013/05/gravity-forms-limited-date-field/#comments</comments>
		<pubDate>Fri, 10 May 2013 15:37:24 +0000</pubDate>
		<dc:creator>jamesb</dc:creator>
				<category><![CDATA[Gravity Forms]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=934</guid>
		<description><![CDATA[<p>&#160; Gravity forms is about as easy to use and versatile a WordPress plugin as you can get, but every now and again I run into something it just doesn&#8217;t do. In this case I needed a date field that can be restricted to just work between two dates. I looked through the Gravity forms documentation and found out about the various actions and filters that were available, then I found an excellent tutorial on WPSmith. After reading these two resources I managed to create a plugin that you can download and use free of charge. The plugin adds an extra field type (date in range) into the form editor. After you add the field, it gives you two extra options on the advanced tab &#8211; Start Date, and End Date. Both are optional, which means you can create a &#8220;Dates after&#8230;&#8221; , a &#8220;Dates before&#8230;&#8221;, and a &#8220;Dates between&#8230;&#8221; field without any issues. The Gravity forms date limiter plugin also lets you create customised validation messages that include the start and end dates. Just include %%startdate%% and %%enddate%% in the validation message and they will be replaced at runtime. The only other option is the date format &#8211; this can be changed in Settings -&#62; Gravity Forms &#8211; Date Limiter. Valid options are dd/mm/yy and mm/dd/yy. I&#8217;d love to hear where you&#8217;re using this plugin, get feedback, or get feature requests &#8211; just drop me an email via the contact page. &#160; &#160;</p><p>The post <a href="http://www.smartredfox.com/2013/05/gravity-forms-limited-date-field/">Gravity Forms &#8211; Limited date field</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="alert notice"><div class="msg">This free plugin for WordPress requires you to have a copy of Gravity forms.</div><a href="#" class="toggle-alert">Toggle</a></div>
<p>&nbsp;</p>
<p>Gravity forms is about as easy to use and versatile a WordPress plugin as you can get, but every now and again I run into something it just doesn&#8217;t do. In this case I needed a date field that can be restricted to just work between two dates. I looked through the <a href="http://www.gravityhelp.com/documentation/page/Developer_Docs">Gravity forms documentation</a> and found out about the various actions and filters that were available, then I found an excellent tutorial on <a href="http://wpsmith.net/2011/plugins/how-to-create-a-custom-form-field-in-gravity-forms-with-a-terms-of-service-form-field-example/">WPSmith</a>.</p>
<p>After reading these two resources I managed to create a plugin that you can <a href="http://www.smartredfox.com/wp-content/uploads/2013/05/gf-date-limiter_0_5.zip">download and use free of charge</a>. The plugin adds an extra field type (date in range) into the form editor. After you add the field, it gives you two extra options on the advanced tab &#8211; Start Date, and End Date. Both are optional, which means you can create a &#8220;Dates after&#8230;&#8221; , a &#8220;Dates before&#8230;&#8221;, and a &#8220;Dates between&#8230;&#8221; field without any issues.</p>
<p>The <a href="http://www.smartredfox.com/wp-content/uploads/2013/05/gf-date-limiter_0_5.zip">Gravity forms date limiter plugin</a> also lets you create customised validation messages that include the start and end dates. Just include %%startdate%% and %%enddate%% in the validation message and they will be replaced at runtime.</p>
<p>The only other option is the date format &#8211; this can be changed in Settings -&gt; Gravity Forms &#8211; Date Limiter. Valid options are dd/mm/yy and mm/dd/yy.</p>
<p>I&#8217;d love to hear where you&#8217;re using this plugin, get feedback, or get feature requests &#8211; just drop me an email via <a title="Contact us" href="http://www.smartredfox.com/contact-us/">the contact page</a>.</p>
<a class="button large green" href="http://www.smartredfox.com/wp-content/uploads/2013/05/gf-date-limiter_0_5.zip" target="">Download Gravity Forms Date Limiter</a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="http://www.smartredfox.com/2013/05/gravity-forms-limited-date-field/">Gravity Forms &#8211; Limited date field</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2013/05/gravity-forms-limited-date-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Map List Pro</title>
		<link>http://www.smartredfox.com/2012/11/map-list-pro/</link>
		<comments>http://www.smartredfox.com/2012/11/map-list-pro/#comments</comments>
		<pubDate>Tue, 27 Nov 2012 20:39:49 +0000</pubDate>
		<dc:creator>jamesb</dc:creator>
				<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=800</guid>
		<description><![CDATA[<p>Map List Pro has now hit version 1.8.3 This version adds a category marker picker that allows you to set different markers for each category. It also allows you to choose which markers take precendence if more than one category is assigned to a location. You can buy it now from CodeCanyon or view a demo.</p><p>The post <a href="http://www.smartredfox.com/2012/11/map-list-pro/">Map List Pro</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Map List Pro has now hit version 1.8.3</p>
<p>This version adds a category marker picker that allows you to set different markers for each category. It also allows you to choose which markers take precendence if more than one category is assigned to a location. You can <a title="Buy now $12" href="http://codecanyon.net/item/map-list-pro/2620196?ref=smartredfox">buy it now from CodeCanyon</a> or <a title="View demo" href="http://filelistpro.smartredfox.com/map-list-pro/">view a demo</a>.</p>
<p><span id="more-800"></span></p>
<div class='prettyMapList' data-country='' data-simplesearch='true' data-startlatlong='' data-selectedzoomlevel='' data-geoenabled='false' data-defaultzoom='' data-locationsperpage='3' data-showdirections='true'><div id="map0" class="mapHolder"></div><div class="prettyFileBar clearfix"><a class="showFilterBtn float_right corePrettyStyle btn" href="#">Categories</a><a class="showSortingBtn float_right corePrettyStyle sortAsc btn" href="#" data-sort-direction="asc">Sort</a><div class="prettyFileFilters dropDownList"><ul class="unstyled"><li><a class="british" data-category="british" href="#"  style="background-image:url(http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker2.png)">British</a></li><li><a class="french" data-category="french" href="#"  style="background-image:url(http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker4.png)">French</a></li><li><a class="indian" data-category="indian" href="#"  style="background-image:url(http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker5.png)">Indian</a></li><li><a class="japanese" data-category="japanese" href="#"  style="background-image:url(http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker7.png)">Japanese</a></li><li><a class="restaurants" data-category="restaurants" href="#"  style="background-image:url(http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker1.png)">Restaurants</a></li></ul><p class="bar"><a class="cross" href="#">Close</a></p></div><div class="prettyMapListSearch"><label style="display:none;">Find locations near</label><input type="text" class="prettySearchValue" value="Search..."><a class="doPrettySearch btn corePrettyStyle">Go</a><a class="clearSearch btn corePrettyStyle hidden">Clear</a></div></div><div class="prettyMessage" style="display:none"><span></span><a class="btn" href="#">Show all locations</a></div><ul class="unstyled prettyListItems"><li class="corePrettyStyle prettylink map location127 british restaurants " data-title="Barbecoa" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker2.png" data-lat="51.51345" data-long="-0.09619399999996858" data-locationindex="0"><a title="Barbecoa" href="#" class="viewLocationDetail clearfix">Barbecoa <span class="mapcategories">Categories: <span>British Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">pulled pork · jamie oliver · special features · baby back ribs · pork scratchings</div><a href='http://www.smartredfox.com/location/barbecoa/' class='viewLocationPage btn corePrettyStyle'>View location detail</a><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li><li class="corePrettyStyle prettylink map location896 british restaurants " data-title="Hix" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker2.png" data-lat="51.511114" data-long="-0.1365210000000161" data-locationindex="1"><a title="Hix" href="#" class="viewLocationDetail clearfix">Hix <span class="mapcategories">Categories: <span>British Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">Hix
66-70 Brewer Street London</div><a href='http://www.smartredfox.com/location/hix/' class='viewLocationPage btn corePrettyStyle'>View location detail</a><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li><li class="corePrettyStyle prettylink map location898 japanese restaurants " data-title="Inamo" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker7.png" data-lat="51.514398" data-long="-0.13461499999993976" data-locationindex="2"><a title="Inamo" href="#" class="viewLocationDetail clearfix">Inamo <span class="mapcategories">Categories: <span>Japanese Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">Inamo
134-136 Wardour Street London</div><a href='http://www.smartredfox.com/location/inamo/' class='viewLocationPage btn corePrettyStyle'>View location detail</a><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li><li class="corePrettyStyle prettylink map location895 british restaurants " data-title="Rhodes Twenty Four" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker2.png" data-lat="51.515329" data-long="-0.08382499999993342" data-locationindex="3"><a title="Rhodes Twenty Four" href="#" class="viewLocationDetail clearfix">Rhodes Twenty Four <span class="mapcategories">Categories: <span>British Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">bread and butter pudding · chef gary · breathtaking views · spectacular views · traditional british</div><a href='http://www.smartredfox.com/location/rhodes-twenty-four/' class='viewLocationPage btn corePrettyStyle'>View location detail</a><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li><li class="corePrettyStyle prettylink map location126 french restaurants " data-title="Terroirs" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker4.png" data-lat="51.509411" data-long="-0.12526100000002316" data-locationindex="4"><a title="Terroirs" href="#" class="viewLocationDetail clearfix">Terroirs <span class="mapcategories">Categories: <span>French Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">Terroirs
5 William IV Street London</div><a href='http://www.smartredfox.com/location/terroirs/' class='viewLocationPage btn corePrettyStyle'>View location detail</a><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li><li class="corePrettyStyle prettylink map location899 indian restaurants " data-title="Veeraswamy" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker5.png" data-lat="51.509878" data-long="-0.13781100000005608" data-locationindex="5"><a title="Veeraswamy" href="#" class="viewLocationDetail clearfix">Veeraswamy <span class="mapcategories">Categories: <span>Indian Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">Test location short description.</div><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li><li class="corePrettyStyle prettylink map location897 japanese restaurants " data-title="Yo! Sushi" data-markerimageid="http://www.smartredfox.com/wp-content/plugins/maplists/images/pins/mapmarker7.png" data-lat="51.51414" data-long="-0.136841000000004" data-locationindex="6"><a title="Yo! Sushi" href="#" class="viewLocationDetail clearfix">Yo! Sushi <span class="mapcategories">Categories: <span>Japanese Restaurants </span></span></a><div class="mapLocationDetail"><div class="mapDescription clearfix">Yo! Sushi
GB</div><a href='http://www.smartredfox.com/location/yo-sushi/' class='viewLocationPage btn corePrettyStyle'>View location detail</a><div class="getDirections">Get directions from <input id="directionsPostcode" type="text" value="" size="10"/><a href="#" class="getdirections btn corePrettyStyle">go</a><a href="#" class="getdirectionsgeo btn corePrettyStyle" title="From current location">geo</a><div class="mapLocationDirectionsHolder"></div></div></div></li></ul><div class="prettyPagination"><a class="pfl_next btn corePrettyStyle" href="#">Next &raquo;</a><span class="pagingInfo">Page <span class="currentPage">1</span> of <span class="totalPages">3</span></span><a class="pfl_prev btn disabled corePrettyStyle" href="#">&laquo; Prev</a></div></div>
<p>The post <a href="http://www.smartredfox.com/2012/11/map-list-pro/">Map List Pro</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2012/11/map-list-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File List Pro</title>
		<link>http://www.smartredfox.com/2012/06/file-list-pro/</link>
		<comments>http://www.smartredfox.com/2012/06/file-list-pro/#comments</comments>
		<pubDate>Thu, 14 Jun 2012 19:50:11 +0000</pubDate>
		<dc:creator>jamesb</dc:creator>
				<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=773</guid>
		<description><![CDATA[<p>After the success of my two free WordPress plugins &#8211; Pretty File Links, and Pretty File List &#8211; I have completed my first commercial plugin. It&#8217;s an almost complete rewrite of Pretty File List with lots of new features added in. More details below: File List Pro lets you quickly display files attached to a post or page, in a paged, sortable, searchable, and filterable list. It comes ready to go with 18 styles and is fully customisable. File List Pro is perfect for creating lists of PDF newsletters, Excel spreadsheets of company accounts, Powerpoint Presentations ready to view, or Download lists for zip files. You can manually choose the files you want to show from a list, or specify criteria and have the list update itself automatically. It evens add tagging functionality to files so that you can have multiple auto-updating lists on the same page. Currently the File List Pro WordPress plugin is just $10 with prepaid credit through CodeCanyon (one of the Envato Marketplaces). Buy now View demo</p><p>The post <a href="http://www.smartredfox.com/2012/06/file-list-pro/">File List Pro</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://codecanyon.net/item/file-list-pro/2474660?ref=smartredfox"><img class="size-full wp-image-783 alignright" title="File List Pro WordPress Plugin" src="http://www.smartredfox.com/wp-content/uploads/2012/06/PFLProAdvertSmall.png" alt="List Files easily in WordPress" width="80" height="80" /></a>After the success of my two free WordPress plugins &#8211; <a title="Pretty File Links" href="http://wordpress.org/extend/plugins/pretty-file-links/">Pretty File Links</a>, and <a title="Pretty File List" href="http://wordpress.org/extend/plugins/pretty-file-lister/">Pretty File List</a> &#8211; I have completed my first commercial plugin.</p>
<p>It&#8217;s an almost complete rewrite of Pretty File List with lots of new features added in. More details below:</p>
<p><a title="Buy now - Just $10" href="http://codecanyon.net/item/file-list-pro/2474660?ref=smartredfox">File List Pro</a> lets you quickly display files attached to a post or page, in a paged, sortable, searchable, and filterable list. It comes ready to go with 18 styles and is fully customisable.</p>
<p><a title="Buy now - Just $10" href="http://codecanyon.net/item/file-list-pro/2474660?ref=smartredfox">File List Pro</a> is perfect for creating lists of PDF newsletters, Excel spreadsheets of company accounts, Powerpoint Presentations ready to view, or Download lists for zip files.</p>
<p>You can manually choose the files you want to show from a list, or specify criteria and have the list update itself automatically. It evens add tagging functionality to files so that you can have multiple auto-updating lists on the same page.</p>
<p><strong>Currently the File List Pro WordPress plugin is just $10 with prepaid credit through <a href="http://codecanyon.net?ref=smartredfox">CodeCanyon </a>(one of the Envato Marketplaces).</strong></p>
<p><a class="pillbutton red large super" href="http://codecanyon.net/item/file-list-pro/2474660?ref=smartredfox"><span>Buy now</span></a> <a class="pillbutton blue large super" href="http://filelistpro.smartredfox.com" target="_blank"><span>View demo</span></a></p>
<p>The post <a href="http://www.smartredfox.com/2012/06/file-list-pro/">File List Pro</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2012/06/file-list-pro/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>jamesb</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[<p>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 edge. Adding content with pseudo-elements 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 Nicolas Gallagher&#8217;s website, so look there for more detail on the technique. Changes to the original code 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. The new css for the portholes is below: Css .image { /*Rounded edges*/ -moz-border-radius: 33px; /* FF1+ */ -webkit-border-radius: 33px; /* Saf3-4 */ border-radius: 33px; /* Opera 10.5, IE 9, Saf5, Chrome */ background-repeat:no-repeat; border:1px solid #CCCCCC; display:block; height:66px; overflow:hidden; position:relative; margin:10px; width:66px; z-index:1; } .image:before { content:&#8221;"; /*Rounded edges*/ -moz-border-radius: 33px; /* FF1+ */ -webkit-border-radius: 33px; /* Saf3-4 */ border-radius: 33px; /* Opera 10.5, IE 9, Saf5, [...]</p><p>The post <a href="http://www.smartredfox.com/2011/01/css-portholes/">Css portholes</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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" 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" 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" 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" 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>
<p>The post <a href="http://www.smartredfox.com/2011/01/css-portholes/">Css portholes</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</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>jamesb</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=340</guid>
		<description><![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. 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 only supported in WebKit based browsers (Chrome and Safari). The code below lets you achieve the effect, and it degrades gracefully for browsers that don&#8217;t support parts of the effect. Getting started First we create a single 60px by 60px div with an image added into the background via css. This is the basic starting block. Html: &#60;div class="image"&#62;&#60;/div&#62; Css: .image{ background:transparent url(../images/finance.jpg) no-repeat 0 0; height:60px; width:60px; } Rounding the corners 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. Css: .image{ -moz-border-radius: 30px; /* FF1+ */ -webkit-border-radius: 30px; /* Saf3-4 */ border-radius: 30px; /* Opera 10.5, IE 9, Saf5, Chrome */ background:transparent url(../images/finance.jpg) no-repeat 0 0; height:60px; width:60px; } Internet Explorer Versions of Internet Explorer prior to version 9 ignore this css completely so we gracefully degrade back to the plain square image. Adding a shadow To make the image appear to be embedded into the page we can add an inset drop-shadow. Css: .image{ -moz-box-shadow:inset 0px 2px 8px #333; /* FF3.5+ */ -webkit-box-shadow:inset 0px 2px 8px #000; /* Saf3.0+*/ box-shadow:inset 0px 2px 8px #333; [...]</p><p>The post <a href="http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/">Rounded, shadowed, and shiny pictures with CSS3</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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" 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" 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" 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" 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" 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" 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" 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  " 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" 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 " 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>
<p>The post <a href="http://www.smartredfox.com/2011/01/rounded-shadowed-and-shiny-pictures-with-css3/">Rounded, shadowed, and shiny pictures with CSS3</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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>jamesb</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[<p>There is now a javascript based WordPress plugin for adding Page Peels to your site. Take a look at it on Code Canyon. 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 page peel you may want to head over there now. Updates: The most requested feature for the original script was for it to open the link in the same window. This is now a configurable option. (Note: I&#8217;ve changed the default to be that the link opens in the same window). I&#8217;ve changed the default images to make it easier to create your own. Stopped the dotted outline from appearing when you click on the advert. Assorted other fixes. To use the new page peel edit the peel.js file to match your set-up: smartredfox.link_url &#8211; This is the full url (including http://) that you want users to go to when they click your advert. smartredfox.newWindow &#8211; Set this to true if you want the link_url to be opened in a new window. smartredfox.small_image &#8211; This is the full path to the image users see when the image loads. smartredfox.big_image &#8211; This is the full path to the big image that appears when users roll over the page peel. smartredfox.small_path &#8211; This is the full path to the small.swf file. smartredfox.big_path &#8211; This [...]</p><p>The post <a href="http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/">Free jQuery page peel (updated)</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There is now a javascript based <a title="See the Page Peel plugin on CodeCanyon" href="http://codecanyon.net/item/page-peel-pro/3842307?ref=smartredfox">WordPress plugin</a> for adding Page Peels to your site. <a href="http://codecanyon.net/item/page-peel-pro/3842307?ref=smartredfox">Take a look at it on Code Canyon</a>.</p>
<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>
<p>[xhtml]<br />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><br />
<script src="peel.js" type="text/javascript"></script><br />
[/xhtml]</p>
<p><a class="pillbutton super large red" onclick="javascript: pageTracker._trackPageview('/downloads/peel');" href="http://www.smartredfox.com/wp-content/uploads/2010/10/PagePeel_SRF.zip"><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>[ad#ad-3]</p>
<p>The post <a href="http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/">Free jQuery page peel (updated)</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2010/10/free-jquery-page-peel-updated/feed/</wfw:commentRss>
		<slash:comments>12</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>jamesb</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[<p>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 after your jquery include: &#60;script type=&#8221;text/javascript&#8221; src=&#8221;YOURPATHHERE/jquery.totaliser.js&#8221;&#62;&#60;/script&#62; 2&#62; Call the totaliser against a textbox to create it: $(&#8216;#textboxid&#8217;).totaliser(); 3&#62; When you want to update it just call UpdateTotaliser with a new number: $(&#8216;#textboxid&#8217;).totaliser(45545666); or $.fn.totaliser(45545666); There are a few configurable options for the totaliser: digits &#8211; this sets how many digits the totaliser displays (default is 9) currency &#8211; set this to false if you don&#8217;t want to show the currency symbol currencySign &#8211; this sets what currency symbol shows before the number (default is british pounds). So for example to load it up with the dollar sign and only 6 digits you&#8217;d call the following: $(&#8216;#textboxid&#8217;).totaliser({digits:6,currencySign:&#8221;$&#8221;}); Download Totaliser View demo If you have any bugs, suggestions, improvements, or just want to let me know that you&#8217;re using it, please leave a comment. [ad#ad-3]</p><p>The post <a href="http://www.smartredfox.com/2010/08/totaliser-make-your-totals-exciting/">Totaliser &#8211; make your numbers roll</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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" 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>[ad#ad-3]</p>
<p>The post <a href="http://www.smartredfox.com/2010/08/totaliser-make-your-totals-exciting/">Totaliser &#8211; make your numbers roll</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</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>jamesb</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=203</guid>
		<description><![CDATA[<p>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 I saw the problem. When first loading the page the following shows: 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. 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. 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! Here it is where it&#8217;s supposed to be. &#60;ul id=&#8221;incomeList&#8221; class=&#8221;checkboxes nostyle clearfix&#8221;&#62; &#60;% foreach (var i in ViewData.Model.Income) {%&#62; &#60;li class=&#8221;item&#8221;&#62; &#60;div class=&#8221;backgroundRpt rounded&#8221;&#62; &#60;%foreach (var f in i.Factors){ var isChecked = f.UserValue != 0 ? [...]</p><p>The post <a href="http://www.smartredfox.com/2010/06/ie6-items-moving-when-hovering-over-another-element/">IE6 &#8211; Items moving when hovering over another element</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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" 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" 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>
<p>The post <a href="http://www.smartredfox.com/2010/06/ie6-items-moving-when-hovering-over-another-element/">IE6 &#8211; Items moving when hovering over another element</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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>jamesb</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[Uncategorised]]></category>

		<guid isPermaLink="false">http://www.smartredfox.com/?p=196</guid>
		<description><![CDATA[<p>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 is greatly appreciated.</p><p>The post <a href="http://www.smartredfox.com/2010/01/timebot-is-here/">TimeBot &#8211; Automated timesheets using Bluetooth</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.smartredfox.com/timebot/"><img class="alignright" 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>
<p>The post <a href="http://www.smartredfox.com/2010/01/timebot-is-here/">TimeBot &#8211; Automated timesheets using Bluetooth</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</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>jamesb</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[<p>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 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. A little bit more looking led to Web Designer Wall (#5 in the list). They have a very simple technique that 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. So my final stop was to combine the two. I also incorporated any fixes I saw in the comments section of jQuery for Designers. You can download the script here. Or see a demo here. The image file I use for the tooltips can be downloaded here, and is free for anyone to use. [ad]</p><p>The post <a href="http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/">Very simple Jquery tooltips</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></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" 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" 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" 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>[ad]</p>
<p>The post <a href="http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/">Very simple Jquery tooltips</a> appeared first on <a href="http://www.smartredfox.com">Smart red fox</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.smartredfox.com/2009/05/very-simple-jquery-tooltips/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
