<?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; Design</title>
	<atom:link href="http://www.scriptiny.com/category/design/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>Horizontal JavaScript Accordion 1kb</title>
		<link>http://www.scriptiny.com/2008/05/horizontal-javascript-accordion-menu/</link>
		<comments>http://www.scriptiny.com/2008/05/horizontal-javascript-accordion-menu/#comments</comments>
		<pubDate>Mon, 26 May 2008 01:05:39 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[accordion]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=52</guid>
		<description><![CDATA[This versatile 1kb horizontal JavaScript accordion script can be used for menus, images, presentation content and more.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://sandbox.scriptiny.com/slidemenu/slidemenu.html" width="459" height="100" scrolling="no" frameborder="0" name="slide_menu"></iframe></p>
<p><iframe src="http://sandbox.scriptiny.com/slidemenu2/slidemenu.html" width="459" height="100" scrolling="no" frameborder="0" name="slide_menu_2"></iframe></p>
<p>This versatile 1kb horizontal accordion script can be used for menus, images, presentation content and more.  I had seen a similar looking feature on the <a href="http://www.mootools.net">mootools</a> homepage and set out the replicate the functionality as a standalone script and as lightweight as possible. The script will automatically adjust to the number of elements in the accordion and the dimensions of the accordion.</p>
<p>The front-end markup for the script is a simple unordered list as in the example below&#8230;</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul&gt;
	&lt;li&gt;&lt;img src=&quot;images/1.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src=&quot;images/2.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src=&quot;images/3.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;li&gt;&lt;img src=&quot;images/4.gif&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>To build the accordion call the function below onload&#8230;</p>
<pre class="brush: jscript; title: ; notranslate">slideMenu.build('sm',200,10,10,1)</pre>
<p>The first parameter is the id of the unordered list you would like to bind the accordion to. The second is the width you would like the accordion selection to expand to. The third is the timeout variable to control how quickly the sliding function is called. The fourth is the speed of the accordion with 1 being the fastest. The last is optional and is the integer that corresponds to the section you would like to be expanded when the accordion is loaded.</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://www.scriptiny.com/wp-content/uploads/2008/05/slidemenu.zip'>Click here to download the original script.</a></strong></p>
<p><strong><a href='http://www.scriptiny.com/wp-content/uploads/2008/05/slidemenu2.zip'>Click here to download the script that collapses onmouseout.</a></strong></p>
<p><strong>Update 5/26/2008</strong> &#8211; Removed a line of unnecessary code and resolved an issue with IE6.<br />
<strong>Update 5/26/2008</strong> &#8211; Tweaked width parsing code, thanks to realazy for the suggestion.<br />
<strong>Update 6/05/2008</strong> &#8211; Added download for version that reverts back the the uniform collapsed positions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/05/horizontal-javascript-accordion-menu/feed/</wfw:commentRss>
		<slash:comments>360</slash:comments>
		</item>
		<item>
		<title>Vertical Flyout JavaScript Menu</title>
		<link>http://www.scriptiny.com/2008/05/vertical-flyout-javascript-menu/</link>
		<comments>http://www.scriptiny.com/2008/05/vertical-flyout-javascript-menu/#comments</comments>
		<pubDate>Sat, 17 May 2008 06:06:07 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=49</guid>
		<description><![CDATA[This animated JavaScript flyout menu is clean and lightweight at only 1.6kb.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2008/05/flyout.jpg" alt="Flyout Menu" width="459" height="200" /></p>
<p>This animated JavaScript flyout menu is clean and lightweight at only 1.6kb. The script is based on the <strong><a href="http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/">post a few weeks ago</a></strong> of a horizontal dropdown menu. The markup is the same so visit the horizontal menu post for details.</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/flyout/flyout.html" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href='http://www.scriptiny.com/wp-content/uploads/2008/05/flyout.zip'>Click here to download the source.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/05/vertical-flyout-javascript-menu/feed/</wfw:commentRss>
		<slash:comments>146</slash:comments>
		</item>
		<item>
		<title>Dynamic Image Gallery and Slideshow</title>
		<link>http://www.scriptiny.com/2008/05/ajax-image-gallery-slideshow/</link>
		<comments>http://www.scriptiny.com/2008/05/ajax-image-gallery-slideshow/#comments</comments>
		<pubDate>Thu, 15 May 2008 18:11:05 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=43</guid>
		<description><![CDATA[This lightweight Ajax image gallery and slideshow script clocks in under 3kb packed with a number of cool features.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2008/05/slideshow.jpg" alt="Ajax Image Gallery" width="459" height="250" /></p>
<p><strong>The updated version of the script is <a href="http://www.scriptiny.com/2008/12/javascript-slideshow/">available here</a>.</strong></p>
<p>This extremely lightweight JavaScript image gallery and slideshow script clocks in under 3kb packed and includes a number of cool features. Recently I was looking for a nice existing script for a client project. I wanted something elegant, simple and lightweight. What I found were a number of scripts built on JavaScript frameworks and a few others that really lacked any appealing interface or were over  30kb. I challenged myself to build a full-featured slideshow gallery under 4kb. Hopefully I will be add a few more features to the script soon and make it a little mode user-friendly.</p>
<p>Here is an example of the markup&#8230;</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;gallery&quot;&gt;
&lt;div id=&quot;imagearea&quot;&gt;
&lt;div id=&quot;image&quot;&gt;
&lt;a href=&quot;javascript:slideShow.nav(-1)&quot; id=&quot;previmg&quot;&gt;&lt;/a&gt;
&lt;a href=&quot;javascript:slideShow.nav(1)&quot; id=&quot;nextimg&quot;&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;thumbwrapper&quot;&gt;
&lt;div id=&quot;thumbarea&quot;&gt;
&lt;ul id=&quot;thumbs&quot;&gt;
&lt;li value=&quot;1&quot;&gt;&lt;img src=&quot;thumbs/1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;2&quot;&gt;&lt;img src=&quot;thumbs/2.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;3&quot;&gt;&lt;img src=&quot;thumbs/3.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;4&quot;&gt;&lt;img src=&quot;thumbs/4.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;li value=&quot;5&quot;&gt;&lt;img src=&quot;thumbs/5.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p>The list section is the important element to the gallery. Each li has a value property that is set to the name of the full-size image. The interface is very flexible and can easily be altered in the HTML and CSS.</p>
<p>You will also need to setup the variables below and include the slideshow JavaScript&#8230;</p>
<pre class="brush: jscript; title: ; notranslate">var imgid = 'image'; // id of image div //
var imgdir = 'fullsize'; // full-size image directory //
var imgext = '.jpg'; // full-size image extension //
var thumbid = 'thumbs'; // id of the thumbnail container //
var auto = true; // automatic rotation toggle //
var autodelay = 5; // seconds before the image rotates //</pre>
<p>This script isn&#8217;t completely polished yet but I wanted to go ahead and get it out there for anyone that can put it to use. It 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/slideshow/" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://www.scriptiny.com/wp-content/uploads/2008/05/slideshow.zip">Click here to download the source.</a></strong></p>
<p><strong>Update 5/16/2008</strong> &#8211; Updated CSS and added outline:none for the next and previous links.<br />
<strong>Update 5/26/2008</strong> &#8211; Updated the CSS to resolve an issue with resizing the window in IE6. Thanks to Jon Stoski for reporting.<br />
<strong>Update 5/28/2008</strong> &#8211; Pushed script inside global namespace. Fixed a couple IE related bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/05/ajax-image-gallery-slideshow/feed/</wfw:commentRss>
		<slash:comments>302</slash:comments>
		</item>
		<item>
		<title>JavaScript Color Fading Script</title>
		<link>http://www.scriptiny.com/2008/05/javascript-color-fading-script/</link>
		<comments>http://www.scriptiny.com/2008/05/javascript-color-fading-script/#comments</comments>
		<pubDate>Sat, 03 May 2008 03:05:52 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[fade]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=36</guid>
		<description><![CDATA[This JavaScript color fading script allows for easy color transitions. Add fade effects to tables, divs and more. You can target an elements background, border or text color.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://sandbox.scriptiny.com/fader/fader2.html" width="459" height="114" scrolling="no" frameborder="0" name="js_fader"></iframe></p>
<p>This lightweight JavaScript allows for easy color transitions. Add fading effects to tables, divs and more. You can target an elements background, border or text color.</p>
<p>Below is the command to call the function.</p>
<pre class="brush: jscript; title: ; notranslate">colorFade('divid', 'background', 'ece7b4', 'f9bcbc', 25, 30)</pre>
<p>The first parameter is the id of the element you are targeting. The second is the property to fade which can be the background, border or text. The third is the hex value of the starting color. The third is the hex value to fade to. The fourth and fifth are both optional. The first is the the number of times to divide the color difference and the last is the transition speed.</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/fader/fader.html" target="_blank">Click here to view the demo.</a></strong></p>
<p><strong><a href='http://www.scriptiny.com/wp-content/uploads/2008/05/fader.zip'>Click here to download the script.</a></strong></p>
<p><strong>Update 5/5/2008</strong> &#8211; I have tweaked a few things and integrated some performance improvements based on Nate&#8217;s suggestions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/05/javascript-color-fading-script/feed/</wfw:commentRss>
		<slash:comments>89</slash:comments>
		</item>
		<item>
		<title>Dynamic JavaScript Form Validation</title>
		<link>http://www.scriptiny.com/2008/04/dynamic-inline-javascript-form-validation/</link>
		<comments>http://www.scriptiny.com/2008/04/dynamic-inline-javascript-form-validation/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 15:23:16 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[alerts]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=33</guid>
		<description><![CDATA[This lightweight JavaScript form validation script allows you to easily add attractive validation messages to your forms. There is no markup to add on your existing page since the divs and positioning are dynamically generated.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2008/04/msg_screenshot.gif" alt="Message Screenshot" width="459" height="185" /></p>
<p>This lightweight JavaScript form validation allows you to easily add attractive validation messages to your forms. There is no markup to add on your existing page. Just call the inlineMsg() function when you wish to display a message. The position of the form element (or any other element) is dynamically calculated.</p>
<p>Call the function as follows.</p>
<pre class="brush: jscript; title: ; notranslate">inlineMsg('name','You must enter your name.',2);</pre>
<p>The first parameter is the id of the element you wish to display the warning in relation to. The second is the string you wish to display in the message box. You can include HTML, just be sure and escape when necessary. The third parameter is the time to display the message in seconds. It is optional and if left empty will default to the MSGHIDE variable in the JavaScript which is initially set to 3.</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/messages/messages.html" target="_blank">Click here for the demo</a>.</strong></p>
<p><strong><a href="http://www.scriptiny.com/wp-content/uploads/2008/04/messages.zip">Click here to download the source.</a></strong></p>
<p><strong>Update 5/5/2008</strong> &#8211; Updated the script to focus to the erroneous textbox when displaying an alert. Thanks to mbh for the suggestion.<br />
<strong>Update 6/2/2008</strong> &#8211; Resolved issue with form field focus on non textbox fields. Added select dropdown to the demo and source.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/04/dynamic-inline-javascript-form-validation/feed/</wfw:commentRss>
		<slash:comments>155</slash:comments>
		</item>
		<item>
		<title>Sliding JavaScript Dropdown Menu</title>
		<link>http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/</link>
		<comments>http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 02:40:28 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://www.scriptiny.com/?p=30</guid>
		<description><![CDATA[This lightweight JavaScript drop down menu script allows you to easily add smooth transitioning dropdowns to your website. This can be used for navigation, dropdown lists, info panels, etc.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scriptiny.com/wp-content/uploads/2008/04/dropdown_menu.gif" alt="JavaScript Dropdown Menu" width="459" height="225" /></p>
<p>This script has been replaced by a new with multi-level support <strong><a href="http://www.scriptiny.com/2008/11/drop-down-menu/">here</a></strong>.</p>
<p>This lightweight JavaScript drop down menu script (~1.6kb) allows you to easily add smooth transitioning dropdowns to your website. This can be used for navigation, dropdown lists, info panels, etc. The script has been tested working in IE6, IE7, IE8, Firefox, Opera and Safari. The markup for the menu including the mouse events looks like the following.</p>
<pre class="brush: xml; title: ; notranslate">&lt;dl class=&quot;dropdown&quot;&gt;
&lt;dt id=&quot;one-ddheader&quot; onmouseover=&quot;ddMenu('one',1)&quot; onmouseout=&quot;ddMenu('one',-1)&quot;&gt;Dropdown One&lt;/dt&gt;
&lt;dd id=&quot;one-ddcontent&quot; onmouseover=&quot;cancelHide('one')&quot; onmouseout=&quot;ddMenu('one',-1)&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;underline&quot;&gt;Navigation Item 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;underline&quot;&gt;Navigation Item 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;underline&quot;&gt;Navigation Item 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;underline&quot;&gt;Navigation Item 4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Navigation Item 5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dl&gt;</pre>
<p>You can have as many dropdowns on one page as you like. Just be sure and have a unique naming scheme for each menu (i.e. one-ddheader, two-ddheader, etc). The &#8220;look and feel&#8221; is fully customizable though the CSS and you can replace the unordered list with any content you like if you are not looking for a menu.</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/dropdown/dropdown.html" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://www.scriptiny.com/wp-content/uploads/2008/04/dropdown.zip">Click here to download the source.</a></strong></p>
<p><strong><a href="http://www.scriptiny.com/2008/05/vertical-flyout-javascript-menu/">Click here for a vertical flyout version of this menu.</a></strong></p>
<p><strong><a href="http://sandbox.scriptiny.com/dropdown3/dropdown.html">By Request: Slideup version demo.</a></strong></p>
<p><strong>Update 4/28/2008</strong> &#8211; I have updated the HTML and CSS to use a definition list and an unordered list in lieu of the previous div-based layout. Thanks to Paul and Deigo for the suggestion.<br />
<strong>Update 4/28/2008</strong> &#8211; Fixed flicker issue in FF2 on Mac and &#8220;-1&#8243; error in IE when quickly moving from the menu to the browser. Thanks to Philip and Chris for reporting these.<br />
<strong>Update 5/16/2008</strong> &#8211; Optimized the code reducing size by ~15%.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/feed/</wfw:commentRss>
		<slash:comments>195</slash:comments>
		</item>
	</channel>
</rss>

