<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ben Crosbie</title>
	<atom:link href="http://bencrosbie.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bencrosbie.wordpress.com</link>
	<description>Web Development &#38; Tech Support - based in Edinburgh, Scotland</description>
	<lastBuildDate>Mon, 04 Oct 2010 23:42:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bencrosbie.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ben Crosbie</title>
		<link>http://bencrosbie.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bencrosbie.wordpress.com/osd.xml" title="Ben Crosbie" />
	<atom:link rel='hub' href='http://bencrosbie.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Big Text, Little Text, Cardboard Box</title>
		<link>http://bencrosbie.wordpress.com/2009/10/23/big-text-little-text-cardboard-box/</link>
		<comments>http://bencrosbie.wordpress.com/2009/10/23/big-text-little-text-cardboard-box/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 21:33:31 +0000</pubDate>
		<dc:creator>bcrosbie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bencrosbie.wordpress.com/?p=33</guid>
		<description><![CDATA[Cookies &#8211; http://www.w3schools.com/JS/js_cookies.asp Javascript Font Zoomer &#8211; http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html Using a combination of the code from these two tutorials and a wee bit of fiddling I was able to add the functionality of making text bigger and smaller onto a website.  The text size chosen by the user is then saved for the browser they are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bencrosbie.wordpress.com&amp;blog=8657913&amp;post=33&amp;subd=bencrosbie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cookies &#8211; http://www.w3schools.com/JS/js_cookies.asp</p>
<p>Javascript Font Zoomer &#8211; http://viralpatel.net/blogs/2009/03/implement-simple-font-zoomer-in-javascript-html.html</p>
<p>Using a combination of the code from these two tutorials and a wee bit of fiddling I was able to add the functionality of making text bigger and smaller onto a website.  The text size chosen by the user is then saved for the browser they are using and will work for all pages on the same domain/sub-domain.</p>
<p>Most browsers (well any decent one) actually have this functionality already built in &#8211; not only allowing you to make the text bigger and smaller but making the rest of the webpage bigger and smaller also (on Firefox press Ctrl and + together to make page bigger or Ctrl and &#8211; together to make page smaller).</p>
<p>But on the presumption that the user doesn&#8217;t know how to do this, having this functionality on your web page might be useful.  Here is the code I put together below that can be embedded straight into the body of your html.</p>
<blockquote><p><code>&lt;script type="text/javascript"&gt;</code></p>
<p><code>/* Init Script */<br />
x = checkCookie();<br />
function checkCookie() {<br />
fontSize = parseFloat(readCookie('fontSize'));<br />
if (!fontSize) {<br />
fontSize = 1.0<br />
}<br />
document.body.style.fontSize = fontSize + "em";<br />
}</code></p>
<p><code>/* Cookie functions */</code></p>
<p><code>function createCookie(name,value,days) {<br />
if (days) {<br />
var date = new Date();<br />
date.setTime(date.getTime()+(days*24*60*60*1000));<br />
var expires = "; expires="+date.toGMTString();<br />
}<br />
else var expires = "";<br />
document.cookie = name+"="+value+expires+"; path=/";<br />
}</code></p>
<p><code>function readCookie(name) {<br />
var nameEQ = name + "=";<br />
var ca = document.cookie.split(';');<br />
for(var i=0;i &lt; ca.length;i++) {<br />
var c = ca[i];<br />
while (c.charAt(0)==' ') c = c.substring(1,c.length);<br />
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);<br />
}<br />
return null;<br />
}</code></p>
<p><code>function eraseCookie(name) {<br />
createCookie(name,"",-1);<br />
}<br />
/* Zoom funtions */</code></p>
<p><code>function zoomIn() {<br />
fontSize += 0.1;<br />
fontSize = Math.round(fontSize*10)/10;<br />
document.body.style.fontSize = fontSize + "em";<br />
createCookie('fontSize',fontSize,365);<br />
}</code></p>
<p><code>function zoomOut() {<br />
fontSize -= 0.1;<br />
fontSize = Math.round(fontSize*10)/10;<br />
document.body.style.fontSize = fontSize + "em";<br />
createCookie('fontSize',fontSize,365);<br />
}<br />
&lt;/script&gt;<br />
&lt;a href="#" onclick="zoomIn()"&gt;Make Text Larger&lt;/a&gt;&lt;br/&gt;<br />
&lt;a href="#" onclick="zoomOut()"&gt;Make Text Smaller&lt;/a&gt;</code></p></blockquote>
<p>I don&#8217;t think there is any way to add this code to a site on WordPress.com but Blogger likes it, i havn&#8217;t tried it elswhere.  If you happen to be reading this and want to try it out,  add a comment below to let me know how you get on.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bencrosbie.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bencrosbie.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bencrosbie.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bencrosbie.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bencrosbie.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bencrosbie.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bencrosbie.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bencrosbie.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bencrosbie.wordpress.com&amp;blog=8657913&amp;post=33&amp;subd=bencrosbie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bencrosbie.wordpress.com/2009/10/23/big-text-little-text-cardboard-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fe1f2267d5e206a530f13881e3dc6879?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bcrosbie</media:title>
		</media:content>
	</item>
		<item>
		<title>RSS import for ELGG</title>
		<link>http://bencrosbie.wordpress.com/2009/07/20/rss-import-for-elgg/</link>
		<comments>http://bencrosbie.wordpress.com/2009/07/20/rss-import-for-elgg/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 23:35:54 +0000</pubDate>
		<dc:creator>bcrosbie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bencrosbie.wordpress.com/?p=11</guid>
		<description><![CDATA[Just started working on a plugin for ELGG. My aim is to recreate a simple version of the Feedapi module, written for Drupal, that will allow for new group and user objects to be automatically created from feed items that are fed in from RSS feeds. Source code is being worked on at http://github.com/benced/elgg-simplepieextension<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bencrosbie.wordpress.com&amp;blog=8657913&amp;post=11&amp;subd=bencrosbie&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just started working on a plugin for <a href="http://www.elgg.org/">ELGG</a>.</p>
<p>My aim is to recreate a simple version of the <a href="http://www.drupal.org/project/feedapi">Feedapi</a> module, written for <a href="http://www.drupal.org/">Drupal,</a> that will allow for new group and user objects to be automatically created from feed items that are fed in from RSS feeds.</p>
<p>Source code is being worked on at <a href="http://github.com/benced/elgg-simplepieextension">http://github.com/benced/elgg-simplepieextension</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bencrosbie.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bencrosbie.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bencrosbie.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bencrosbie.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bencrosbie.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bencrosbie.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bencrosbie.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bencrosbie.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bencrosbie.wordpress.com&amp;blog=8657913&amp;post=11&amp;subd=bencrosbie&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bencrosbie.wordpress.com/2009/07/20/rss-import-for-elgg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fe1f2267d5e206a530f13881e3dc6879?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bcrosbie</media:title>
		</media:content>
	</item>
	</channel>
</rss>
