<?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>Web Development Blog &#187; script</title>
	<atom:link href="http://www.scriptiny.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptiny.com</link>
	<description>This web development blog features fresh articles on JavaScript, AJAX, CSS, XHTML, PHP, Photoshop and more.</description>
	<lastBuildDate>Fri, 10 Feb 2012 19:53:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Advanced JavaScript Table Sorter &#8211; TinyTable V3</title>
		<link>http://www.scriptiny.com/2009/11/advanced-javascript-table-sorter/</link>
		<comments>http://www.scriptiny.com/2009/11/advanced-javascript-table-sorter/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 01:06:24 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[sorter]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=278</guid>
		<description><![CDATA[The third iteration of the TinyTable table sorting script adds search, column averages and totals, record numbering, a view all function, and a reset function. At only 6KB it is still lightweight, quick, and includes all previous features.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2009/11/tinytablev3.jpg" alt="TinyTable Table Sorting V3" width="592" height="275" /></p>
<p>The third iteration of the TinyTable table sorting script adds search, column averages and totals, record numbering, a view all function, and a reset function. At only 6KB it is still lightweight, quick, and includes all previous TinyTable features. Other features include alternate row highlighting, header class toggling, auto data type recognition, and selective column sorting. If you don&#8217;t need the new features take a look at the <a href="http://www.scriptiny.com/2009/03/table-sorter/">second version</a> of the script which weighs 2.5KB.</p>
<p>To initialize a table sorter follow the pattern below:</p>
<pre class="brush: jscript; title: ; notranslate">var sorter = new TINY.table.sorter('sorter','table',{
	headclass:'head', // Header Class //
	ascclass:'asc', // Ascending Class //
	descclass:'desc', // Descending Class //
	evenclass:'evenrow', // Even Row Class //
	oddclass:'oddrow', // Odd Row Class //
	evenselclass:'evenselected', // Even Selected Column Class //
	oddselclass:'oddselected', // Odd Selected Column Class //
	paginate:true, // Paginate? (true or false) //
	size:10, // Initial Page Size //
	colddid:'columns', // Columns Dropdown ID (optional) //
	currentid:'currentpage', // Current Page ID (optional) //
	totalid:'totalpages', // Current Page ID (optional) //
	startingrecid:'startrecord', // Starting Record ID (optional) //
	endingrecid:'endrecord', // Ending Record ID (optional) //
	totalrecid:'totalrecords', // Total Records ID (optional) //
	hoverid:'selectedrow', // Hover Row ID (optional) //
	pageddid:'pagedropdown', // Page Dropdown ID (optional) //
	navid:'tablenav', // Table Navigation ID (optional) //
	sortcolumn:1, // Index of Initial Column to Sort (optional) //
	sortdir:1, // Sort Direction (1 or -1) //
	sum:[8], // Index of Columns to Sum (optional) //
	avg:[6,7,8,9], // Index of Columns to Average (optional) //
	columns:[{index:7, format:'%', decimals:1},{index:8, format:'$', decimals:0}], // Sorted Column Settings (optional) //
	init:true // Init Now? (true or false) //
});</pre>
<p>The first parameter taken by TINY.table.sorter is the variable name used for the object, the second is the id of the table, and the third is the settings object. You can either initialize the script in the object creation by setting init to true or you can initialize it later using sorter.init().</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://www.scriptiny.com/qa/">available here</a>. Paid support is also available, <a href="http://www.scriptiny.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.scriptiny.com/tinytablev3/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://forum.leigeber.com/index.php?app=downloads&amp;showfile=3">Click here to download the source code.</a></strong></p>
<p><strong>11/16/2009</strong> &#8211; Updated script to function correctly in IE6/IE7.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2009/11/advanced-javascript-table-sorter/feed/</wfw:commentRss>
		<slash:comments>149</slash:comments>
		</item>
		<item>
		<title>Accordion Script With Multi-Level Support</title>
		<link>http://www.scriptiny.com/2009/03/accordion/</link>
		<comments>http://www.scriptiny.com/2009/03/accordion/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 05:37:28 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[collapsible]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=141</guid>
		<description><![CDATA[This accordion script is powerful and lightweight. It now includes multi-level support, a parameter to determine whether only one panel can be expanded concurrently, and a hide/show all toggle.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2009/03/tiny-accordion.gif" alt="Accordion" width="459" height="175" /></p>
<p>This updated accordion script is powerful and lightweight at only 1.2kb. It now includes multi-level support, the option to allow multiple panels to expand concurrently, and a hide/show all toggle. I have reverted the markup to a div based structure to eliminate any validation issues with the definition tables in the previous version. Check back for more posts and scripts soon.</p>
<p>To initialize an accordion use the following code:</p>
<pre class="brush: jscript; title: ; notranslate">var accordion=new TINY.accordion.slider('accordion');
accordion.init('accordion','h3',0,0,'selected');</pre>
<p>You must create a new accordion object before initialization. The parameter taken by accordion.slider is the variable name used for the object. The object.init function takes 5 parameters: the id of the accordion “ul”, the header element tag, whether the panels should be expandable independently (optional), the index of the initially expanded section (optional) and the class for the active header (optional).</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://www.scriptiny.com/qa/">available here</a>. Paid support is also available, <a href="http://www.scriptiny.com/contact/">contact me</a> for details.</p>
<p><strong>Update 6/16/2009</strong></p>
<p>The script has been updated with a couple bug fixes, performance tweaks, and feature requests. I also shaved off 0.2KB.</p>
<p>You can now expand a particular section by its index, for example parentAccordion.pr(0,1), with the second parameter being the index of the section. If you don&#8217;t want any section to be expanded by default then use -1 for the initially expanded index in the initialization function, example accordion.init(&#8220;accordion&#8221;,&#8221;h3&#8243;,0,-1,&#8221;selected&#8221;). The script is also no longer tied to a strict doctype. If you are using this along with Flash, be sure to set the wmode property on the SWF object.</p>
<p><strong><a href="http://sandbox.scriptiny.com/javascript-accordion/index.html">Click here for the demo.</a></strong></p>
<p><strong><a href="http://forum.leigeber.com/index.php?app=downloads&#038;showfile=5">Click here to download the source code.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2009/03/accordion/feed/</wfw:commentRss>
		<slash:comments>269</slash:comments>
		</item>
		<item>
		<title>Animated JavaScript Slideshow &#8211; 5KB</title>
		<link>http://www.scriptiny.com/2008/12/javascript-slideshow/</link>
		<comments>http://www.scriptiny.com/2008/12/javascript-slideshow/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 23:34:13 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=109</guid>
		<description><![CDATA[This JavaScript slideshow is feature packed and under 5KB. Features include smooth animation, title/description/link support, no naming restrictions, graceful degradation, on-demand image loading and active thumbnail status.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2008/12/javascript-slideshow.jpg" alt="JavaScript Slideshow" width="459" height="200" /></p>
<p>This dynamic JavaScript slideshow is feature packed and under 5KB. It is the long awaited update to my previous script <a href="http://www.scriptiny.com/2008/05/ajax-image-gallery-slideshow/">here</a>. A few new features include description support, link support, no naming restrictions, portrait image support, graceful degradation and active thumbnail status. This script was built ground-up and will soon be included at <a href="http://www.scriptiny.com/">scriptiny </a>where all my scripts will be added as they are updated, debugged and incorporated in the new TINY namespace. I will also document the scripts more thoroughly and publish multiple examples. I will continue to publish scripts there and support as I have time via the new community forum. I will try and post more frequently here on a wide range of web development related topics.</p>
<p>Here is an example of the markup to build a slideshow…</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul id=&quot;slideshow&quot;&gt;
	&lt;li&gt;
		&lt;h3&gt;Image One&lt;/h3&gt;
		&lt;span&gt;photos/image-one.jpg&lt;/span&gt;
		&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.&lt;/p&gt;
		&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;thumbnails/image-one.jpg&quot; alt=&quot;Image One&quot; /&gt;&lt;/a&gt;
	&lt;/li&gt;
	&lt;li&gt;
		&lt;h3&gt;Image Two&lt;/h3&gt;
		&lt;span&gt;photos/image-two.jpg&lt;/span&gt;
		&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.&lt;/p&gt;
		&lt;img src=&quot;thumbnails/image-two.jpg&quot; alt=&quot;Image Two&quot; /&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>Each &#8220;li&#8221; above represents an image. The &#8220;h3&#8243; content becomes the title for the image and the &#8220;p&#8221; the description. The &#8220;span&#8221; content is the path to the fullsize image. If you want to link the image wrap an &#8220;a&#8221; tag around the &#8220;img&#8221; tag which is the thumbnail image.</p>
<p>The following are the parameters that can be set on the object&#8230; more complete documentation will follow soon. Default values are displayed as (10) and recommended values as [1-20].</p>
<p><strong>Images</strong></p>
<p>imgSpeed = int; (10)<br />
navOpacity = int; (25)<br />
navHover = int; (70)<br />
letterbox = &#8220;string&#8221;; (#000) required color for letterbox on portrait images<br />
link = &#8220;string&#8221;; class name for link hover state</p>
<p><strong>Auto Slideshow</strong></p>
<p>auto = boolean; (false)<br />
speed = int; (10)</p>
<p><strong>Information Dialog</strong></p>
<p>info = boolean; (true)<br />
infoID = &#8220;string&#8221;; required for information dialog<br />
infoSpeed = int; (10)</p>
<p><strong>Thumbnail Slider</strong></p>
<p>thumbs = &#8220;string&#8221;; id of thumbnail slider, disabled if not set<br />
scrollSpeed = int; [1-20] (5)<br />
thumbOpacity = int; [0-100] (70)<br />
active = &#8220;string&#8221;; required for thumbnail active border<br />
spacing = int; (5) spacing between thumbnails<br />
left = &#8220;string&#8221;; id of left navigation link, required for slider<br />
right = &#8220;string&#8221;; id of right navigation link, required for slider</p>
<p>Here is an example calling the script&#8230;</p>
<pre class="brush: jscript; title: ; notranslate">var slideshow=new TINY.slideshow(&quot;slideshow&quot;);
window.onload=function(){
slideshow.auto=true;
slideshow.speed=5;
slideshow.link=&quot;linkhover&quot;;
slideshow.info=&quot;information&quot;;
slideshow.thumbs=&quot;slider&quot;;
slideshow.left=&quot;slideleft&quot;;
slideshow.right=&quot;slideright&quot;;
slideshow.scrollSpeed=4;
slideshow.spacing=5;
slideshow.active=&quot;#fff&quot;;
slideshow.init('slideshow','image','imgprev','imgnext','imglink');
}</pre>
<p>The init function takes 5 parameters (id of the slideshow content placeholder, the id of the image placeholder, the id of the previous image placeholder, the id of the next image placeholder, the id of the image link placeholder).</p>
<p>This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the <a href="http://creativecommons.org/licenses/by/3.0/us/" target="_blank">creative commons license</a>. Community support is <a href="http://www.scriptiny.com/qa/">available here</a>. Paid support is also available, <a href="http://www.scriptiny.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.scriptiny.com/javascript-slideshow/" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://forum.leigeber.com/index.php?app=downloads&#038;showfile=6">Click here to download the source.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/12/javascript-slideshow/feed/</wfw:commentRss>
		<slash:comments>255</slash:comments>
		</item>
	</channel>
</rss>

