<?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>Natalie Downe &#187; tech</title>
	<atom:link href="http://natbat.wordpress.com/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://natbat.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 18 Jul 2006 21:52:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='natbat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Natalie Downe &#187; tech</title>
		<link>http://natbat.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://natbat.wordpress.com/osd.xml" title="Natalie Downe" />
	<atom:link rel='hub' href='http://natbat.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Yay for the internet</title>
		<link>http://natbat.wordpress.com/2006/07/18/yay-for-the-internet/</link>
		<comments>http://natbat.wordpress.com/2006/07/18/yay-for-the-internet/#comments</comments>
		<pubDate>Tue, 18 Jul 2006 21:50:48 +0000</pubDate>
		<dc:creator>natbat</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[rugby]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">https://natbat.wordpress.com/2006/07/18/yay-for-the-internet/</guid>
		<description><![CDATA[After a very very long time &#8211; way over a month now &#8211; I finally have internet at home again! a direct result of this is that I have set myself up with a proper install of wordpress on a brand new hosting package &#8230; http://notes.natbat.net/ This wordpress.com site will no longer be updated.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=17&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After a very<i> very</i> long time &#8211; way over a month now &#8211; I finally have internet at home again! a direct result of this is that I have set myself up with a proper install of wordpress on a brand new hosting package &#8230;</p>
<p><a href="http://notes.natbat.net/">http://notes.natbat.net/ </a></p>
<p>This wordpress.com site will no longer be updated.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natbat.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natbat.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natbat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natbat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natbat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natbat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natbat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natbat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natbat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natbat.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=17&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natbat.wordpress.com/2006/07/18/yay-for-the-internet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90243e3b56c58fb8733c6cc69eccb385?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natbat</media:title>
		</media:content>
	</item>
		<item>
		<title>Women in technology and Ubuntu</title>
		<link>http://natbat.wordpress.com/2006/03/03/women-in-technology-and-ubuntu/</link>
		<comments>http://natbat.wordpress.com/2006/03/03/women-in-technology-and-ubuntu/#comments</comments>
		<pubDate>Fri, 03 Mar 2006 00:37:43 +0000</pubDate>
		<dc:creator>natbat</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://natbat.wordpress.com/2006/03/03/women-in-technology-and-ubuntu/</guid>
		<description><![CDATA[Looks like there is a new drive afoot to recruit more of us girls to the great Ubuntu cause. The Ubuntu group have recently launched &#8216;Ubuntu Women&#8216;. The aim of which is to initiate more women into Ubuntu, open source software and technology in general, through mentoring and encouragement. A quote from the Ubuntu Women [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=16&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Looks like there is a new drive afoot to recruit more of us girls to the great Ubuntu cause. The Ubuntu group have recently launched &#8216;<a href="https://wiki.ubuntu.com/UbuntuWomen">Ubuntu Women</a>&#8216;. The aim of which is to initiate more women into Ubuntu, open source software and technology in general, through mentoring and encouragement.</p>
<p>A quote from the <a href="https://wiki.ubuntu.com/UbuntuWomen">Ubuntu Women wiki page</a> on one of the reasons for the project:</p>
<blockquote cite="https://wiki.ubuntu.com/UbuntuWomen"><p>&#8220;[to] Transcend the technical barrier which will empower women to create new software and think out-of-the-box.&#8221;</p></blockquote>
<p>Despite the arguable overuse of metaphors, encouraging women in technology is a really good idea. Its no secret that a lot of women do feel intimidated by this mainly male centric industry, there are many reasons why this should be so.</p>
<p>One article on <a href="http://www.faqs.org/docs/Linux-HOWTO/Encourage-Women-Linux-HOWTO.html">how to encourage women in Linux</a> that has an interesting analogy, comparing the fear to going into a sports bar with a t-shirt saying &#8216;I hate sport&#8217;. Now I don&#8217;t personally believe this is entirely correct, while I completely understand that if you are starting out it sometimes feels like everyone is talking a different language, its not trying to be different, you just are.</p>
<p>Some men, and even some women may think it wimpy, perhaps sexist to even admit there is a difference between the genders and their attitudes; but its true, we are not the same, it <em>is</em> sometimes a struggle to prove yourself as a female geek.</p>
<p>One huge difference that has a significant effect could be that women are less prone to self promotion; while this modesty trait may be good in polite society, it doesn&#8217;t work well in the geek world. Men are quite happy to promote their ideas, share there excitement and unashamedly display the cool things they have made, this is a great thing and I&#8217;m not generalising without exception, there are many women who are able to overcome this and be proud of what they have done. Myself and many others I spoke with are less forthcoming with our enthusiasm and this may well be to our disadvantage.</p>
<p>Another great barrier to entry is a partner with similar interests in the field, naturally <a title="from the same FAQ as above" href="http://www.faqs.org/docs/Linux-HOWTO/Encourage-Women-Linux-HOWTO.html#AEN295">a common occurrence</a> due to similar social circles and shared interests, it can happen many people overlook the female partner&#8217;s geeky credentials, unintentionally perhaps but noticeable none the less. From personal experience I can confirm this is true, I would never claim to be better than my other half &#8211; nowhere near &#8211; however a few people who meet me at geek events just think I come along for the ride, and not knowing I work as a web developer and just automatically talk down to me.</p>
<p>Although not being recognised for our abilities as women geeks, is partly our fault for not being outwardly proud enough of our achievements and accolades, the lack of women in technology is not helped by assumptions of others that we have none to be proud of.</p>
<h3>Further Reading</h3>
<ul>
<li>For those of you wishing to join the UbuntuWomen group there is a <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-women">mailing list</a>, and a place to <a href="https://wiki.ubuntu.com/UbuntuWomenMentors">sign up as a mentor</a> to help a female budding Ubuntu Developer.</li>
<li>The <a href="http://www.faqs.org/docs/Linux-HOWTO/Encourage-Women-Linux-HOWTO.html">FAQ</a> on how to encourage women in Linux, also applies generally too.</li>
<li>Information on the <a href="https://wiki.ubuntu.com/WomenInUbuntu">Debian women group</a> and women in open source software in general.</li>
<li><a href="http://www.faqs.org/docs/Linux-HOWTO/Encourage-Women-Linux-HOWTO.html#AEN191">VERY useful advice</a> to men thinking of getting a geek girlfriend!</li>
<li><a href="http://www.thehughpage.com/London_Girl_Geek_Dinner">London Girl Geek dinners</a> &#8211; I keep meaning to go to, and will do eventually. The next one is on <a href="http://geekswithblogs.net/waterbaby/archive/2006/02/14/69475.aspx">March 14th</a>.</li>
<li><a href="http://www.linuxchix.org/">http://www.linuxchix.org/</a> &#8211; need I say more?</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natbat.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natbat.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natbat.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natbat.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natbat.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natbat.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natbat.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natbat.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natbat.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natbat.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=16&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natbat.wordpress.com/2006/03/03/women-in-technology-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90243e3b56c58fb8733c6cc69eccb385?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natbat</media:title>
		</media:content>
	</item>
		<item>
		<title>Nearly there with the &#8216;permalink-slideshow&#8217;</title>
		<link>http://natbat.wordpress.com/2006/02/24/nearly-there-with-the-permalink-slideshow/</link>
		<comments>http://natbat.wordpress.com/2006/02/24/nearly-there-with-the-permalink-slideshow/#comments</comments>
		<pubDate>Fri, 24 Feb 2006 02:34:24 +0000</pubDate>
		<dc:creator>natbat</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://natbat.wordpress.com/2006/02/24/nearly-there-with-the-permalink-slideshow/</guid>
		<description><![CDATA[Well at the risk of too many entries on this permalink-slideshow, here goes another. I have always wanted (since i lost my fear of JavaScript) something that i can cut my teeth on so to speak. A medium-ly complex project to do in JavaScript that I can have fun playing around with, and more importantly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=14&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well at the risk of too many entries on this permalink-slideshow, here goes another. I have always wanted (since i lost my fear of JavaScript) something that i can cut my teeth on so to speak. A medium-ly complex project to do in JavaScript that I can have fun playing around with, and more importantly to learn from. I think I may have found it.</p>
<p>This evening I have had some fun playing with performance, which incidentally seams to work fine now, there appeared to be a problem with the images stacking on top of each other with &#39;visibility: hidden&#39; and a not-quite-opaque opacity. Using &#39;display: none&#39; in addition seams to sort things out just fine. I also sorted out the weird forward / back problem <a href="http://natbat.wordpress.com/2006/02/23/fixing-a-few-javascript-slideshow-loose-ends/#comment-11">pointed out by Richard</a> by not letting the fade start unless it is not already running, unfortunately another global variable but unavoidable in this case I think.</p>
<p>The images now start at 1 not 0 because it made more sense when reading it, I also put in &#39;page x of x&#39; at the bottom of the image and changed the document.title so that the back history remains understandable, quick fixes but quite a nice effect.</p>
<p>With regards to the image id&#39;s not matching the location.hash to avoid jumping, it really was quite a problem so I changed to my initial idea of &#39;position:absolute; top:0;&#39; with the padding on the image to position it instead, though depending on how it will be used eventually the jump may be unavoidable. Oh well.</p>
<p>I still need to implement the funky image pre-loading trick as it hangs while you wait for the images to load, but other than that &#8211; and the hideous browser incompatibilities &#8211; I&#39;m relatively happy with it. Tomorrow I show it to the people at work for real, if they don&#39;t like it that doesn&#39;t really matter as I have had a lot of fun making it!</p>
<p>Current working version:</p>
<ul>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/index7.html" title="Demo">Demo</a> (v7)</li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/style.css">CSS</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/test10.js">JavaScript</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/style4.css">CSS over-ride called by the JavaScript</a></li>
</ul>
<p><b>UPDATE [4th Apr 06]: <a href="http://code.natbat.co.uk/javascript/slideshow/permalinkSlideshow_v030.html" title="version 0.30">new demo</a> </b>(see <a href="http://natbat.wordpress.com/2006/02/24/nearly-there-with-the-permalink-slideshow/#comment-32" title="list of updates">comments</a> for list of changes)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natbat.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natbat.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natbat.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natbat.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natbat.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natbat.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natbat.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natbat.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natbat.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natbat.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=14&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natbat.wordpress.com/2006/02/24/nearly-there-with-the-permalink-slideshow/feed/</wfw:commentRss>
		<slash:comments>94</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90243e3b56c58fb8733c6cc69eccb385?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natbat</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing a few JavaScript slideshow loose ends</title>
		<link>http://natbat.wordpress.com/2006/02/23/fixing-a-few-javascript-slideshow-loose-ends/</link>
		<comments>http://natbat.wordpress.com/2006/02/23/fixing-a-few-javascript-slideshow-loose-ends/#comments</comments>
		<pubDate>Thu, 23 Feb 2006 01:06:16 +0000</pubDate>
		<dc:creator>natbat</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://natbat.wordpress.com/2006/02/23/fixing-a-few-javascript-slideshow-loose-ends/</guid>
		<description><![CDATA[As pointed out by Jeremy, my linkable slideshow (v2) needed some work to fix the load order of the page without altering the &#8216;unobtrusiveness&#8217; of its behaviour. I opted for Jeremy&#8217;s second method; not waiting for the page to load, instead hiding the images and sorting things out later on. Since the slideshow already relied [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=13&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As pointed out by <a title="comment" href="http://natbat.wordpress.com/2006/02/22/javascript-slideshow-fun/#comment-1">Jeremy</a>, my <a href="http://code.natbat.co.uk/javascript/slideshow/index2.html">linkable slideshow</a> (v2) needed some work to fix the load order of the page without altering the &#8216;unobtrusiveness&#8217; of its behaviour.</p>
<p>I opted for Jeremy&#8217;s second method; not waiting for the page to load, instead hiding the images and sorting things out later on. Since the slideshow already relied on importing the CSS with JavaScript I simply moved this outside of the function called onload.</p>
<p>To ensure nothing untoward happens with crazy partial loaded DOM editing I encased the addition of the CSS into a try / catch. On fail of inserting the link rel into the page, the function then simply just calls itself again.</p>
<p>So in the root of the JavaScript file:</p>
<p><code> ... </code><br />
<code>   function setCSS(css) {</code><br />
<code>try {</code><br />
<code>  // append stylesheet to alter</code><br />
<code> 		document.getElementsByTagName("head")[0].appendChild(css);</code><br />
<code> 	} catch (e) {</code><br />
<code>  setTimeout(function(){setCSS(css)}, 100);</code><br />
<code> 	}</code><br />
<code>   }</code><br />
<code>  // on load </code><br />
<code>  addEvent(window, 'load', setupPage);</code><br />
<code>  // create CSS element to set up the page </code><br />
<code>  var css = document.createElement("link"); </code><br />
<code>  css.setAttribute("href","style3.css");</code><br />
<code>  css.setAttribute("rel","stylesheet");</code><br />
<code>  css.setAttribute("type","text/css");</code><br />
<code>  // attempt to add the css and then keep trying till we do </code><br />
<code>  setCSS(css);<br />
</code></p>
<p>The CSS then sets all the images except the first one (over-ridden in the JS) to have &#8216;visibility: hidden;&#8217; and to be positioned absolute in the right place.</p>
<p>Other changes to this version include vague attempts to improve performance through clearing the setInterval() during the fade and resetting after, also through using &#8216;display: none&#8217; as well as the visibility. This seamed to improve it slightly but nothing revolutionary, it always slows down after 7 or so images regardless of how long you leave between page load and moving to an image.</p>
<p>Image maps work right enough with the slideshow too now which is good, since this was part of the original specification. I also stopped the jumping due to the id&#8217;s of the image, I am not too pleased with the solution to this as it involves using a different hash fragment to the image id&#8217;s.</p>
<p>The jumping was due to the browser automatically moving to the top of the image with the id, using non-existent id&#8217;s stopped this problem but does sort of spoil the seamless effect. For example if i bookmark an image then turn off JavaScript that bookmark will no longer work. The only other solution I can think of to this issue is playing with z-indexes of the other page elements and having the image positioned absolute at the top of the page with padding down to the appropriate height.</p>
<p>This new version is available for your interest here:</p>
<ul>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/index4.html">Demo (v4)<br />
</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/style.css">CSS</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/test6.js">JavaScript</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/style2.css">CSS over-ride called by the JavaScript</a></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natbat.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natbat.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natbat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natbat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natbat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natbat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natbat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natbat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natbat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natbat.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=13&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natbat.wordpress.com/2006/02/23/fixing-a-few-javascript-slideshow-loose-ends/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90243e3b56c58fb8733c6cc69eccb385?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natbat</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript slideshow fun</title>
		<link>http://natbat.wordpress.com/2006/02/22/javascript-slideshow-fun/</link>
		<comments>http://natbat.wordpress.com/2006/02/22/javascript-slideshow-fun/#comments</comments>
		<pubDate>Wed, 22 Feb 2006 00:48:09 +0000</pubDate>
		<dc:creator>natbat</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://natbat.wordpress.com/2006/02/22/javascript-slideshow-fun/</guid>
		<description><![CDATA[There are things that go smoothly, run like a dream and never complain; there are others that don&#8217;t. For me, debugging JavaScript is always one the latter. I have only recently begun to appreciate the power and fun to be had hacking at javascript, I used to panic at the thought of it. This was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=4&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are things that go smoothly, run like a dream and never complain; there are others that don&#8217;t. For me, debugging JavaScript is always one the latter.</p>
<p><img align="right" alt="DHTML Utopia" src="http://www.sitepoint.com/images/books/dhtml1/cover.gif" />I have only recently begun to appreciate the power and fun to be had hacking at javascript, I used to panic at the thought of it. This was until I joined <a title="Torchbox" href="http://www.torchbox.com/">Torchbox</a> where I received not only the help and confidence boost I needed, but also the office has a copy of Stuart&#8217;s book &#8216;<a title="Stuart Langridge" href="http://www.sitepoint.com/article/dhtml-utopia-modern-web-design">DHTML Utopia</a>&#8216;.</p>
<p>I have only gone through the first three or so chapters in detail but over the past six months I have learnt to love event listeners and writing JavaScript as a seamless behaviour layer. No more do I panic about getting tangled up in &#8216;<code>onclick</code>&#8216;s and &#8216;<code>JavaScript:</code>&#8216; &#8211; things become easier and a lot more fun when you can abstract the JavaScript from the page entirely.</p>
<p>I have written one or two snippets that I am quite pleased with, and although I have learnt to love writing JavaScript, I still hate debugging it. My most recent exploit has been into the realm of an accessible slideshow.</p>
<p>For work we wanted a way of showing images as a funky slideshow, the slideshow however needed to change the URL for each image and have the ability for the user to either manually alter the URL to go to an image, use the browser&#8217;s back button and bookmark an image. The user should choose when to move to another image so in the previously mentioned situations and when next or previous is clicked the images should fade into the next.</p>
<p>In true 2.0 style I have a <a href="http://code.natbat.co.uk/javascript/slideshow/index2.html">&#8216;<em>beta</em>&#8216; version</a> up and running, its not yet there but its a start. The next and previous links work and fade nicely, the back button really does work (even with the fade) as does the ability to change the URL manually. All images used are <a title="search for 'favourite'" href="http://flickr.com/photos/nataliedowne/">ones I have taken</a> and are licensed under the creative commons.</p>
<p>The final version will:</p>
<ul>
<li><strong>Fix all the bugs</strong> &#8211; so the style &#8216;issues&#8217;, (mainly in IE) there is a flash of the previous image in Safari and some nightmarish debugging is needed for the &#8216;Permission denied&#8217; error I am getting in IE6! <em>(</em><em>You may have already guessed that I unashamedly developed this in FireFox.)</em></li>
<li><strong>Fix the performance problem</strong> &#8211; I really don&#8217;t know why this occurs but if you click through a number of images by the time you get to 6 or 7 the performance lag is very noticeable. Currently, I am changing the URL with fragment ID&#8217;s from the <code>location.hash</code> property and updating the <code>location.href</code> with the id of the current image. Listening to the URL is done through a function on <code>setInterval()</code> on 500ms that checks against one of the few global variables if the location.hash has changed. I&#8217;m thinking of changing this to use <code>setTimeout()</code> instead so I can stop it during the fade and start up again straight after, this might work.</li>
<li><strong>Have &#8216;further information&#8217; links</strong> &#8211; per image that then changes (not necessarily fades) as the images do</li>
<li><strong>Use image maps </strong>- As this was the original intention of the slideshow, to work with images that are image maps, I am really hoping that this is going to be a nice easy stage; I have yet to try setting the opacity on image maps.</li>
<li><strong>Stress test it! </strong>- The fun part, its the fixing afterward that might not be quite such a laugh.</li>
</ul>
<p>Some inspiration for the slideshow came from Matthew Westcott who developed the <a href="http://breakthrough.org.uk/javascript/fading_slideshow.js">cool main image fade</a> on <a href="http://breakthrough.org.uk/">http://breakthrough.org.uk/</a> and from the <a href="http://slayeroffice.com/code/imageCrossFade/xfade2.html">Image Cross Fader Redux</a>.</p>
<p>Feel free to view my efforts:</p>
<ul>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/index2.html">Demo</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/style.css">CSS</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/test4.js">JavaScript</a></li>
<li><a href="http://code.natbat.co.uk/javascript/slideshow/style2.css">CSS over-ride called by the JavaScript</a></li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/natbat.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/natbat.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/natbat.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/natbat.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/natbat.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/natbat.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/natbat.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/natbat.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/natbat.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/natbat.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=natbat.wordpress.com&#038;blog=68820&#038;post=4&#038;subd=natbat&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://natbat.wordpress.com/2006/02/22/javascript-slideshow-fun/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/90243e3b56c58fb8733c6cc69eccb385?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">natbat</media:title>
		</media:content>

		<media:content url="http://www.sitepoint.com/images/books/dhtml1/cover.gif" medium="image">
			<media:title type="html">DHTML Utopia</media:title>
		</media:content>
	</item>
	</channel>
</rss>
