<?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>Cert IV in IT (Web Design) &#187; Scripting</title>
	<atom:link href="http://c475.edublogs.org/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://c475.edublogs.org</link>
	<description>Designed to Learn</description>
	<lastBuildDate>Sat, 22 Jul 2006 07:34:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a Lightbox for your images</title>
		<link>http://c475.edublogs.org/2006/04/19/creating-a-lightbox-for-your-images/</link>
		<comments>http://c475.edublogs.org/2006/04/19/creating-a-lightbox-for-your-images/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 02:30:21 +0000</pubDate>
		<dc:creator>Ady</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://c475.edublogs.org/2006/04/19/creating-a-lightbox-for-your-images/</guid>
		<description><![CDATA[<p>
The links look like the following:&#60;script type="text/javascript" src="js/prototype.js"&#62;&#60;/script&#62;&#60;script type="text/javascript" src="js/scriptaculous.js?load=effects"&#62;&#60;/script&#62;&#60;script type="text/javascript" src="js/lightbox.js"&#62;&#60;/script&#62;Now the order is important.For now we are ready.The head section will look similar to this: Any other CSS and JavaScript can be placed after line 8 in the sample shown.Now we can turn our attention to the actual images.In the main body of your page, if you wish to use a lightbox effect on any image then you do the following steps.Insert the image as normal.Insert the image's thumbnail immidiately to the right of the image.  For example the code below shown the flow2a and flow2a-thm files insertedintot he code:&#60;img src="photos/flow2a.jpg" alt="TheFlow" width="639" height="510" /&#62;&#60;imgsrc="photos/flow2a-thm.jpg" alt="The flow thumbnail" width="100" height="100" /&#62;Now we modify the code to create our lightbox link:we start by changing the first img src into an a href, removing the widthadn height sections, plus the / before the &#62; &#60;a href="photos/flow2a.jpg" alt="The Flow"&#62;&#60;img src="photos/flow2a-thm.jpg" alt="The flow thumbnail" width="100" height="100" /&#62; Now change the alt to title and if you wish extend the title of the image:&#60;a href="photos/flow2a.jpg" title="The Flow, and image "&#62;We now add the rel="lightbox" attribute to the a href.
</p>]]></description>
			<content:encoded><![CDATA[<h3>
How to use the LightBox version 2.<br />
</h3>
<p>
This tutorial aims to take you step by step through how to use the lightbox JavaScript system that was written by <a href="http://www.huddletogether.com/">Lokesh Dhakar</a>. The Lightbox is a way to present images onto the screen in a way similar to how they<br />
<br />are presented to a photographer who is using a light box to view negatives.
</p>
<p>
First you need to obtain the LightBox v2 system from the <a href="http://www.huddletogether.com/projects/lightbox2/">official<br />
<br />download site</a>. This was version 2.02 when these notes were made.
</p>
<p>
Uncompress the files into a folder called LightBox2, so you can copy the required files.
</p>
<p>
In your web site create a folder called css, another called js and an images folder. In this sample site the folders are shown here:
</p>
<p>
<a href="http://c475.edublogs.org/files/2006/04/screenshot_0028.jpg"><img src="http://c475.edublogs.org/files/2006/04/screenshot_0028-tm.jpg" height="100" width="86" border="1" hspace="4" vspace="4" alt="Screenshot 0028" /></a>
</p>
<p>
In these folders you need to copy the following files:
</p>
<p>
Into the js folder:
</p>
<ul>
<li>prototype.js</li>
<li>lightbox.js</li>
<li>effects.js</li>
<li>scriptaculous.js</li>
</ul>
<p>
into the css folder:
</p>
<ul>
<li>lightbox.css</li>
<li></li>
</ul>
<p>
into the images folder:
</p>
<ul>
<li>loading.gif</li>
<li>prevlabel.gif</li>
<li>blank.gif</li>
<li>next.gif</li>
<li>closelabel.gif</li>
<li>close.gif</li>
<li>nextlabel.gif</li>
<li>prev.gif</li>
<li></li>
</ul>
<p>
Now we can edit our page that has the picture(s) we wish to link to the lightbox.
</p>
<p>
The first stage is to make sure your images have two versions, a <em>full<br />
<br />size</em> and a <em>thumbnail</em>. I generally make the thumbnails in the range 64&#215;64<br />
<br />pixels up to 128&#215;128 pixels depending on the situation. If i had a picture<br />
<br />called <em>photo001.jpg</em> then the thumbnail woudl be something like <em>picture001-thm.jpg</em>.
</p>
<p>
Create a final folder called <em>photos</em> and put your photos, pictures and thumbnails<br />
<br />into this. This fourth folder is for any images you want to display that are not part of the general styling of the site.
</p>
<p>
Now we can insert the required javascript and css links into the document:
</p>
<p>
All these items go into the &lt;head&gt; &#8230; &lt;/head&gt; area in the code.
</p>
<p>
The first bit you are familiar with (using CSS links), and that is:
</p>
<ul>
<li><code>&lt;link href="css/lightbox.css" rel="stylesheet" type="text/css" media="screen" /&gt;</code></li>
</ul>
<p>
This links to the css for the lightbox. It makes it only used on the screen.
</p>
<p>
Next we insert the javascript links. The system uses four files. The LightBox<br />
<br />file which contains the lightbox specific details, plus the files for<br />
<br />the effects (effects.js). The last two (lightbox.js and<br />
<br />scriptaculous.js) are specific &#8220;building blocks&#8221;<br />
<br />that provide a lot of extra functions that are beyond the scope of the<br />
<br />tutorial. They are required to get lightbox running.
</p>
<p>
these require links in the head area as did the css. The links look like<br />
<br />the following:
</p>
<p>
<code>&lt;script type="text/javascript" src="js/prototype.js"&gt;&lt;/script&gt;<br />
<br />&lt;script type="text/javascript" src="js/scriptaculous.js?load=effects"&gt;&lt;/script&gt;<br />
<br />&lt;script type="text/javascript" src="js/lightbox.js"&gt;&lt;/script&gt;</code>
</p>
<p>
Now the order <strong>is</strong> important.
</p>
<p>
Now we are ready.
</p>
<p>
The head section will look similar to this:
</p>
<p>
<a href="http://c475.edublogs.org/files/2006/04/screenshot_0030.jpg"><img src="http://c475.edublogs.org/files/2006/04/screenshot_0030-tm.jpg" height="100" width="456" border="1" hspace="4" vspace="4" alt="Screenshot 0030" /></a>
</p>
<p>
Any other CSS and JavaScript can be placed after line 8 in the sample<br />
<br />shown.
</p>
<p>
Now we can turn our attention to the actual images.
</p>
<p>
In the main body of your page, if you wish to use a lightbox effect on<br />
<br />any image then you do the following steps.
</p>
<p>
Insert the image as normal.
</p>
<p>
Insert the image&#8217;s thumbnail immidiately to the right of the image.    For<br />
<br />example the code below shown the flow2a and flow2a-thm files inserted<br />
<br />intot he code:
</p>
<p>
<code>&lt;img src="photos/flow2a.jpg" alt="The<br />
<br />Flow" width="639" height="510" /&gt;<br />
<br />&lt;img<br />
<br />src="photos/flow2a-thm.jpg" alt="The flow thumbnail" width="100" height="100" /&gt;</code>
</p>
<p>
Now we modify the code to create our lightbox link:
</p>
<p>
We start by changing the first img src into an a href, removing the width<br />
<br />and height sections, plus the / before the &gt;
</p>
<p>
&lt;a href=&#8221;photos/flow2a.jpg&#8221; alt=&#8221;The<br />
<br />Flow&#8221;&gt;<br />
<br />&lt;img src=&#8221;photos/flow2a-thm.jpg&#8221; alt=&#8221;The flow thumbnail&#8221; width=&#8221;100&#8243; height=&#8221;100&#8243; /&gt;
</p>
<p>
Now change the alt to title and if you wish extend the title of the image:
</p>
<p>
<code>&lt;a href="photos/flow2a.jpg" title="The<br />
<br />Flow, and image "&gt;</code>
</p>
<p>
We now add the rel=&#8221;lightbox&#8221; attribute to the a href. This<br />
<br />is magic dust that makes the lightbox code work with the image.
</p>
<p>
<code>&lt;a href="photos/flow2a.jpg" title="The Flow, and<br />
<br />image " rel="lightbox" &gt;</code>
</p>
<p>
Now<br />
<br />add a &lt;/a&gt; after the thumbnail:
</p>
<p>
<code>&lt;a href ="photos/flow2a.jpg" title="The Flow, and image " rel="lightbox" &gt;<br />
<br />&lt;img<br />
<br />src="photos/flow2a-thm.jpg" alt="The flow thumbnail" width="100" height="100" /&gt;<br />
<br />&lt;/a&gt;</code>
</p>
<p>
And there we have it. One photo lightbox.
</p>
<p>
If you do multiple images then you only need to repeat the steps for the<br />
<br />images.
</p>
<p><!-- technorati tags start -->
<p>Technorati Tags: <a href="http://www.technorati.com/tag/lightbox" rel="tag">lightbox</a>, <a href="http://www.technorati.com/tag/tutorial" rel="tag">tutorial</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://c475.edublogs.org/2006/04/19/creating-a-lightbox-for-your-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Further Links &#8211; CSS and more</title>
		<link>http://c475.edublogs.org/2006/03/09/further-links-css-and-more/</link>
		<comments>http://c475.edublogs.org/2006/03/09/further-links-css-and-more/#comments</comments>
		<pubDate>Thu, 09 Mar 2006 08:10:35 +0000</pubDate>
		<dc:creator>Ady</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://c475.edublogs.org/2006/03/09/further-links-css-and-more/</guid>
		<description><![CDATA[
CSS Help Pile: Links and Discussion About the Best CSS Resources on the web
CSS Basics &#8211; Making Cascading Style Sheets Easy to Understand
Writing cross-browser CSS &#124; 456 Berea Street
Dnevnik eklektika &#183; CSS Stamps
johnoxton.co.uk: Scalable logos
SkimCSS &#8211; Skim Everything (CSS) Cascading Style Sheet Related!
24 ways: Centered Tabs with CSS
Friendly Bit &#187; Cross-browser strategies for CSS
Managing HTML [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://www.artypapers.com/csshelppile/">CSS Help Pile: Links and Discussion About the Best CSS</a> Resources on the web</li>
<li><a href="http://www.cssbasics.com/">CSS Basics &#8211; Making Cascading Style Sheets Easy to Understand</a></li>
<li><a href="http://www.456bereastreet.com/archive/200602/writing_crossbrowser_css/">Writing cross-browser CSS | 456 Berea Street</a></li>
<li><a href="http://dnevnikeklektika.com/css/css-stamps/">Dnevnik eklektika &#183; CSS Stamps</a></li>
<li><a href="http://johnoxton.co.uk/article/23/scalable-logos">johnoxton.co.uk: Scalable logos</a></li>
<li><a href="http://www.skimcss.com/skimlist">SkimCSS &#8211; Skim Everything (CSS) Cascading Style Sheet Related!</a></li>
<li><a href="http://24ways.org/advent/centered-tabs-with-css">24 ways: Centered Tabs with CSS</a></li>
<li><a href="http://friendlybit.com/css/cross-browser-strategies-for-css/">Friendly Bit &#187; Cross-browser strategies for CSS</a></li>
<li><a href="http://www.communitymx.com/content/article.cfm?cid=E74CC">Managing HTML and CSS to Keep Clients Happy and Avoid &#8216;Disaster&#8217; &#8211; Part One</a></li>
<li><a href="http://www.zimbra.com/community/ajaxtk_download.html">Zimbra&#8482; &#8211; Zimbra Ajax Toolkit Download</a></li>
<li><a href="http://www.markboulton.co.uk/journal/comments/semantic_typography_bridging_the_xhtml_gap/">Semantic Typography: Bridging the XHTML gap : Journal : Mark Boulton | Information design</a></li>
<li><a href="http://muffinresearch.co.uk/archives/2005/10/31/become-a-better-standardista/">Become a better Standardista | Muffin Research Labs</a></li>
<li><a href="http://www.artypapers.com/csshelppile/pcdtr/">PHP + CSS Dynamic Text Replacement (P+C DTR) &#8211; CSS Help Pile</a></li>
<li><a href="http://web-graphics.com/mtarchive/001703.php">wg:Printing CSS background images (sort of)</a></li>
<li><a href="http://www.huddletogether.com/projects/lightbox/">Lightbox JS</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://c475.edublogs.org/2006/03/09/further-links-css-and-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Books and Resources</title>
		<link>http://c475.edublogs.org/2006/01/31/books-and-resources/</link>
		<comments>http://c475.edublogs.org/2006/01/31/books-and-resources/#comments</comments>
		<pubDate>Mon, 30 Jan 2006 17:01:37 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Fireworks]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Information Architecture]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://c475.edublogs.org/2006/01/31/books-and-resources/</guid>
		<description><![CDATA[When studying this course most of the lecturers will not specify a text book for youi to use. As a result we will list books that may be useful.
The following is a starter list, but will be extended. If you find a resource that is suitable, add the detaisl to the comments.

Designing Web usability
Jakob Nielsen [...]]]></description>
			<content:encoded><![CDATA[<p>When studying this course most of the lecturers will not specify a text book for youi to use. As a result we will list books that <strong>may</strong> be useful.</p>
<p>The following is a starter list, but will be extended. If you find a resource that is suitable, add the detaisl to the comments.</p>
<dl>
<dt>Designing Web usability</dt>
<dd>Jakob Nielsen [New Riders, 2000]</dd>
<dt>Elements of Web Design, 2nd Ed</dt>
<dd>Darcy DiNuccie [Peachpit, 1998]</dd>
<dt>Macromedia Dreamweaver MX, training from the source</dt>
<dd>[Macromedia Press, 2003]</dd>
<dt>Usability: The site speaks for itself</dt>
<dd>Braun, Gadney, Haughley, Roselli, Synstelien, Walter, Wertheimer [glasshaus, 2002]</dd>
<dt>Macromedia Dreamweaver MX, complete concepts and techniques</dt>
<dd>Shelly, Cashman &amp; Wells [Thomson Course Technology, 2004]</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://c475.edublogs.org/2006/01/31/books-and-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
