<?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; XHTML</title>
	<atom:link href="http://www.leigeber.com/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leigeber.com</link>
	<description>This web development blog features fresh articles on JavaScript, AJAX, CSS, XHTML, PHP, Photoshop and more.</description>
	<lastBuildDate>Sat, 13 Feb 2010 02:05:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ultimate JavaScript Slider and Scroller</title>
		<link>http://www.leigeber.com/2008/05/ultimate-javascript-scroller-and-slider/</link>
		<comments>http://www.leigeber.com/2008/05/ultimate-javascript-scroller-and-slider/#comments</comments>
		<pubDate>Wed, 07 May 2008 03:34:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[scroller]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.leigeber.com/?p=38</guid>
		<description><![CDATA[This versatile JavaScript slider and scroller script makes it easy to scroll text blocks, create slideshows, slide between content blocks, create tickers and more.]]></description>
			<content:encoded><![CDATA[<p>This versatile and lightweight JavaScript clocks in at less than 3.5kb unpacked. The above example is one of four scenarios I have demonstrated on the <a href="http://sandbox.leigeber.com/contentslider/slider.html" target="_blank">demo page</a>.</p>
<p>To setup a scroll/slide area create a container with the following CSS properties&#8230;</p>
<pre class="brush: css;">position:relative; overflow:hidden; height:XXXpx;</pre>
<p>Inside the scroll area container create another div that will house your actual content. It needs the positioned absolutely within the previous div. Each sliding or scrolling area on the page needs to have a unique ID for this div.</p>
<pre class="brush: css;">position:absolute;</pre>
<p>Inside the content div you can need to create a section for each area of content, be it 1 or 50. For each section after the &#8220;prefix-&#8221; numerate the order from 1 onwards. The prefix (ie section, newssection, imgsection, etc) needs to be unique to the current sliding/scrolling container&#8217;s sections.</p>
<pre class="brush: xml;">&lt;div id=&quot;section-1&quot; class=&quot;section&quot;&gt;&lt;/div&gt;</pre>
<p>You can call functions to incrementally scroll up or down, scroll to a particular section and initiate autoscroll/cancel the autoscroll. Take a look at the source code for examples. You might also consider dynamically adding some currently static CSS properties such as overflow:hidden and the height to allow for better degradation without JavaScript support.</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://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/contentslider/slider.html" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://www.leigeber.com/wp-content/uploads/2008/05/contentslider.zip">Click here to download the source.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leigeber.com/2008/05/ultimate-javascript-scroller-and-slider/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>Sliding JavaScript Dropdown Menu</title>
		<link>http://www.leigeber.com/2008/04/sliding-javascript-dropdown-menu/</link>
		<comments>http://www.leigeber.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.leigeber.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.leigeber.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.leigeber.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;">&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://forum.leigeber.com/">available here</a>. Paid support is also available, <a href="http://www.leigeber.com/contact/">contact me</a> for details.</p>
<p><strong><a href="http://sandbox.leigeber.com/dropdown/dropdown.html" target="_blank">Click here for the demo.</a></strong></p>
<p><strong><a href="http://www.leigeber.com/wp-content/uploads/2008/04/dropdown.zip">Click here to download the source.</a></strong></p>
<p><strong><a href="http://www.leigeber.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.leigeber.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.leigeber.com/2008/04/sliding-javascript-dropdown-menu/feed/</wfw:commentRss>
		<slash:comments>195</slash:comments>
		</item>
	</channel>
</rss>
