<?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>ProgAdv</title>
	<atom:link href="https://skinn3r.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://skinn3r.wordpress.com</link>
	<description>PHP and other programming languages</description>
	<lastBuildDate>Sat, 27 Feb 2016 09:56:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='skinn3r.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://secure.gravatar.com/blavatar/d83e7dec16e8abad236ae84972be4e7c?s=96&#038;d=https%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>ProgAdv</title>
		<link>https://skinn3r.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://skinn3r.wordpress.com/osd.xml" title="ProgAdv" />
	<atom:link rel='hub' href='https://skinn3r.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Growl Mail broken again with Mac OS X update 10.6.5</title>
		<link>https://skinn3r.wordpress.com/2010/11/16/growl-mail-broken-again-with-mac-os-x-update-10-6-5/</link>
		<comments>https://skinn3r.wordpress.com/2010/11/16/growl-mail-broken-again-with-mac-os-x-update-10-6-5/#respond</comments>
		<pubDate>Tue, 16 Nov 2010 09:09:56 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[Growl]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Growl Mail]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=267</guid>
		<description><![CDATA[Another Mac OS X update and Growl Mail is broken again. There are several sites on the internet that detail how to re-enable Growl Mail. I found one that scripts it with AppleScript which I find quite useful so I&#8217;m going to put it here as well. It is one of the comments on http://hints.macworld.com [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=267&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Another Mac OS X update and Growl Mail is broken again. </p>
<p>There are several sites on the internet that detail how to re-enable Growl Mail. I found one that scripts it with AppleScript which I find quite useful so I&#8217;m going to put it here as well.</p>
<p>It is one of the comments on <a href="http://hints.macworld.com/article.php?story=20100823103751355">http://hints.macworld.com</a> and thank you to the user tedw for coming up with it.</p>
<p>Here is the script:</p>
<pre class="brush: plain; title: ; notranslate">
tell application &quot;System Events&quot;
	-- recover uuids from Mail and framework info.plists
	set mailPlist to property list file &quot;/Applications/Mail.app/Contents/Info.plist&quot;
	set frameworkPlist to property list file &quot;/System/Library/Frameworks/Message.framework/Resources/Info.plist&quot;
	tell mailPlist
		set mailCompatUUID to the value of property list item &quot;PluginCompatibilityUUID&quot;
	end tell
	tell frameworkPlist
		set frameworkCompatUUID to the value of property list item &quot;PluginCompatibilityUUID&quot;
	end tell
	
	-- add to growlMail info,plist
	set growlmailPluginPaths to {&quot;~/Library/Mail/Bundles/&quot;, &quot;/Library/Mail/Bundles/&quot;, ¬
		&quot;~/Library/Mail/Bundles (Disabled)/&quot;, &quot;/Library/Mail/Bundles (Disabled)/&quot;}
	repeat with thisPath in growlmailPluginPaths
		-- run through possible locations looking for the growlMail bundle
		if exists disk item (thisPath &amp; &quot;GrowlMail.mailbundle&quot;) then
			set growlmailPlist to ¬
				property list file (thisPath &amp; &quot;GrowlMail.mailbundle/Contents/Info.plist&quot;)
			tell growlmailPlist
				tell property list item &quot;SupportedPluginCompatibilityUUIDs&quot;
					-- check to see if uids exist, and add them if they don't
					set uuidList to its value
					if uuidList does not contain mailCompatUUID then
						make new property list item at end of property list items ¬
							with properties {value:mailCompatUUID}
					end if
					if uuidList does not contain frameworkCompatUUID then
						make new property list item at end of property list items ¬
							with properties {value:frameworkCompatUUID}
					end if
				end tell
			end tell
			
			-- try to move bundle into bundles folder if it's in disabled folder
			if thisPath contains &quot;(Disabled)&quot; then
				set enabledPath to path of disk item (text 1 thru -13 of thisPath)
				try
					move disk item (thisPath &amp; &quot;GrowlMail.mailbundle&quot;) to alias enabledPath
				on error
					--something (possibly permissions) went wrong
					say &quot;Move failed&quot;
					set theFolderPath to path of disk item thisPath
					tell application &quot;Finder&quot;
						activate
						open folder theFolderPath
					end tell
				end try
			end if
			exit repeat
		end if
	end repeat
end tell
</pre><br />Filed under: <a href='https://skinn3r.wordpress.com/category/growl/'>Growl</a>, <a href='https://skinn3r.wordpress.com/category/mac-os-x/'>Mac OS X</a>, <a href='https://skinn3r.wordpress.com/category/tools/'>Tools</a> Tagged: <a href='https://skinn3r.wordpress.com/tag/growl-mail/'>Growl Mail</a>, <a href='https://skinn3r.wordpress.com/tag/mac-os-x/'>Mac OS X</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/267/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=267&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2010/11/16/growl-mail-broken-again-with-mac-os-x-update-10-6-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>
	</item>
		<item>
		<title>jCollapser v1.2.2</title>
		<link>https://skinn3r.wordpress.com/2010/06/16/jcollapser-v1-2-2/</link>
		<comments>https://skinn3r.wordpress.com/2010/06/16/jcollapser-v1-2-2/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 21:50:14 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=261</guid>
		<description><![CDATA[This is a quick update that a minor fix has been applied to jCollapser. This fix corrects the cookie naming to be RFC compliant, fixing an issue reported on plugins.jquery.com. New example page is here. Archive: jCollapser-1.2.2.tar.gzFiled under: JavaScript, jQuery Tagged: JavaScript, jQuery<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=261&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is a quick update that a minor fix has been applied to jCollapser.</p>
<p>This fix corrects the cookie naming to be RFC compliant, fixing an issue reported on plugins.jquery.com.</p>
<p>New example page is <a href="http://phalasz.gihub.com/jCollapser/">here</a>.<br />
Archive: <a href="http://github.com/downloads/phalasz/jCollapser/jCollapser-1.2.2.tar.gz">jCollapser-1.2.2.tar.gz</a></p><br />Filed under: <a href='https://skinn3r.wordpress.com/category/javascript/'>JavaScript</a>, <a href='https://skinn3r.wordpress.com/category/jquery/'>jQuery</a> Tagged: <a href='https://skinn3r.wordpress.com/tag/javascript/'>JavaScript</a>, <a href='https://skinn3r.wordpress.com/tag/jquery/'>jQuery</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/261/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=261&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2010/06/16/jcollapser-v1-2-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>
	</item>
		<item>
		<title>jStockTicker v1.1.1</title>
		<link>https://skinn3r.wordpress.com/2010/06/16/jstockticker-v1-1-1/</link>
		<comments>https://skinn3r.wordpress.com/2010/06/16/jstockticker-v1-1-1/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 19:30:23 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[stock ticker]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=256</guid>
		<description><![CDATA[This is just a quick update to the jStockTicker code. I have applied the fix suggested by Shay in the jStockticker v1.1 comments. New demo page here. Archive: jStockTicker-1.1.1.tar.gzFiled under: JavaScript, jQuery Tagged: JavaScript, jQuery, stock ticker<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=256&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is just a quick update to the jStockTicker code. I have applied the fix suggested by Shay in the jStockticker v1.1 comments.</p>
<p>New demo page <a href="http://phalasz.github.com/jStockTicker/">here</a>.<br />
Archive: <a href="http://github.com/downloads/phalasz/jStockTicker/jStockTicker-1.1.1.tar.gz">jStockTicker-1.1.1.tar.gz</a></p><br />Filed under: <a href='https://skinn3r.wordpress.com/category/javascript/'>JavaScript</a>, <a href='https://skinn3r.wordpress.com/category/jquery/'>jQuery</a> Tagged: <a href='https://skinn3r.wordpress.com/tag/javascript/'>JavaScript</a>, <a href='https://skinn3r.wordpress.com/tag/jquery/'>jQuery</a>, <a href='https://skinn3r.wordpress.com/tag/stock-ticker/'>stock ticker</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/256/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=256&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2010/06/16/jstockticker-v1-1-1/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>
	</item>
		<item>
		<title>Days between two dates</title>
		<link>https://skinn3r.wordpress.com/2009/07/25/day-between-two-dates/</link>
		<comments>https://skinn3r.wordpress.com/2009/07/25/day-between-two-dates/#respond</comments>
		<pubDate>Sat, 25 Jul 2009 10:24:38 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[Example]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[Sourcecode]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=250</guid>
		<description><![CDATA[Just a quick python function to calculate the days between two dates. It is really simple and easy :) And an example to use it: That&#8217;s it :)Posted in Example, Python, Source code Tagged: Python, Sourcecode<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=250&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Just a quick python function to calculate the days between two dates. It is really simple and easy :)</p>
<pre class="brush: python; title: ; notranslate">
import datetime

def date_diff_days(from_date=datetime.date.today(),to_date=datetime.date.today() ):
    return (to_date - from_date).days
</pre>
<p>And an example to use it:</p>
<pre class="brush: python; title: ; notranslate">
date1 = datetime.date(2009, 03, 26) 
date2 = datetime.date(2009, 07, 25) 

print date_diff_days( date1, date2 )
</pre>
<p>That&#8217;s it :)</p><br />Posted in Example, Python, Source code Tagged: Python, Sourcecode <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/250/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/250/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=250&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/07/25/day-between-two-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>
	</item>
		<item>
		<title>Absolute positioning and z-index in Internet Explorer 6</title>
		<link>https://skinn3r.wordpress.com/2009/07/19/absolute-positioning-and-z-index-in-internet-explorer-6/</link>
		<comments>https://skinn3r.wordpress.com/2009/07/19/absolute-positioning-and-z-index-in-internet-explorer-6/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 08:05:42 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[position: absolute]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=239</guid>
		<description><![CDATA[During my work I bumped into a silly little problem. Basically IE6 wouldn&#8217;t position one of the HTML elements correctly where as IE7 and the rest of the browsers I test with (Firefox, Safari) do. I googled around a lot to find the solution and an explanation to the problem. Below are my findings. The [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=239&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>During my work I bumped into a silly little problem. Basically IE6 wouldn&#8217;t position one of the HTML elements correctly where as IE7 and the rest of the browsers I test with (Firefox, Safari) do.</p>
<p>I googled around a lot to find the solution and an explanation to the problem. Below are my findings.</p>
<h2>The problem</h2>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;container&quot;&gt;
&lt;h1&gt;&lt;span&gt;title&lt;/span&gt;&lt;/h1&gt;
&lt;img src=&quot;/someimage.jpg&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
</pre>
<p>We want to position the &lt;h1&gt; element above the image. We do this by absolutely positioning it. We set position: relative for the container class and position: absolute for the &lt;h1&gt; tag. In firefox, safari and even in IE7 this works and positions the element as we want, but not in IE6.<br />
<span id="more-239"></span></p>
<h2>Explanation</h2>
<p>Found a nice forum thread about this problem here: <a href="http://csscreator.com/?q=node/19705" target="_blank">http://csscreator.com/?q=node/19705</a></p>
<blockquote><p>IE doesn&#8217;t stick to the standard for positioned element&#8217;s without z-index. Basically if you have a positioned element and no z-index, the standard says don&#8217;t create a new stacking context. IE does create a new stacking context. What this means in IE, is the children of a positioned element can only alter their z-index in relation to their parent. They can&#8217;t alter their layering with respect to other elements with a different parent.</p></blockquote>
<p>Z-index only works in the current stacking context. In standards compliant browsers you can sort of get a document wide stacking context by only setting z-index on the &#8220;leaves&#8221;.  Not in IE. Internet Explorer is always creating new stacking contexts which is like Firefox giving each element with position a z-index of 0.</p>
<p>So if we want to make it work in IE6 and standards compliant browsers, we need to go back in the DOM tree and find a place <em>(ancestors)</em> where the elements we want to set z-indexes for are siblings. Then give position: relative to those ancestors and apply appropriate z-index to them.</p>
<h2>One solution</h2>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;parent&quot; style=&quot;position:relative;&quot;&gt;
&lt;div id=&quot;image&quot; style=&quot;z-index: 1;&quot;&gt;&lt;img src=&quot;/someimage.jpg&quot; /&gt;&lt;/div&gt;
&lt;div id=&quot;header&quot; stlye=&quot;z-index: 10; position: absolute; left: 10px; top: 5px;&quot;&gt;
&lt;h1&gt;&lt;span&gt;Some text&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
<h3>More info:</h3>
<p><a href="http://www.w3.org/TR/CSS21/zindex.html">Appendix E. Elaborate description of Stacking Contexts</a></p>
<p><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r Absolute positioning and z-index in Internet Explorer 6 http://bit.ly/uCqDK"><img title="Twit This!" src="https://skinn3r.files.wordpress.com/2009/02/twitter2.png?w=595" alt="" /></a><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r Absolute positioning and z-index in Internet Explorer 6 http://bit.ly/uCqDK">Twit This Post!</a></p><br />Posted in (X)HTML, Source code Tagged: DOM, Example, IE6, position: absolute, Source code, z-index <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/239/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/239/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=239&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/07/19/absolute-positioning-and-z-index-in-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>

		<media:content url="https://skinn3r.files.wordpress.com/2009/02/twitter2.png" medium="image">
			<media:title type="html">Twit This!</media:title>
		</media:content>
	</item>
		<item>
		<title>Examples</title>
		<link>https://skinn3r.wordpress.com/2009/04/12/examples/</link>
		<comments>https://skinn3r.wordpress.com/2009/04/12/examples/#respond</comments>
		<pubDate>Sun, 12 Apr 2009 09:53:17 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[Example]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[Demos]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=236</guid>
		<description><![CDATA[This is just a quick update. I finally got around to find a place for live demos. You can find the links on the Examples page.Posted in Example, Source code Tagged: Demos, Examples, Links<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=236&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This is just a quick update. I finally got around to find a place for live demos.</p>
<p>You can find the links on the <a title="Code demonstrations" href="https://skinn3r.wordpress.com/demos/" target="_self">Examples</a> page.</p><br />Posted in Example, Source code Tagged: Demos, Examples, Links <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/236/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=236&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/04/12/examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>
	</item>
		<item>
		<title>jMover v1.2</title>
		<link>https://skinn3r.wordpress.com/2009/03/16/jmover-v12/</link>
		<comments>https://skinn3r.wordpress.com/2009/03/16/jmover-v12/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:24:09 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[Example]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jMover]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=222</guid>
		<description><![CDATA[I have updated my jMover jQuery plugin to version 1.2. The new version includes moving all the elements between the 2 select boxes, auto creation of the select boxes and the buttons and automatically binding the click event handlers. The plugin now has a couple of default settings. There are naming conventions for the buttons. [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=222&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have updated my jMover jQuery plugin to version 1.2. The new version includes moving all the elements between the 2 select boxes, auto creation of the select boxes and the buttons and automatically binding the click event handlers.</p>
<p><span id="more-222"></span></p>
<p>The plugin now has a couple of default settings. There are naming conventions for the buttons. So if you create the select boxes and the buttons yourself please follow the example below. Replace the <em>&#8220;example&#8221;</em> string with the container name of your choice.</p>
<pre class="brush: xml; title: ; notranslate">
        &lt;fieldset id=&quot;example&quot; class=&quot;example&quot;&gt;
            &lt;legend&gt;jquery.jmover-1.2.js&lt;/legend&gt;            
            &lt;div id=&quot;left_select&quot; class=&quot;leftSelect&quot;&gt;
                &lt;label&gt;Select 1&lt;/label&gt;
                &lt;select class=&quot;source&quot; id=&quot;not_selected&quot; name=&quot;not_selected&quot; size=&quot;15&quot; multiple=&quot;multiple&quot;&gt;
                    &lt;option value=&quot;1&quot;&gt;One&lt;/option&gt;
                    &lt;option value=&quot;2&quot;&gt;Two&lt;/option&gt;
                    &lt;option value=&quot;3&quot;&gt;Three&lt;/option&gt;
                &lt;/select&gt;
            &lt;/div&gt;
            &lt;div class=&quot;selectButtons&quot;&gt;
                &lt;p&gt;
                    &lt;span id=&quot;exampleRightAll&quot;&gt;
                        &lt;a&gt;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;&lt;/a&gt;
                    &lt;/span&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;span id=&quot;exampleRightSelect&quot;&gt;
                        &lt;a&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/a&gt;
                    &lt;/span&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;span id=&quot;exampleLeftSelect&quot;&gt;
                        &lt;a&gt;&amp;nbsp;&amp;lt;&amp;nbsp;&lt;/a&gt;
                    &lt;/span&gt;
                &lt;/p&gt;
                &lt;p&gt;
                    &lt;span id=&quot;exampleLeftAll&quot;&gt;
                        &lt;a&gt;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&lt;/a&gt;
                    &lt;/span&gt;
                &lt;/p&gt;
            &lt;/div&gt;
            &lt;div id=&quot;right_select&quot; class=&quot;rightSelect&quot;&gt;
                &lt;label&gt;Select 2&lt;/label&gt;
                &lt;select class=&quot;target&quot; id=&quot;selected&quot; name=&quot;selected&amp;#91;&amp;#93;&quot; size=&quot;15&quot; multiple=&quot;multiple&quot;&gt;
                &lt;/select&gt;
            &lt;/div&gt;
        &lt;/fieldset&gt;
</pre>
<p>The above snippet is from the example page included in the zip archive.</p>
<p>Now let&#8217;s have a look at the plugin&#8217;s code.</p>
<pre class="brush: jscript; title: ; notranslate">
/**
 * This handy little plugin allows the user to move items between 2 list boxes.
 * 
 * @package jMover
 * @author Peter Halasz &lt;skinn3r@gmail.com&gt;
 * @license http://www.gnu.org/licenses/gpl-3.0.txt GPL v3.0
 * @copyright (c) 2008 - 2009, Peter Halasz all rights reserved
 */
(function($) {
	
	$.fn.jmover = function(options) {
		if(options == null)
			options = {};
		
		var settings = $.extend({}, $.fn.jmover.defaults, options);
		
		switch(settings.action) {
			case 'init':
				$.fn.jmover.init(this, settings);
		}
	}
	
	/**
	 * Initialize the thing.
	 * 
	 */
	$.fn.jmover.init = function(element, options) {
		
		/**
		 * Should we create the empty skeleton for the mover and 
		 * the another script will fill it up later on
		 */
		if(options.create)
			this.createMover(element, options);
		
		/**
		 *  Set up the click bindings.
		 *  
		 *   Naming convention is that the buttons id's are made up from
		 *   the container's ID and the text 'RightSelect', 'RightAll',
		 *   'LeftSelect', 'LeftAll'
		 *   
		 *   &lt;example&gt;
		 *   	&lt;span id=&quot;exampleRightSelect&quot;&gt;
		 *   	...
		 *   	&lt;/span&gt;
		 *   &lt;/example&gt;
		 */
		var $moveRightSelect = element.selector + 'RightSelect';
		var $moveRightAll = element.selector + 'RightAll';
		var $moveLeftSelect = element.selector + 'LeftSelect';
		var $moveLeftAll = element.selector + 'LeftAll';
		
		/* Set the click handlers */
		$($moveRightSelect).bind('click', {to: options.targetID, from: options.sourceID}, this.moveSelected);
		$($moveRightAll).bind('click', {to: options.targetID, from: options.sourceID}, this.moveAll);
		$($moveLeftSelect).bind('click', {to: options.sourceID, from: options.targetID}, this.moveSelected);
		$($moveLeftAll).bind('click', {to: options.sourceID, from: options.targetID}, this.moveAll);
		
	};

	$.fn.jmover.createMover = function(element, options) {
		/**
		 * Arguments for the &quot;source&quot; select html tag.
		 */
		var $sourceArgs = 'id=&quot;' + options.sourceID +'&quot;' +
					  ' multiple=&quot;multiple&quot; size=' + options.size +
					  ' name=&quot;' + options.sourceID + '[]&quot;'
		/**
		 * Arguments for the &quot;target&quot; select html tag.
		 */
		var $targetArgs = 'id=&quot;' + options.targetID + '&quot;' +
					  ' multiple=&quot;multiple&quot; size=' + options.size +
					  ' name=&quot;' + options.targetID + '[]&quot;';
		
		/**
		 * IDs of the move buttons.
		 */
		var $moveRightSelect = element.get(0).id + 'RightSelect';
		var $moveRightAll = element.get(0).id + 'RightAll';
		var $moveLeftSelect = element.get(0).id + 'LeftSelect';
		var $moveLeftAll = element.get(0).id + 'LeftAll';
		
		/* source select field */
		element.append('&lt;div class=&quot;leftSelect&quot; id=&quot;' + options.fromID + '&quot;&gt;&lt;/div&gt;');
		var $source = $(element.selector + ' .leftSelect')
		$source.append('&lt;label for=&quot;' + options.sourceID + '&quot;&gt;'+ options.fromLabel +'&lt;/label&gt;');
		$source.append('&lt;select class=&quot;source&quot; ' + $sourceArgs + '&gt;&lt;/select&gt;');
		
		/* mover buttons */
		element.append('&lt;div class=&quot;selectButtons&quot;&gt;&lt;/div&gt;');
		var $buttonContainer = $(element.selector + ' .selectButtons');
		$buttonContainer.append('&lt;p&gt;' +
		        				'&lt;span id=&quot;' + $moveRightAll + '&quot;&gt;' +
		        				'&lt;a&gt;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;&lt;/a&gt;' +
		        				'&lt;/span&gt;' +
	        					'&lt;/p&gt;');
		
		$buttonContainer.append('&lt;p&gt;' +
				'&lt;span id=&quot;' + $moveRightSelect + '&quot;&gt;' +
				'&lt;a&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/a&gt;' +
				'&lt;/span&gt;' +
				'&lt;/p&gt;');
		
		$buttonContainer.append('&lt;p&gt;' +
				'&lt;span id=&quot;' + $moveLeftSelect + '&quot;&gt;' +
				'&lt;a&gt;&amp;nbsp;&amp;lt;&amp;nbsp;&lt;/a&gt;' +
				'&lt;/span&gt;' +
				'&lt;/p&gt;');
		
		$buttonContainer.append('&lt;p&gt;' +
				'&lt;span id=&quot;' + $moveLeftAll + '&quot;&gt;' +
				'&lt;a&gt;&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;&lt;/a&gt;' +
				'&lt;/span&gt;' +
				'&lt;/p&gt;');
		
		/* target select field */
		element.append('&lt;div class=&quot;rightSelect&quot; id=&quot;' + options.toID + '&quot;&gt;&lt;/div&gt;');
		var $target = $(element.selector + ' .rightSelect')
		$target.append('&lt;label for=&quot;' + options.targetID + '&quot;&gt;'+ options.toLabel +'&lt;/label&gt;');
		$target.append('&lt;select class=&quot;target&quot; ' + $targetArgs + '&gt;&lt;/select&gt;');
	};
	
	/**
	 * Moves selected options from the DOM element specified in the 'from'
	 * argument to the DOM element specified by the 'to' argument.
	 * 
	 * @access public
	 * @param string to The ID of the select box we want to move elements to
	 * @param string from The ID of the select box we want to move elements from
	 * @return void
	 */
	$.fn.jmover.moveSelected = function(args) {
		jQuery.each($(&quot;#&quot; + args.data.from + &quot; option:selected&quot;), function() {
			$(&quot;#&quot; + args.data.to).append(this);
		});
	};
	
	/**
	 * Moves all options from the DOM element specified in the 'from'
	 * argument to the DOM element specified by the 'to' argument.
	 * 
	 * @access public
	 * @param string to The ID of the select box we want to move elements to
	 * @param string from The ID of the select box we want to move elements from
	 * @return void
	 */
	$.fn.jmover.moveAll = function(args) {
		jQuery.each($(&quot;#&quot; + args.data.from + &quot; option&quot;), function() {
			$(&quot;#&quot; + args.data.to).append(this);
		});
	}
	
	/**
	 * Plugin defaults.
	 * 
	 * @access public
	 */
	$.fn.jmover.defaults = {
			/**
			 * The ID of the source field container.
			 * Needed for auto creation
			 * 
			 * @var string
			 */
			toID: 'to',
			/**
			 * The label of the source field container.
			 * Needed for auto creation
			 * 
			 * @var string
			 */
			toLabel: 'Target',
			/**
			 * The ID of the target field container.
			 * Needed for auto creation
			 * 
			 * @var string
			 */
			fromID: 'from',
			/**
			 * The label of the target field container.
			 * Needed for auto creation
			 * 
			 * @var string
			 */
			fromLabel: 'Source',
			/**
			 * The ID of the source select field
			 * 
			 * @var string
			 */
			sourceID: 'exampleSource',
			/**
			 * The ID of the target select field
			 * 
			 * @var string
			 */
			targetID: 'exampleTarget',
			/**
			 * Size of the select fields
			 * 
			 * @var integer
			 */
			size: 15,
			/**
			 * Auto create the mover elements
			 * 1 - Yes
			 * 0 - No
			 * 
			 * @var integer
			 */
			create: 1,
			/**
			 * The action we want to do.
			 * 
			 * @var string
			 */
			action: null
	};
})(jQuery);
</pre>
<p>To initialize the plugin one could use the example code:</p>
<pre class="brush: jscript; title: ; notranslate">
    $(function() {
        $(&quot;#example&quot;).jmover({
            action: 'init',
            create: 0,
            sourceID: 'not_selected',
            targetID: 'selected'
            });
    });
</pre>
<p>Use the CSS from the included .css file.</p>
<p>The plugin can be downloaded from <a href="http://progadv.googlecode.com/files/jMover-1.2.1.zip">here</a>.<br />
It requires <a href="http://docs.jquery.com/Downloading_jQuery">jQuery 1.3.x</a></p>
<p>Comments and feedback is welcome.</p>
<p>
<a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r jMover v1.2 http://tinyurl.com/culmky"><img title="Twit This!" src="https://skinn3r.files.wordpress.com/2009/02/twitter2.png?w=595" /></a><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r jMover v1.2 http://tinyurl.com/culmky">Twit This Post!</a></p><br />Posted in Example, JavaScript, jQuery Tagged: JavaScript, jMover, jQuery <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/222/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=222&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/03/16/jmover-v12/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>

		<media:content url="https://skinn3r.files.wordpress.com/2009/02/twitter2.png" medium="image">
			<media:title type="html">Twit This!</media:title>
		</media:content>
	</item>
		<item>
		<title>jStockTicker (a jQuery Stock Ticker made easy) v1.1</title>
		<link>https://skinn3r.wordpress.com/2009/03/13/jstockticker-a-jquery-stock-ticker-made-easy-v11/</link>
		<comments>https://skinn3r.wordpress.com/2009/03/13/jstockticker-a-jquery-stock-ticker-made-easy-v11/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 11:02:56 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=218</guid>
		<description><![CDATA[[Update] Fixed source can be found here. Thanks to Shay and Julien. I&#8217;ve been digging through my old work and found a nice javascript plugin that created a Stock Ticker. It made a good candidate to port it to jQuery. So the jStockTicker plugin was born. Basically it works with animating a div containing a [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=218&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>[Update] Fixed source can be found <a href="https://skinn3r.wordpress.com/2010/06/16/jstockticker-v1-1-1/">here</a>. Thanks to Shay and Julien.</strong></p>
<p>I&#8217;ve been digging through my old work and found a nice javascript plugin that created a Stock Ticker. It made a good candidate to port it to jQuery.</p>
<p>So the jStockTicker plugin was born.</p>
<p>Basically it works with animating a div containing a sequence of spans. As soon as the second visible span reaches the edge of the visible area, the first span is appended to the end of the list.</p>
<p><span id="more-218"></span></p>
<p>Lets look at the plugin it self:</p>
<pre class="brush: jscript; title: ; notranslate">
/**
 * Horizontal Stock Ticker for jQuery.
 *
 * @package jStockTicker
 * @author Peter Halasz &lt;skinner@gmail.com&gt;
 * @license http://www.gnu.org/licenses/gpl-3.0.txt GPL v3.0
 * @copyright (c) 2009, Peter Halasz all rights reserved.
 */
( function($) {

	$.fn.jStockTicker = function(options) {

		if (typeof (options) == 'undefined') {
			options = {};
		}

		var settings = $.extend( {}, $.fn.jStockTicker.defaults, options);

		var $ticker = $(this);

		settings.tickerID = $ticker[0].id;

		$.fn.jStockTicker.settings[settings.tickerID] = {};

		var $wrap = null;

		if ($ticker.parent().get(0).className != 'wrap') {
			$wrap = $ticker.wrap(&quot;&lt;div class='wrap'&gt;&lt;/div&gt;&quot;);
		}

		var $tickerContainer = null;

		if ($ticker.parent().parent().get(0).className != 'container') {
			$tickerContainer = $ticker.parent().wrap(
					&quot;&lt;div class='container'&gt;&lt;/div&gt;&quot;);
		}

		var node = $ticker[0].firstChild;
		var next;

		while(node) {
			next = node.nextSibling;
			if(node.NodeType == 3) {
				$ticker[0].removeChild(node);
			}
			node = next;
		}

		var shiftLeftAt = $ticker.children().get(0).offsetWidth;

		$.fn.jStockTicker.settings[settings.tickerID].shiftLeftAt = shiftLeftAt;
		$.fn.jStockTicker.settings[settings.tickerID].left = 0;
		$.fn.jStockTicker.settings[settings.tickerID].runid = null;

		$ticker.width(2 * screen.availWidth);

		function startTicker() {
			stopTicker();

			var params = $.fn.jStockTicker.settings[settings.tickerID];
			params.left -= settings.speed;
			if(params.left &lt;= params.shiftLeftAt * -1) {
				params.left = 0;
				$ticker.append($ticker.children().get(0));
				params.shiftLeftAt = $ticker.children().get(0).offsetWidth;
			}

			$ticker.css('left', params.left + 'px');
			params.runId = setTimeout(arguments.callee, settings.interval);

			$.fn.jStockTicker.settings[settings.tickerID] = params;
		}

		function stopTicker() {
			var params = $.fn.jStockTicker.settings[settings.tickerID];
			if (params.runId)
			    clearTimeout(params.runId);

			params.runId = null;

			$.fn.jStockTicker.settings[settings.tickerID] = params;
		}

		function updateTicker() {

			stopTicker();
			startTicker();
		}

		$ticker.hover(stopTicker,startTicker);

		startTicker();
	};

	$.fn.jStockTicker.settings = {};

	$.fn.jStockTicker.defaults = {
		tickerID :null,
		url :null,
		speed :1,
		interval :20
	};
})(jQuery);
</pre>
<p>The plugin has a few defaults set and in future version will allow dynamic updating of ticker data  through AJAX.</p>
<p>What you need to do is place the spans into a div and call the jQuery plugin in the ready function like this:</p>
<pre class="brush: plain; title: ; notranslate">
    $(function() {
        $(&quot;#ticker&quot;).jStockTicker({interval: 45});
    });
</pre>
<p>And that&#8217;s it.</p>
<p>The example HTML page:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;title&gt;jStockTicker Demo page&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.jstockticker-1.1.js&quot;&gt;&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
    $(function() {
        $(&quot;#ticker&quot;).jStockTicker({interval: 45});
    });
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
div#examplePage {
    color: #000;
    font-family: Verdana, Arial, Helvetica, San-serif;
    font-size: x-small;
    text-align: left;
    width: 760px;
    margin: 0 auto;
    padding: 0;
}

h1 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 10px 0 5px;
}

div#example {
    background: #c3c1c1 none repeat-x scroll left top;
    width: 740px;
    margin: 20px 0 3px;
}

div#example h3 {
    font-size: xx-small;
    font-style: italic;
    padding: 0;
    margin: 0 10px 0;
    line-height: 14px;
}

.container {
    background: #fff none;
    border: 1px solid #000;
    height: 30px;
    margin: 0 auto;
    width: 735px;
}

.container .wrap {
    width: 720px;
    left: 10px;
    top: 10px;
    overflow: hidden;
    position: relative;
    line-height: normal;
    font-size-adjust: none;
}

/**
 * Stock Ticker styling
 */
div.stockTicker {
    font-family: Verdana, Arial, Helvetica, San-serif;
    font-size: x-small;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
}

div.stockTicker span {
    margin: 0 10px 0;
}

div.stockTicker span.up {
    color: green;
    padding-left: 2px;
}

div.stockTicker span.down {
    color: red;
    margin: 0;
    padding-left: 10px;
}

div.stockTicker span.eq {
    margin: 0;
    padding-left: 10px;
}

div.stockTicker span.quote {
    margin: 0;
    font-weight: bold;
    padding-left: 10px;
}

&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;examplePage&quot;&gt;
    &lt;h1&gt;jStockTicker (a jQuery Stock Ticker made easy) v1.0&lt;/h1&gt;
    &lt;p&gt;&lt;b&gt;What is jStockTicker?&lt;/b&gt; It is a jQuery plugin to create a horizontally scrolling Stock Ticker&lt;/p&gt;
    &lt;div id=&quot;example&quot;&gt;
        &lt;h3&gt;jquery.jStockTicker-1.1.js&lt;/h3&gt;

                &lt;div id=&quot;ticker&quot; class=&quot;stockTicker&quot;&gt;
                    &lt;span class=&quot;quote&quot;&gt;Stock Quotes: &lt;/span&gt;
                    &lt;span class=&quot;up&quot;&gt;&lt;span class=&quot;quote&quot;&gt;ABC&lt;/span&gt; 1.543 0.2%&lt;/span&gt;
                    &lt;span class=&quot;down&quot;&gt;&lt;span class=&quot;quote&quot;&gt;SDF&lt;/span&gt; 12.543 -0.74%&lt;/span&gt;
                    &lt;span class=&quot;up&quot;&gt;&lt;span class=&quot;quote&quot;&gt;JDF&lt;/span&gt; 34.543 5.2%&lt;/span&gt;
                    &lt;span class=&quot;up&quot;&gt;&lt;span class=&quot;quote&quot;&gt;ERA&lt;/span&gt; 123.234 1.2%&lt;/span&gt;
                    &lt;span class=&quot;down&quot;&gt;&lt;span class=&quot;quote&quot;&gt;DFF&lt;/span&gt; 20.543 -5.2%&lt;/span&gt;
                    &lt;span class=&quot;eq&quot;&gt;&lt;span class=&quot;quote&quot;&gt;CBX&lt;/span&gt; 523.234 0.0%&lt;/span&gt;
                    &lt;span class=&quot;down&quot;&gt;&lt;span class=&quot;quote&quot;&gt;IZF&lt;/span&gt; 89.65 -3.4%&lt;/span&gt;
                    &lt;span class=&quot;up&quot;&gt;&lt;span class=&quot;quote&quot;&gt;KJG&lt;/span&gt; 456.64 0.318%&lt;/span&gt;
                    &lt;span class=&quot;up&quot;&gt;&lt;span class=&quot;quote&quot;&gt;QWE&lt;/span&gt; 6413.123 0.012%&lt;/span&gt;
                    &lt;span class=&quot;eq&quot;&gt;&lt;span class=&quot;quote&quot;&gt;CVN&lt;/span&gt; 6.3 0.0%&lt;/span&gt;
                    &lt;span class=&quot;down&quot;&gt;&lt;span class=&quot;quote&quot;&gt;UIT&lt;/span&gt; 74.543 -0.321%&lt;/span&gt;
                &lt;/div&gt;

    &lt;/div&gt;
    &lt;p class=&quot;credits&quot;&gt;
    Code and design by Peter Halasz.
    &lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>The plug in requires jQuery which you can find <a href="http://docs.jquery.com/Release:jQuery_1.3.2">here</a>.<br />
The archive containing the plugin can be found here: <a href="http://progadv.googlecode.com/files/jStockTicker-1.1.zip">jStockTicker-1.1.zip</a>.</p>
<p>You have any questions or comments? Post them here :)</p>
<p><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r jStockTicker (a jQuery Stock Ticker made easy) v1.1 http://tinyurl.com/atpuqq"><img title="Twit This!" src="https://skinn3r.files.wordpress.com/2009/02/twitter2.png?w=595" alt="" /></a><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r jStockTicker (a jQuery Stock Ticker made easy) v1.1 http://tinyurl.com/atpuqq">Twit This Post!</a></p><br />Posted in (X)HTML, Example, JavaScript, jQuery, Uncategorized Tagged: JavaScript, jQuery <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/218/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=218&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/03/13/jstockticker-a-jquery-stock-ticker-made-easy-v11/feed/</wfw:commentRss>
		<slash:comments>66</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>

		<media:content url="https://skinn3r.files.wordpress.com/2009/02/twitter2.png" medium="image">
			<media:title type="html">Twit This!</media:title>
		</media:content>
	</item>
		<item>
		<title>jCollapser example</title>
		<link>https://skinn3r.wordpress.com/2009/03/10/jcollapser-example/</link>
		<comments>https://skinn3r.wordpress.com/2009/03/10/jcollapser-example/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 08:51:11 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=210</guid>
		<description><![CDATA[I&#8217;ve got a few requests to post example code to show how to use the new version of the jCollapser plugin. So here we go :) This example can be found in the zip archive as well as jcollapser.html. So the source for an example html page looks like the following: You could use php [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=210&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve got a few requests to post example code to show how to use the new version of the jCollapser plugin.</p>
<p>So here we go :)<br />
<span id="more-210"></span></p>
<p>This example can be found in the zip archive as well as jcollapser.html.</p>
<p>So the source for an example html page looks like the following:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;title&gt;jCollapser Demo page&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.jcollapser-1.2.1.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.cookie.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    $(function() {
        $(&quot;#example1&quot;).jcollapser({target: '#jcollapse1', state: 'expanded'});
        $(&quot;#example2&quot;).jcollapser({target: '#jcollapse2', state: 'collapsed'});
    });
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.collapse {
    background: transparent url('./collapse.gif') no-repeat scroll 0% 0%;
    height: 11px;
    position: relative;
    
    width: 11px;
}

.expand {
    background:transparent url('./expand.gif') no-repeat scroll 0% 0%;
    display:none;
    height:11px;
    position:relative;
    
    width:11px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div&gt;
    &lt;fieldset id=&quot;example1&quot;&gt;
    &lt;div class=&quot;collapse&quot; &gt;&lt;/div&gt;
    &lt;div class=&quot;expand&quot; &gt;&lt;/div&gt;
    &lt;div id=&quot;jcollapse1&quot;&gt;
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam arcu ante, pellentesque quis, rhoncus et, molestie in, lacus. Phasellus id purus id enim malesuada dictum. Maecenas tellus magna, tristique at, ultrices mollis, rhoncus id, sapien. Sed volutpat est ut magna. Nulla facilisi. Curabitur lacus diam, semper vitae, convallis sodales, adipiscing convallis, leo. Nulla dictum dignissim ligula. In posuere. In eleifend elit eget sapien. Suspendisse eget eros eget pede facilisis aliquam. Etiam rhoncus. Nullam quis tellus eget orci placerat aliquet.
    &lt;/div&gt;
    &lt;/fieldset&gt; 
&lt;/div&gt;
&lt;div&gt;
    &lt;fieldset id=&quot;example2&quot;&gt;
    &lt;div class=&quot;collapse&quot; &gt;&lt;/div&gt;
    &lt;div class=&quot;expand&quot; &gt;&lt;/div&gt;
    &lt;div id=&quot;jcollapse2&quot;&gt;
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam arcu ante, pellentesque quis, rhoncus et, molestie in, lacus. Phasellus id purus id enim malesuada dictum. Maecenas tellus magna, tristique at, ultrices mollis, rhoncus id, sapien. Sed volutpat est ut magna. Nulla facilisi. Curabitur lacus diam, semper vitae, convallis sodales, adipiscing convallis, leo. Nulla dictum dignissim ligula. In posuere. In eleifend elit eget sapien. Suspendisse eget eros eget pede facilisis aliquam. Etiam rhoncus. Nullam quis tellus eget orci placerat aliquet.
    &lt;/div&gt;
    &lt;/fieldset&gt; 
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>You could use php to generate the contents as well. The data can come from a database or from anywhere.<br />
In this php example I&#8217;m using a simple for loop to create 5 collapsable elements.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;'; ?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;title&gt;jCollapser Demo page&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.jcollapser-1.2.1.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.cookie.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(function() {
&lt;?php
    /* Create initialize multiple elements. */
    $state = 'expanded';    

    for($i = 1; $i &lt;= 5; $i++) {
        $state = $state == 'expanded' ? 'collapsed' : 'expanded';
        ?&gt;
        $(&quot;#&lt;?php echo $i; ?&gt;&quot;).jcollapser({target: '#t_&lt;?php echo $i; ?&gt;', state: '&lt;?php echo $state; ?&gt;'});
        &lt;?php
    }
?&gt;
});
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
.collapse {
    background: transparent url('./collapse.gif') no-repeat scroll 0% 0%;
    height: 11px;
    position: relative;
    
    width: 11px;
}

.expand {
    background:transparent url('./expand.gif') no-repeat scroll 0% 0%;
    display:none;
    height:11px;
    position:relative;
    
    width:11px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
    for($i = 1; $i &lt;= 5; $i++) {
        ?&gt;
&lt;div&gt;
    &lt;fieldset id=&quot;&lt;?php echo $i; ?&gt;&quot;&gt;
    &lt;div class=&quot;collapse&quot; &gt;&lt;/div&gt;
    &lt;div class=&quot;expand&quot; &gt;&lt;/div&gt;
    &lt;div id=&quot;t_&lt;?php echo $i; ?&gt;&quot;&gt;
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam arcu ante, pellentesque quis, rhoncus et, molestie in, lacus. Phasellus id purus id enim malesuada dictum. Maecenas tellus magna, tristique at, ultrices mollis, rhoncus id, sapien. Sed volutpat est ut magna. Nulla facilisi. Curabitur lacus diam, semper vitae, convallis sodales, adipiscing convallis, leo. Nulla dictum dignissim ligula. In posuere. In eleifend elit eget sapien. Suspendisse eget eros eget pede facilisis aliquam. Etiam rhoncus. Nullam quis tellus eget orci placerat aliquet.
    &lt;/div&gt;
    &lt;/fieldset&gt; 
&lt;/div&gt;
        &lt;?php
    }
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>More on the jCollapser plugin can be found in my previous posts <a href="https://skinn3r.wordpress.com/2009/03/09/jcollapser-v12/">here</a> and <a href="https://skinn3r.wordpress.com/2009/03/05/jcollapser-plugin-to-support-multiple-collapse-elements-on-one-page/">here</a>.</p>
<p>You have any questions or comments? Post them here :)</p>
<p>
<a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r jCollapser example http://tinyurl.com/c5udca"><img title="Twit This!" src="https://skinn3r.files.wordpress.com/2009/02/twitter2.png?w=595" /></a><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r jCollapser example http://tinyurl.com/c5udca">Twit This Post!</a></p><br />Posted in (X)HTML, Example, JavaScript, jQuery Tagged: Example, HTML, JavaScript, jQuery <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/210/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=210&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/03/10/jcollapser-example/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>

		<media:content url="https://skinn3r.files.wordpress.com/2009/02/twitter2.png" medium="image">
			<media:title type="html">Twit This!</media:title>
		</media:content>
	</item>
		<item>
		<title>[Update new version v1.2.2] jCollapser v1.2</title>
		<link>https://skinn3r.wordpress.com/2009/03/09/jcollapser-v12/</link>
		<comments>https://skinn3r.wordpress.com/2009/03/09/jcollapser-v12/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 07:01:21 +0000</pubDate>
		<dc:creator><![CDATA[Peter Halasz]]></dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jCollapser]]></category>

		<guid isPermaLink="false">http://skinn3r.wordpress.com/?p=205</guid>
		<description><![CDATA[[UPDATE #2] New version more info here. New version of the jQuery plugin jCollapser. See change log for changes. Source can be found here. Latest development source can be found in the SVN repository at http://code.google.com/p/progadv/source/checkout Change Log: v1.2.1: -Fixed error with init time state settings. v1.2: -Add cookie state support -Add initialization time state [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=205&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>[UPDATE #2] <a href="https://skinn3r.wordpress.com/2010/06/16/jcollapser-v1-2-2/">New version more info here.</a></p>
<p>New version of the jQuery plugin jCollapser. See change log for changes.</p>
<p>Source can be found <a href="http://progadv.googlecode.com/files/jCollapser-1.2.1.zip">here</a>.<br />
Latest development source can be found in the SVN repository at <a href="http://code.google.com/p/progadv/source/checkout">http://code.google.com/p/progadv/source/checkout</a></p>
<p>Change Log:</p>
<p><span style="color:#ff0000;">v1.2.1:<br />
-Fixed error with init time state settings.</span></p>
<p>v1.2:<br />
-Add cookie state support<br />
-Add initialization time state setting if cookie is not set.</p>
<p>v1.1:<br />
-Restructure of code to allow multiple collapse elements on the same page</p>
<p>v1.0:<br />
-Initial release</p>
<p>
<a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r [Update new version v1.2.1] jCollapser v1.2 http://tinyurl.com/cv5qkk"><img title="Twit This!" src="https://skinn3r.files.wordpress.com/2009/02/twitter2.png?w=595" /></a><a rel="nofollow" href="http://twitter.com/home/?status=Reading @skinn3r [Update new version v1.2.1] jCollapser v1.2 http://tinyurl.com/cv5qkk">Twit This Post!</a></p><br />Posted in JavaScript, jQuery Tagged: JavaScript, jCollapser, jQuery <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skinn3r.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skinn3r.wordpress.com/205/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=skinn3r.wordpress.com&#038;blog=5204938&#038;post=205&#038;subd=skinn3r&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://skinn3r.wordpress.com/2009/03/09/jcollapser-v12/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="https://1.gravatar.com/avatar/4f072d89c9a01b5d7d9783b217fd96f5?s=96&#38;d=https%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">horgasz</media:title>
		</media:content>

		<media:content url="https://skinn3r.files.wordpress.com/2009/02/twitter2.png" medium="image">
			<media:title type="html">Twit This!</media:title>
		</media:content>
	</item>
	</channel>
</rss>
