<?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>Cool Javascripts &#187; jQuery</title>
	<atom:link href="http://cool-javascripts.com/category/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://cool-javascripts.com</link>
	<description>The best javascripts for your site</description>
	<lastBuildDate>Tue, 22 Mar 2011 14:35:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>10 jQuery plugins for manipulating images</title>
		<link>http://cool-javascripts.com/effects/10-jquery-plugins-for-manipulating-images.html</link>
		<comments>http://cool-javascripts.com/effects/10-jquery-plugins-for-manipulating-images.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 14:42:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Effects]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[image effects]]></category>
		<category><![CDATA[image manipulation]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/?p=207</guid>
		<description><![CDATA[This time, I want to list some jQuery plugins that work with images or manipulate images some how. I didn&#8217;t consider scripts for slide shows or image viewer. You may be also interested in the following posts, 10 jQuery plugins for showing image gallery Which is the best lightbox clone for jQuery ? Image Reflection [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/3-jquery-plugins-to-show-context-menu.html' rel='bookmark' title='Permanent Link: 3 jQuery plugins to show context menu'>3 jQuery plugins to show context menu</a> <small>A context menu (also contextual menu, shortcut menu and, popup...</small></li><li><a href='http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html' rel='bookmark' title='Permanent Link: 10 jQuery plugins for showing image gallery'>10 jQuery plugins for showing image gallery</a> <small>An image gallery is part of the modern web 2.0...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-plugins-to-show-data-in-table-format-or-chart-format.html' rel='bookmark' title='Permanent Link: jQuery plugins to show data in table format or chart format'>jQuery plugins to show data in table format or chart format</a> <small> Need to show data in a tabular format or...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This time, I want to list some jQuery plugins that work with images or manipulate images some how. I didn&#8217;t consider scripts for slide shows or image viewer. </p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/image-manipulation.jpg" /></p>
<p>You may be also interested in the following posts,</p>
<ul>
<li><a href="http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html">10 jQuery plugins for showing image gallery</a></li>
<li><a href="http://cool-javascripts.com/galleries/which-is-the-best-lightbox-clone-for-jquery.html">Which is the best lightbox clone for jQuery ?</a></li>
</ul>
<p><span id="more-207"></span></p>
<h3>Image Reflection</h3>
<p>Image reflection is a common technique that designers use for a visual appeal. This jQuery plugin can create the reflection automatically for images. It is very light &#038; faster because it uses the Canvas object in supported browsers and DirectX filters in Internet Explorer.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/digitaliabe-reflectionjs-for-jquery.jpg" /></p>
<p><b><br />
Features</b></p>
<ul>
<li>Light weight (Less than 2KB)</li>
<li>Easy to use</li>
<li>Customizable</li>
</ul>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.3 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 2KB </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Compatible Browsers</th>
<td>IE 6+,Firefox 1.5+, Opera 9+, Safari 2+, Camino and Google Chrome</td>
</tr>
<tr>
<th>Demo &#038; Downlod</th>
<td><a class="opensame" rel="shadowbox" href="http://www.digitalia.be/software/reflectionjs-for-jquery#demo">Open</a> | <a class="opennew" href="http://www.digitalia.be/software/reflectionjs-for-jquery#demo" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<p class="note">For a stand alone reflection script, please visit <a href="http://cow.neondragon.net/stuff/reflection/" target="_blank">http://cow.neondragon.net/stuff/reflection/</a> </p>
<h3>jqZoom &#8211; Image magnifier for jQuery</h3>
<p>It is a good script to zoom into some part of an image. The idea is to use two images. A smaller image which shows initially and a high resolution copy of that image which will be shown (part of the image corresponding to the mouse position).</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/exzoom.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.6 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 9KB </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Compatible Browsers</th>
<td>Firefox 2+, Opera 9+, IE6+, Safari 2+, Google Chrome</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://www.mind-projects.it/projects/jqzoom/demos.php">Open</a> | <a class="opennew" href="http://www.mind-projects.it/projects/jqzoom/demos.php" target="_blank">Open in new window</a></td>
</tr>
</tr>
<tr>
<th>Dowload &#038; Info</th>
<td<a class="opennew" href="http://www.mind-projects.it/projects/jqzoom/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>jQPanView</h3>
<p>This script is useful if we need to show a high resolution image in a a small area. Using this script, user can pan around the images using a small thumbnail view (like google map).</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/jqpanview.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.6 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 3KB (Uncompressed) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &#038; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://projects.sevir.org/storage/jpanview/index.html">Open</a> | <a class="opennew" href="http://projects.sevir.org/storage/jpanview/index.html" target="_blank">Open in new window</a></td>
</tr>
</tr>
</tbody>
</table>
<h3>jCrop &#8211; Select an image area</h3>
<p>It can be used to draw a selection inside an image. Then this data can be used to crop that image in server side. A very good interface that matches to professional image cropping applications. Probably it is useful in a CMS or for web based image manipulation.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/jcrop-image-cropping-demos.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.6 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">10KB (Compressed) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (MIT)</td>
</tr>
<tr>
<th>Compatible Browsers</th>
<td>Firefox 3, Opera 9.5, IE6+, Safari 3, Google Chrome</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://deepliquid.com/projects/Jcrop/demos.php">Open</a> | <a class="opennew" href="http://deepliquid.com/projects/Jcrop/demos.php" target="_blank">Open in new window</a></td>
</tr>
</tr>
<tr>
<th>Dowload</th>
<td<a class="opennew" href="http://deepliquid.com/content/Jcrop_Download.html" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>imgAreaSelect</h3>
<p>This script also serves the same purpose as JCrop but with some more customization options. Lots of examples provided.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/imgareaselect-examples-odyniecnet.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.6 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">11KB (Minified) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (Dual Licensed GPL + MIT)</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://odyniec.net/projects/imgareaselect/examples.php">Open</a> | <a class="opennew" href="http://odyniec.net/projects/imgareaselect/examples.php" target="_blank">Open in new window</a></td>
</tr>
</tr>
<tr>
<th>Info &#038; Dowload</th>
<td<a class="opennew" href="http://odyniec.net/projects/imgareaselect/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>360 degree panorama</h3>
<p>This script creates a 360 degree panoramic view of any objects using an array of images. The script is simple to use. Shoot the photos of the object in all possible angles and give it as an array to the script. The image preloader will load all images. Can be activated in mouse move or click.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/360panorama.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.3 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 3KB (Uncompressed) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &#038; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.mathieusavard.info/threesixty/demo.html">Open</a> | <a class="opennew" href="http://www.mathieusavard.info/threesixty/demo.html" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Spherical Panorama</h3>
<p>It can create a spherical panorama from given images. It will need a lot of images and those are handled well using a good loading animation. All the process are explained well in their site (It is in French, I have given a google translated link).</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/spherical-panorama.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.3 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 7KB (Uncompressed) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Demo &#038; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.openstudio.fr/jQuery-spherical-panorama-viewer.html">Open</a> | <a class="opennew" href="http://www.openstudio.fr/jQuery-spherical-panorama-viewer.html" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Translated page in English</th>
<td<a class="opennew" href="http://translate.google.com/translate?prev=hp&#038;hl=en&#038;u=http%3A%2F%2Fwww.openstudio.fr%2FjQuery-spherical-panorama-viewer.html&#038;sl=fr&#038;tl=en" target="_blank">Google English translation</a></td>
</tr>
</tbody>
</table>
<h3>jQuery Virtual Tour</h3>
<p>This is a good script for creating panoramic views with hot spots. The animation is good and there are controls which pops up on mouse over to control the direction or pause. We only need to give the image and the hotspots can be given using image maps. </p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/jquery-virtual-tour.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.3 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 10KB including all supported scripts </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Demo &#038; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://openstudio.fr/jquery-virtual-tour/">Open</a> | <a class="opennew" href="http://openstudio.fr/jquery-virtual-tour/" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &#038; Download</th>
<td><a class="opennew" href="http://www.openstudio.fr/jQuery-virtual-tour.html?lang=en" target="_blank">Open</a></td>
</tr>
</tbody>
</table>
<p class="note">For a more simple panorama viewer (without support for hot spot), please check <a href="http://www.openstudio.fr/jquery.panorama/" target="_blank">http://www.openstudio.fr/jquery.panorama/</a> </p>
<h3>Image Cube</h3>
<p>It is a jQuery plugin  that sets a division to rotate between images as if they were on the faces of a cube.</p>
<blockquote><p>The image cube functionality can easily be added to a division with appropriate default settings. It then displays the images contained within the targetted division in a cycle every two seconds. A random rotation is chosen each time to move to the next image. Highlights and shadows are used to enhance the 3D effect.</p></blockquote>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/imagecube.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.6 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 8KB (Compressed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL + MIT)</td>
</tr>
<tr>
<th>Demo &#038; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://keith-wood.name/imageCube.html">Open</a> | <a class="opennew" href="http://keith-wood.name/imageCube.html" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>jqPuzzle &#8211; for creating sliding puzzles</h3>
<blockquote><p>
jqPuzzle lets you easily create sliding puzzles for your web page. Select an image, put it in your page, and add some magic – jqPuzzle will automagically turn it into a full-blown sliding puzzle! If you want, you can highly customize and style your sliding puzzle according to your needs. The interface is available in several languages, and you can add your own texts on the fly. </p></blockquote>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/03/jqpuzzle.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2.1 +</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 10KB (Compressed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL + MIT)</td>
</tr>
<tr>
<th>Demo &#038; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.2meter3.de/jqPuzzle/demos.html">Open</a> | <a class="opennew" href="http://www.2meter3.de/jqPuzzle/demos.html" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/3-jquery-plugins-to-show-context-menu.html' rel='bookmark' title='Permanent Link: 3 jQuery plugins to show context menu'>3 jQuery plugins to show context menu</a> <small>A context menu (also contextual menu, shortcut menu and, popup...</small></li><li><a href='http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html' rel='bookmark' title='Permanent Link: 10 jQuery plugins for showing image gallery'>10 jQuery plugins for showing image gallery</a> <small>An image gallery is part of the modern web 2.0...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-plugins-to-show-data-in-table-format-or-chart-format.html' rel='bookmark' title='Permanent Link: jQuery plugins to show data in table format or chart format'>jQuery plugins to show data in table format or chart format</a> <small> Need to show data in a tabular format or...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/effects/10-jquery-plugins-for-manipulating-images.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>10 jQuery plugins for showing image gallery</title>
		<link>http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html</link>
		<comments>http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html#comments</comments>
		<pubDate>Mon, 09 Feb 2009 13:03:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Galleries]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html</guid>
		<description><![CDATA[An image gallery is part of the modern web 2.0 design. There are many ways to show it. For eg: thumbnail listing of images &#8211; clicking will show the corresponding large image in an overlay div &#8211; like lightbox. The other method is, list images inline &#8211; no popups. Here I&#8217;ve listed 10 jQuery plugins [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/galleries/10-mootools-plugin-for-showing-image-gallery.html' rel='bookmark' title='Permanent Link: 10 Mootools plugin for showing image gallery'>10 Mootools plugin for showing image gallery</a> <small>In the previous post, I discussed about jQuery plugins for...</small></li><li><a href='http://cool-javascripts.com/modal-windows/highslide-the-best-image-gallery-script.html' rel='bookmark' title='Permanent Link: Highslide &#8211; The best image gallery script?'>Highslide &#8211; The best image gallery script?</a> <small> Highslide is a standalone javascript library created mainly for...</small></li><li><a href='http://cool-javascripts.com/effects/10-jquery-plugins-for-manipulating-images.html' rel='bookmark' title='Permanent Link: 10 jQuery plugins for manipulating images'>10 jQuery plugins for manipulating images</a> <small>This time, I want to list some jQuery plugins that...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>An image gallery is part of the modern web 2.0 design. There are many ways to show it. For eg: thumbnail listing of images &#8211; clicking will show the corresponding large image in an overlay div &#8211; like lightbox. The other method is, list images inline &#8211; no popups. </p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/jquery-galleries.jpg" /></p>
<p>Here I&#8217;ve listed 10 jQuery plugins which can be used for this type of gallery. All these plugins can show images with some transition effects. I didn&#8217;t consider lightbox like (popup) scripts. But you may be interested in the following articles.</p>
<ul>
<li>
<a href="http://cool-javascripts.com/galleries/three-lightbox-clones-for-mootools.html">Three lightbox clones for Mootools</a></li>
<li><a href="http://cool-javascripts.com/galleries/which-is-the-best-lightbox-clone-for-jquery.html">Which is the best lightbox clone for jQuery ?</a></li>
</ul>
<p><span id="more-171"></span></p>
<h3>Galleria</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/galleria.jpg" /></p>
<blockquote><p>
Galleria is a javascript image gallery written in jQuery. It loads the images one by one from an unordered list and displays thumbnails when each image is loaded. It will create thumbnails for you if you choose so, scaled or unscaled, centered and cropped inside a fixed thumbnail box defined by CSS.</p></blockquote>
<blockquote><p>
The core of Galleria lies in it&#8217;s smart preloading behaviour, snappiness and the fresh absence of obtrusive design elements. Use it as a foundation for your custom styled image gallery.</p></blockquote>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 5KB (Compressed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://devkick.com/lab/galleria/demo_01.htm">Open</a> | <a class="opennew" href="http://devkick.com/lab/galleria/demo_01.htm" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a class="opennew" href="http://devkick.com/lab/galleria/">Open</a></td>
</tr>
</tbody>
</table>
<h3>Gallerific</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/galleriffic-a-jquery-plugin-for-rendering-fast-performing-photo-galleries.jpg" /></p>
<p><strong>Features</strong>
<ul>
<li>Smart image preloading <strong>after</strong> the page is loaded</li>
<li>Thumbnail navigation (with pagination)</li>
<li>Support for bookmark-friendly URLs per-image</li>
<li>Slideshow (with optional auto-updating url bookmarks)</li>
<li>Events that allow for adding your own custom transition effects</li>
<li>Support for image captions</li>
<li>Flexible configuration</li>
<li>Graceful degradation when javascript is not available</li>
<li>Support for multiple galleries per page</li>
</ul>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">12 KB (Minified)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.twospy.com/galleriffic/">Open</a> | <a class="opennew" href="http://www.twospy.com/galleriffic/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>S3 Slider</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/s3slider-jquery-plugin.jpg" /></p>
<p>It is a simple &amp; lightweight jQuery plugin which can show images with captions. It is useful, if we want to show image slide shows without thumbnails.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 2KB (Packed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://www.serie3.info/s3slider/demonstration.html">Open</a> | <a class="opennew" href="http://www.serie3.info/s3slider/demonstration.html" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a class="opennew" href="http://www.serie3.info/s3slider/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Coda Slider</h3>
<p>Though it is not limited to showing images, it is still an option to show images.<br />
<a href="http://cool-javascripts.com/effects/jquery-coda-slider.html"><br />
Read more</a></p>
<h3>Slide Viewer</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/jquery-slideviewer-11.jpg" /></p>
<blockquote><p>
slideViewer is a lightweight (1.5Kb) jQuery plugin wich allows to instantly create an image gallery by writing just few lines of HTML such as an unordered list of images</p></blockquote>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2, jQuery Easing plugin</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 2KB (Packed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html">Open</a> | <a class="opennew" href="http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Easy Slider</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/easy-slider-jquery-plugin-demo.jpg" /></p>
<p>This is a multipurpose sliding gallery. It can show images or text contents. </p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">8KB (Uncompressed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://cssglobe.com/lab/easyslider1.5/04.html">Open</a> | <a class="opennew" href="http://cssglobe.com/lab/easyslider1.5/04.html" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a class="opennew" href="http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Crossfade</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/crossslide-a-jquery-plugin-to-create-pan-and-cross-fade-animations.jpg" /></p>
<p>It supports some very advanced transition effects like <a href="http://en.wikipedia.org/wiki/Ken_Burns_Effect" target="_blank">Ken Burns effect</a>. The transitions can be customized.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 12KB </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.gruppo4.com/~tobia/cross-slide.shtml">Open</a> | <a class="opennew" href="http://www.gruppo4.com/~tobia/cross-slide.shtml" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Innerfade</h3>
<p>InnerFade is a small plugin for the jQuery-JavaScript-Library. It&#8217;s designed to fade you any element inside a container in and out.These elements could be anything you want, e.g. images, list-items, divs.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 6KB </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://medienfreunde.com/lab/innerfade/">Open</a> | <a class="opennew" href="http://medienfreunde.com/lab/innerfade/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<p>9. Enhance Gallery</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/gallery-1.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 4KB </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://enhance.qd-creative.co.uk/2008/07/12/an-image-gallery/">Open</a> | <a class="opennew" href="http://enhance.qd-creative.co.uk/2008/07/12/an-image-gallery/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>jQuery Cycle plugin</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/jquery-cycle-plugin.jpg" /></p>
<blockquote><p>The jQuery Cycle Plugin is a lightweight slideshow plugin. It supports pause-on-hover, auto-stop, auto-fit, before/after callbacks, click triggers and many transition effects. It also supports, but does not require, the Metadata Plugin and the Easing Plugin.</p></blockquote>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">18 KB (With all transition effects &#8211; Core plugin 9KB) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://malsup.com/jquery/cycle/">Open</a> | <a class="opennew" href="http://malsup.com/jquery/cycle/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Space Gallery</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/02/spacegallery-jquery-plugin.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.2</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">13 KB </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://eyecon.ro/spacegallery/">Open</a> | <a class="opennew" href="http://eyecon.ro/spacegallery/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Image Flow</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2008/07/imageflow.jpg" /></p>
<p>Another image gallery that mimics apple&#8217;s coverflow animation.<br />
<a href="http://cool-javascripts.com/effects/image-flow-09.html">Read more</a></p>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/galleries/10-mootools-plugin-for-showing-image-gallery.html' rel='bookmark' title='Permanent Link: 10 Mootools plugin for showing image gallery'>10 Mootools plugin for showing image gallery</a> <small>In the previous post, I discussed about jQuery plugins for...</small></li><li><a href='http://cool-javascripts.com/modal-windows/highslide-the-best-image-gallery-script.html' rel='bookmark' title='Permanent Link: Highslide &#8211; The best image gallery script?'>Highslide &#8211; The best image gallery script?</a> <small> Highslide is a standalone javascript library created mainly for...</small></li><li><a href='http://cool-javascripts.com/effects/10-jquery-plugins-for-manipulating-images.html' rel='bookmark' title='Permanent Link: 10 jQuery plugins for manipulating images'>10 jQuery plugins for manipulating images</a> <small>This time, I want to list some jQuery plugins that...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/galleries/10-jquery-plugins-for-showing-image-gallery.html/feed</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Accessible news slider for jQuery</title>
		<link>http://cool-javascripts.com/jquery/accessible-news-slider-for-jquery.html</link>
		<comments>http://cool-javascripts.com/jquery/accessible-news-slider-for-jquery.html#comments</comments>
		<pubDate>Wed, 28 Jan 2009 13:31:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[accessible slider]]></category>
		<category><![CDATA[news slider]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/jquery/accessible-news-slider-for-jquery.html</guid>
		<description><![CDATA[It is a good plugin which follows the accessibility requirements outlined by WCAG 1.0 Features Very light weight (2kb packed) Follows accessibility standards Customizable animation speed Number of elements shown at a time can be customized Customizable skins Dependencies jQuery 1.26 Size 2KB (Compressed) Restrictions None Supported Browsers IE 6+, FF 2+, Opera 9+, Safari [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/effects/jquery-coda-slider.html' rel='bookmark' title='Permanent Link: jQuery Coda Slider'>jQuery Coda Slider</a> <small> There are two jQuery plugins to emulate the Coda...</small></li><li><a href='http://cool-javascripts.com/effects/featured-content-slider-auto-advancing.html' rel='bookmark' title='Permanent Link: Featured content slider &#8211; Auto advancing'>Featured content slider &#8211; Auto advancing</a> <small> Using jQuery Coda plugin, css-tricks.com has created a very...</small></li><li><a href='http://cool-javascripts.com/galleries/which-is-the-best-lightbox-clone-for-jquery.html' rel='bookmark' title='Permanent Link: Which is the best lightbox clone for jQuery ?'>Which is the best lightbox clone for jQuery ?</a> <small>Lightbox is a script made by Lokesh Dhakar which is...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>It is a good plugin which follows the accessibility requirements outlined by <a href="http://www.w3.org/TR/WAI-WEBCONTENT/" target="_blank">WCAG 1.0</a></p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/accessible-news-slider.png" /></p>
<p><b><br />
Features</b></p>
<ul>
<li>Very light weight (2kb packed)</li>
<li>Follows accessibility standards</li>
<li>Customizable animation speed</li>
<li>Number of elements shown at a time can be customized</li>
<li>Customizable skins</li>
</ul>
<p><span id="more-159"></span></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery 1.26</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">2KB (Compressed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Supported Browsers</th>
<td>IE 6+, FF 2+, Opera 9+, Safari 3+</td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.reindel.com/accessible_news_slider/">Open</a> | <a class="opennew" href="http://www.reindel.com/accessible_news_slider/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/effects/jquery-coda-slider.html' rel='bookmark' title='Permanent Link: jQuery Coda Slider'>jQuery Coda Slider</a> <small> There are two jQuery plugins to emulate the Coda...</small></li><li><a href='http://cool-javascripts.com/effects/featured-content-slider-auto-advancing.html' rel='bookmark' title='Permanent Link: Featured content slider &#8211; Auto advancing'>Featured content slider &#8211; Auto advancing</a> <small> Using jQuery Coda plugin, css-tricks.com has created a very...</small></li><li><a href='http://cool-javascripts.com/galleries/which-is-the-best-lightbox-clone-for-jquery.html' rel='bookmark' title='Permanent Link: Which is the best lightbox clone for jQuery ?'>Which is the best lightbox clone for jQuery ?</a> <small>Lightbox is a script made by Lokesh Dhakar which is...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/jquery/accessible-news-slider-for-jquery.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to make your forms better with jQuery?</title>
		<link>http://cool-javascripts.com/jquery/how-to-make-your-forms-better-with-jquery.html</link>
		<comments>http://cool-javascripts.com/jquery/how-to-make-your-forms-better-with-jquery.html#comments</comments>
		<pubDate>Tue, 27 Jan 2009 14:27:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[better form]]></category>
		<category><![CDATA[form plugins]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/uncategorized/how-to-make-your-forms-better-with-jquery.html</guid>
		<description><![CDATA[Say &#8220;Good Bye!&#8221; to the old, plain looking forms. Using jQuery we can create more interactive and stylish forms. What we need to do is, replace form fields that are difficult to style. jQuery provides lot of plugins which can imitate the behavior of these fields. Then we need to add some interactivity to forms [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html' rel='bookmark' title='Permanent Link: jQuery Ajax File Upload'>jQuery Ajax File Upload</a> <small> Ajax file upload plugin allows users to easily upload...</small></li><li><a href='http://cool-javascripts.com/modal-windows/jquery-impromptu-alert-and-confirm-replacement-with-form-support.html' rel='bookmark' title='Permanent Link: jQuery Impromptu &#8211; alert and confirm replacement with form support'>jQuery Impromptu &#8211; alert and confirm replacement with form support</a> <small>jQuery Impromptu is an extention to help provide a more...</small></li><li><a href='http://cool-javascripts.com/modal-windows/three-jquery-modal-plugins-to-repace-alert-and-confirm.html' rel='bookmark' title='Permanent Link: Three jQuery modal plugins to repace alert and confirm'>Three jQuery modal plugins to repace alert and confirm</a> <small> alert() and confirm() are two javascript functions that you...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Say &#8220;Good Bye!&#8221; to the old, plain looking forms. Using jQuery we can create more interactive and stylish forms. What we need to do is, replace form fields that are difficult to style. jQuery provides lot of plugins which can imitate the behavior of these fields.</p>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/better-forms.jpg" /></p>
<p>Then we need to add some interactivity to forms using auto complete, dynamic validation etc.<br />
<span id="more-153"></span></p>
<h3>Replacing checkbox and radio button</h3>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-checkbox-v110-beta-2-demo-1.jpg" /><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-checkbox-v110-beta-2-demo.jpg" /><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-ui-radiobutton-und-checkbox-replacement.jpg" /></p>
<p>Checkbox and radio buttons were a big problem for designers as the implementations were different in different browsers and it could not be styled. Now we can use simple jQuery plugins to imitate the behavior of checkbox and radio buttons. And these are fully stylable using css. Most of these plugins uses images for different states of checkbox button and hence it can be customized anyway.<br />
<b><br />
Recommended plugins</b></p>
<ul>
<li><a target="_blank" href="http://www.protofunc.com/scripts/jquery/checkbox-radiobutton/">http://www.protofunc.com/scripts/jquery/checkbox-radiobutton/</a></li>
<li><a target="_blank" href="http://widowmaker.kiev.ua/checkbox/">http://widowmaker.kiev.ua/checkbox/</a>
</li>
</ul>
<h3>Replacing Select box</h3>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-select-box.jpg" />Another browser dependent thing. Some browser supports basic styling but we need more customization.&nbsp; This plugin replaces select box with a normal input field styled with background image. As it is an image, it is customizable by changing the image.</p>
<p><a target="_blank" href="http://www.brainfault.com/2008/02/10/new-release-of-jquery-selectbox-replacement/">http://www.brainfault.com/2008/02/10/new-release-of-jquery-selectbox-replacement/</a></p>
<h3>Replacing File input fields</h3>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2008/12/ajax-fileupload.jpg" /><br />
Again, browser dependent thing which is almost impossible to style. Using Flash or Iframe, an Ajax effect can be achieved here.<br />
<a href="http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html"><br />
jQuery Plugins for Ajax upload</a></p>
<p>Or if you want to use normal file input field, <a target="_blank" href="http://www.quirksmode.org/dom/inputfile.html">http://www.quirksmode.org/dom/inputfile.html</a> has provided a solution using javascript and CSS. But it is not perfect.</p>
<h3>Auto complete</h3>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-autocomplete-plugin.jpg" /></p>
<p>It is better usability to automatically suggest something that the user wants.</p>
<ul>
<li><a target="_blank" href="http://jquery.bassistance.de/autocomplete/demo/">http://jquery.bassistance.de/autocomplete/demo/</a>
</li>
<li><a target="_blank" href="http://www.pengoworks.com/workshop/jquery/autocomplete.htm">http://www.pengoworks.com/workshop/jquery/autocomplete.htm</a></li>
</ul>
<h3>Restricting input fields</h3>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/digitalbush-masked-input-plugin.jpg" /></p>
<p>If we need some inputs in certain format, don&#8217;t rely on the user to input in that specific way. Instead restrict them to input only in that form. Less error in input.</p>
<p><a target="_blank" href="http://digitalbush.com/projects/masked-input-plugin/">http://digitalbush.com/projects/masked-input-plugin/</a></p>
<h3>Calendar Plugin</h3>
<p> <img  style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-ui-themeroller.jpg" /></p>
<p>It is always better to show a calendar to pick the date rather than select box or text boxes. Also, user can not select an invalid date.
</p>
<p><a target="_blank" href="http://marcgrabanski.com/pages/code/jquery-ui-datepicker">jQuery UI Date picker</a> is the best calendar plugin. Also try the <a target="_blank" href="http://ui.jquery.com/themeroller">theme roller</a> for customizing styles.</p>
<h3>Form Validation</h3>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/remember-the-milk-signup-form-jquery-validate-plugin-demo-with-friendly-permission-from-the-rtm-team-1.jpg" /></p>
<p>Instead of throwing errors after form submission, validating the form dynamically as the user types in and showing messages adds more interactiveness to form. User will know what is wrong as soon as he types in some thing. The best plugin to use is,<br />
<a target="_blank" href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/"></p>
<p>http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a></p>
<h3>Form plugin</h3>
<blockquote><p>The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use        <abbr title="Asynchronous JavaScript and XML">AJAX</abbr>.        The main methods,        <code class="inline">ajaxForm</code> and <code class="inline">ajaxSubmit</code>,        gather information from the form element to determine how to manage the submit process.  Both of these methods support        numerous options which allows you to have full control over how the data is submitted.  Submitting a form        with AJAX doesn&#8217;t get any easier than this!
</p></blockquote>
<p><a target="_blank" href="http://malsup.com/jquery/form/"></p>
<p>http://malsup.com/jquery/form/</a></p>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/jquery-ajax-file-upload.html' rel='bookmark' title='Permanent Link: jQuery Ajax File Upload'>jQuery Ajax File Upload</a> <small> Ajax file upload plugin allows users to easily upload...</small></li><li><a href='http://cool-javascripts.com/modal-windows/jquery-impromptu-alert-and-confirm-replacement-with-form-support.html' rel='bookmark' title='Permanent Link: jQuery Impromptu &#8211; alert and confirm replacement with form support'>jQuery Impromptu &#8211; alert and confirm replacement with form support</a> <small>jQuery Impromptu is an extention to help provide a more...</small></li><li><a href='http://cool-javascripts.com/modal-windows/three-jquery-modal-plugins-to-repace-alert-and-confirm.html' rel='bookmark' title='Permanent Link: Three jQuery modal plugins to repace alert and confirm'>Three jQuery modal plugins to repace alert and confirm</a> <small> alert() and confirm() are two javascript functions that you...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/jquery/how-to-make-your-forms-better-with-jquery.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>jQuery Impromptu &#8211; alert and confirm replacement with form support</title>
		<link>http://cool-javascripts.com/modal-windows/jquery-impromptu-alert-and-confirm-replacement-with-form-support.html</link>
		<comments>http://cool-javascripts.com/modal-windows/jquery-impromptu-alert-and-confirm-replacement-with-form-support.html#comments</comments>
		<pubDate>Fri, 16 Jan 2009 19:23:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Modal Windows]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[confirm]]></category>
		<category><![CDATA[impromptu]]></category>
		<category><![CDATA[modal]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/modal-windows/jquery-impromptu-alert-and-confirm-replacement-with-form-support.html</guid>
		<description><![CDATA[jQuery Impromptu is an extention to help provide a more pleasant way to spontaneously prompt a user for input. More or less this is a great replacement for an alert, prompt, and confirm. Not only does it replace these but it also allows for creating forms within these controls. This is not intended to be [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/modal-windows/three-jquery-modal-plugins-to-repace-alert-and-confirm.html' rel='bookmark' title='Permanent Link: Three jQuery modal plugins to repace alert and confirm'>Three jQuery modal plugins to repace alert and confirm</a> <small> alert() and confirm() are two javascript functions that you...</small></li><li><a href='http://cool-javascripts.com/modal-windows/sexy-alert-box-for-mootools.html' rel='bookmark' title='Permanent Link: Sexy Alert Box for Mootools'>Sexy Alert Box for Mootools</a> <small> It is an excellent script to replace the javascript...</small></li><li><a href='http://cool-javascripts.com/modal-windows/jquery-blockui-plugin.html' rel='bookmark' title='Permanent Link: jQuery BlockUI Plugin'>jQuery BlockUI Plugin</a> <small> It is a unique jquery plugin to prevent the...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<blockquote><p>jQuery Impromptu is an extention to help provide a more pleasant way to spontaneously prompt a user for input. More or less this is a great replacement for an alert, prompt, and confirm. Not only does it replace these but it also allows for creating forms within these controls. This is not intended to be a modal replacement, just a quick tool to prompt user input in a fashionable way.</p></blockquote>
<p><img style="max-width: 800px;" src="http://cool-javascripts.com/wp-content/uploads/2009/01/impromptu.jpg" /></p>
<p>This is a good plugin to replace alert() and confirm() methods using callback functions. Fully stylabe using CSS. Lots of examples are shown in the site.<span id="more-137"></span></p>
<p><b>Suggested enhancement</b></p>
<p>Need to support draggable functionality. </p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">6KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (Apache License)</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://trentrichardson.com/Impromptu/index.php">Open</a> | <a class="opennew" href="http://trentrichardson.com/Impromptu/index.php" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/modal-windows/three-jquery-modal-plugins-to-repace-alert-and-confirm.html' rel='bookmark' title='Permanent Link: Three jQuery modal plugins to repace alert and confirm'>Three jQuery modal plugins to repace alert and confirm</a> <small> alert() and confirm() are two javascript functions that you...</small></li><li><a href='http://cool-javascripts.com/modal-windows/sexy-alert-box-for-mootools.html' rel='bookmark' title='Permanent Link: Sexy Alert Box for Mootools'>Sexy Alert Box for Mootools</a> <small> It is an excellent script to replace the javascript...</small></li><li><a href='http://cool-javascripts.com/modal-windows/jquery-blockui-plugin.html' rel='bookmark' title='Permanent Link: jQuery BlockUI Plugin'>jQuery BlockUI Plugin</a> <small> It is a unique jquery plugin to prevent the...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/modal-windows/jquery-impromptu-alert-and-confirm-replacement-with-form-support.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Building a reusabe font size controller interface using jQuery</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html</link>
		<comments>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comments</comments>
		<pubDate>Wed, 14 Jan 2009 13:57:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[change font size]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[font size controller]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html</guid>
		<description><![CDATA[Most of the web2.0 design allows the user to change the font size of the main content area. This is indeed a good usability. So I thought, I should contribute something here. The result is a small jQuery code which can be used to generate a font size changer interface. Only thing you need to [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/vertical-alignment-of-contents-inside-an-element-using-jquery.html' rel='bookmark' title='Permanent Link: Vertical alignment of contents inside an element using jQuery'>Vertical alignment of contents inside an element using jQuery</a> <small>One of the old problems! Vertical alignment of contents inside...</small></li><li><a href='http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html' rel='bookmark' title='Permanent Link: Add icons to your links automatically using jQuery &#038; CSS'>Add icons to your links automatically using jQuery &#038; CSS</a> <small>You want to show a particular icon to a particular...</small></li><li><a href='http://cool-javascripts.com/effects/make-curved-corners-with-jquery-corner-plugin.html' rel='bookmark' title='Permanent Link: Make curved corners with jQuery Corner plugin'>Make curved corners with jQuery Corner plugin</a> <small>If you want a curved edge for your element, the...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Most of the web2.0 design allows the user to change the font size of the main content area. This is indeed a good usability. So I thought, I should contribute something here. The result is a small jQuery code which can be used to generate a font size changer interface. </p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/fontsize-controller.jpg" /></p>
<p>Only thing you need to make is a holder element for the controller and then call the function like</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">fontSize<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#holder&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#content&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">12</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">20</span><span style="color: #009900;">&#41;</span>;
<span style="color: #006600; font-style: italic;">// holder is the id of the element where the font size controller interface will be shown</span>
<span style="color: #006600; font-style: italic;">// content is the id of the element where the font size changes will take place.</span>
<span style="color: #006600; font-style: italic;">// The next three arguments are Minimum font size, Default font size and Maximum font size respectively</span></pre></div></div>

<p>Yes, all done and it will automatically generate all required buttons. It also supports jquery cookie plugin. So when you open the page again, the preferred font size will be restored automatically. (Cookie plugin is not required, but recommended)</p>
<p>After the function is called, the controllers will be generated in the specified area like the following.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-automatic-font-size-controller-cool-javascriptscom-ultimate-javascript-resources.jpg" /></p>
<h3>Advantages</h3>
<ul>
<li>Small size, built on jQuery</li>
<li>Fully skinnable using css</li>
<li>Multiple interface can be used in the same page for two different content areas</li>
<li>Support jQuery Cookie plugin for remembering the preferred font size</li>
<li>Very easy to use</li>
</ul>
<p><span id="more-127"></span></p>
<h3>The logic</h3>
<ul>
<li>The function will be called with the holder element and target element with default, maximum and minimum font size</li>
<li>Create three elements for decreasing, default and increasing font size </li>
<li>Style the elements using CSS so that it will be fully skinnable</li>
<li>Upon clicking read the current font size for the target and calculate the new font size. Then apply it to target element</li>
<li>Save the modified font size value to cookie, so that the preferred font size can be saved and restored</li>
</ul>
<h3>The CSS</h3>
<p>We need some buttons for the backgrounds and the best places to search is <a href="http://www.iconlook.com" target="_blank">Icon look</a>, <a href="http://www.iconfinder.net" target="_blank">Icon Finder</a> and <a href="http://www.iconlet.com" target="_blank">Icon Let</a> as usual. I found the above images, but you can use another or design yours.</p>
<p>Now we need to style the elements. Mainly we need 5 styles &#8211; Button for smaller font, default font and larger font. We need two more styles for the disabled state of buttons. (If current font size is the minimum or maximum allowed, we need to show a disabled state).</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">&nbsp;
&nbsp;
<span style="color: #6666ff;">.smallFont</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span>; <span style="color: #808080; font-style: italic;">/*for making it look nice in FF */</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/font-down.png</span><span style="color: #00AA00;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-9999px</span>;
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span>;
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span>;
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.defaultFont</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #808080; font-style: italic;">/*if you want to hide the default font button, use display:none */</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/font-default.png</span><span style="color: #00AA00;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-9999px</span>;
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span>;
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span>;
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span>;
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.largeFont</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/font-up.png</span><span style="color: #00AA00;">&#41;</span>;
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span>;
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-9999px</span>;
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span>;
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span>;
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ldisabled</span><span style="color: #00AA00;">,</span><span style="color: #6666ff;">.sdisabled</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*Styles for disabled buttons*/</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.3</span>;
	-ms-filter<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.Alpha(Opacity=30)&quot;</span>;
	<span style="color: #808080; font-style: italic;">/*This is for IE8 */</span>
	filter<span style="color: #00AA00;">:</span> alpha<span style="color: #00AA00;">&#40;</span>opacity <span style="color: #00AA00;">=</span> <span style="color: #cc66cc;">30</span><span style="color: #00AA00;">&#41;</span>;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>As you can see I&#8217;ve used three background images for the three buttons. Need to set the display:block property as the buttons are of 32px height. I could have optimized the css more by applying common styles to elements. For eg: For the three styles only background is different, so it could&#8217;ve declared like the following.</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"> <span style="color: #6666ff;">.smallFont</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.defaultFont</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.largeFont</span> <span style="color: #00AA00;">&#123;</span> 
.... <span style="color: #808080; font-style: italic;">/*common properties*/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.smallFont</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>...<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#125;</span> 
...</pre></div></div>

<p>But I didn&#8217;t use that because it will be easier to declare as is now, if you want to use different sized images or different styles for each button. </p>
<p class="note">If you want to have multiple styles in the same page, just use the CSS scope</p>
<p>For eg:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"> <span style="color: #cc00cc;">#container1</span> <span style="color: #6666ff;">.smallFont</span> <span style="color: #00AA00;">&#123;</span> ... <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#container2</span> <span style="color: #6666ff;">.smallFont</span> <span style="color: #00AA00;">&#123;</span> ... <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Now for the disabled state I used same style for all buttons. Using opacity filter is the easiest way to imitate a disabled button. Here for IE8, I have used an extra style after googling around.</p>
<h3>The jQuery function</h3>
<p>I didn&#8217;t write it as a jQuery plugin because I didn&#8217;t find it useful to have the chainable functionality.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> fontSize<span style="color: #009900;">&#40;</span>container<span style="color: #339933;">,</span> target<span style="color: #339933;">,</span> minSize<span style="color: #339933;">,</span> defSize<span style="color: #339933;">,</span> maxSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #009966; font-style: italic;">/*Editable settings*/</span>
	<span style="color: #003366; font-weight: bold;">var</span> minCaption <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Make font size smaller&quot;</span>; <span style="color: #006600; font-style: italic;">//title for smallFont button</span>
	<span style="color: #003366; font-weight: bold;">var</span> defCaption <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Make font size default&quot;</span>; <span style="color: #006600; font-style: italic;">//title for defaultFont button</span>
	<span style="color: #003366; font-weight: bold;">var</span> maxCaption <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Make font size larger&quot;</span>; <span style="color: #006600; font-style: italic;">//title for largefont button</span>
&nbsp;
&nbsp;
	<span style="color: #006600; font-style: italic;">//Now we'll add the font size changer interface in container</span>
	smallFontHtml <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;a href='javascript:void(0);' class='smallFont' title='&quot;</span> <span style="color: #339933;">+</span> minCaption <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;'&gt;&quot;</span> <span style="color: #339933;">+</span> minCaption <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&lt;/a&gt; &quot;</span>;
	defFontHtml <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;a href='javascript:void(0);' class='defaultFont' title='&quot;</span> <span style="color: #339933;">+</span> defCaption <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;'&gt;&quot;</span> <span style="color: #339933;">+</span> defCaption <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&lt;/a&gt; &quot;</span>;
	largeFontHtml <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;a href='javascript:void(0);' class='largeFont' title='&quot;</span> <span style="color: #339933;">+</span> maxCaption <span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;'&gt;&quot;</span> <span style="color: #339933;">+</span> maxCaption <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&lt;/a&gt; &quot;</span>;
	$<span style="color: #009900;">&#40;</span>container<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>smallFontHtml <span style="color: #339933;">+</span> defFontHtml <span style="color: #339933;">+</span> largeFontHtml<span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">//Read cookie &amp;amp; sets the fontsize</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">cookie</span> <span style="color: #339933;">!=</span> undefined<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> cookie <span style="color: #339933;">=</span> target.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[#. ]/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #003366; font-weight: bold;">var</span> value <span style="color: #339933;">=</span> $.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span>cookie<span style="color: #009900;">&#41;</span>;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>value <span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">,</span> parseInt<span style="color: #009900;">&#40;</span>value<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//on clicking small font button, font size is decreased by 1px</span>
	$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .smallFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
		curSize <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;font-size&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
		newSize <span style="color: #339933;">=</span> curSize <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span>;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newSize <span style="color: #339933;">&gt;=</span> minSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">,</span> newSize<span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span> 
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newSize <span style="color: #339933;">&lt;=</span> minSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .smallFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sdisabled&quot;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newSize <span style="color: #339933;">&lt;</span> maxSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .largeFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ldisabled&quot;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span>
		updatefontCookie<span style="color: #009900;">&#40;</span>target<span style="color: #339933;">,</span> newSize<span style="color: #009900;">&#41;</span>; <span style="color: #006600; font-style: italic;">//sets the cookie </span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">//on clicking default font size button, font size is reset</span>
	$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .defaultFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">,</span> defSize<span style="color: #009900;">&#41;</span>;
		$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .smallFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sdisabled&quot;</span><span style="color: #009900;">&#41;</span>;
		$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .largeFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ldisabled&quot;</span><span style="color: #009900;">&#41;</span>;
		updatefontCookie<span style="color: #009900;">&#40;</span>target<span style="color: #339933;">,</span> defSize<span style="color: #009900;">&#41;</span>;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">//on clicking large font size button, font size is incremented by 1 to the maximum limit</span>
	$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .largeFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		curSize <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;font-size&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
		newSize <span style="color: #339933;">=</span> curSize <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span>;
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newSize <span style="color: #339933;">&lt;=</span> maxSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'font-size'</span><span style="color: #339933;">,</span> newSize<span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span> 
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newSize <span style="color: #339933;">&gt;</span> minSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .smallFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;sdisabled&quot;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>newSize <span style="color: #339933;">&gt;=</span> maxSize<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			$<span style="color: #009900;">&#40;</span>container <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; .largeFont&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;ldisabled&quot;</span><span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span>
		updatefontCookie<span style="color: #009900;">&#40;</span>target<span style="color: #339933;">,</span> newSize<span style="color: #009900;">&#41;</span>;
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #003366; font-weight: bold;">function</span> updatefontCookie<span style="color: #009900;">&#40;</span>target<span style="color: #339933;">,</span> size<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//Private function for setting cookie</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">cookie</span> <span style="color: #339933;">!=</span> undefined<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//If cookie plugin available, set a cookie</span>
			<span style="color: #003366; font-weight: bold;">var</span> cookie <span style="color: #339933;">=</span> target.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[#. ]/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span>;
			$.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span>cookie<span style="color: #339933;">,</span> size<span style="color: #009900;">&#41;</span>;
		<span style="color: #009900;">&#125;</span> 
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>I think the code is self explanatory. If you&#8217;ve any doubt in code, please feel free to ask here <img src='http://cool-javascripts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Usage</h3>
<p>Include the css file, then after including jQuery include this script like the following (Don&#8217;t forget to change the path as required. Also, you need to copy the images in correct folder as specified in CSS file or edit the CSS file to make it correct.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;font-controller.css&quot; /&gt;
&lt;script src=&quot;jquery-1.2.6.pack.js&quot;&gt;&lt;/script&gt; 
&lt;script src=&quot;font-controller.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.cookie.js&quot;&gt;&lt;/script&gt;</pre></div></div>

<p>The function can be called inside a $document.ready() as usual. For eg:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">fontSize<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#container&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#content&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">12</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">20</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>Then inside your html create the empty container for holding the elements. Give it an ID or class, if possible ID.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;container&quot;&gt;&lt;/div&gt; ... 
&lt;div id=&quot;content&quot;&gt;... Font size of this element can be controlled.... &lt;/div&gt;</pre></div></div>

<p class="note">Do not copy paste the code from this page. Instead download the full demo from below link</p>
<h3>Demo</h3>
<p class="download">
<a class="opensame" rel="shadowbox" href="http://demos.cool-javascripts.com/jquery-fontsize-controller.html">View Demo</a> | <a class="opennew" href="http://demos.cool-javascripts.com/jquery-fontsize-controller.zip" target="_blank">Download full demo</a>
</p>
<p>Please feel free to post your comments and suggestions for improvement <img src='http://cool-javascripts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/vertical-alignment-of-contents-inside-an-element-using-jquery.html' rel='bookmark' title='Permanent Link: Vertical alignment of contents inside an element using jQuery'>Vertical alignment of contents inside an element using jQuery</a> <small>One of the old problems! Vertical alignment of contents inside...</small></li><li><a href='http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html' rel='bookmark' title='Permanent Link: Add icons to your links automatically using jQuery &#038; CSS'>Add icons to your links automatically using jQuery &#038; CSS</a> <small>You want to show a particular icon to a particular...</small></li><li><a href='http://cool-javascripts.com/effects/make-curved-corners-with-jquery-corner-plugin.html' rel='bookmark' title='Permanent Link: Make curved corners with jQuery Corner plugin'>Make curved corners with jQuery Corner plugin</a> <small>If you want a curved edge for your element, the...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Color picker galore!</title>
		<link>http://cool-javascripts.com/jquery/color-picker-galore.html</link>
		<comments>http://cool-javascripts.com/jquery/color-picker-galore.html#comments</comments>
		<pubDate>Tue, 13 Jan 2009 08:42:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[color picker]]></category>
		<category><![CDATA[color seletor]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/?p=113</guid>
		<description><![CDATA[A color picker allows the users to preview the color and select it by clicking on it. It is useful when you want to provide some customization for the user (for eg: select a background color, letter color etc). But I think is a very useful piece of code in the admin side of a [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/prototype/most-useful-prototype-plugins.html' rel='bookmark' title='Permanent Link: Most useful prototype / script.aculo.us plugins'>Most useful prototype / script.aculo.us plugins</a> <small>Prototype is one of the earliest new generation javascript libraries...</small></li><li><a href='http://cool-javascripts.com/effects/improved-lava-lamp-effect-for-jquery-and-mootools.html' rel='bookmark' title='Permanent Link: Improved lava lamp effect for jQuery and Mootools'>Improved lava lamp effect for jQuery and Mootools</a> <small>The lava lamp effect was an excellent technique to turn...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-and-mootools-plugin-to-show-tooltips.html' rel='bookmark' title='Permanent Link: jQuery and Mootools plugin to show tooltips'>jQuery and Mootools plugin to show tooltips</a> <small>The tooltip is a common graphical user interface element. It...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A color picker allows the users to preview the color and select it by clicking on it.   It is useful when you want to provide some customization for the user (for eg: select a background color, letter color etc). But I think is a very useful piece of code in the admin side of a CMS site (Select font color, theme color or anything that you can imagine). There are simple scripts which generates a simple web safe color palette to advanced ones which generates a color palette like Adobe Photoshop.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/color-picker-galore.jpg" /></p>
<p>Here are some cool color picker scripts that can be used. Some of them are written using plain javascript &#8211; means you don&#8217;t need any javascript library like jQuery, Mootools. And some of them are written specifically for jQuery, Mootools or Prototype (Here the advantage is a smaller footprint. If you&#8217;re already using a javascript library like jQuery or Mootools, use the one particularly written for that library). There are more than 10 scripts to choose from. <span id="more-113"></span></p>
<h2>Plain Javascript scripts for Color picker</h2>
<p>There were lot of scripts using plain javascript. Some are larger in size and some uses a popup window interface which is not Web 2.0 standard (It will be considered as an advertisement popup and will be blocked by most of the browsers). I selected three of them which are smaller in size and has the DHTML style popup or inine popup.</p>
<p>Use any of the following if you are not using a javascript library like jQuery or Mootools. </p>
<h3>DHTML color picker from Free-color-picker.com</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/javascript-color-picker-216-websafe-colors-plus-grays.jpg" /></p>
<p>It can handle web safe colors and grays. Triggering can be customized in many ways. Files can be downloaded separately according to your needs. It also supports popup window. It is a small script &#8211; just around 8KB. But if you wan to show more colors, you can&#8217;t use it. Also, the license states that it should not be modified and the link to the site should not be altered.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>None</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">8KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>License states that script should not be altered. Also, the link should not be removed.</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://www.free-color-picker.com/color-picker-combo.php">Open</a> | <a class="opennew" href="http://www.free-color-picker.com/color-picker-combo.php" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a target="_blank" class="opennew" href="http://www.free-color-picker.com/">Open</a></td>
</tr>
</tbody>
</table>
<h3>jsColor</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/try-it-jscolor-javascript-color-picker.jpg" /></p>
<blockquote><p>jscolor is JavaScript component extending standard form controls of the smooth <strong>color picker</strong><em>pickerize</em> your text fields
</p></blockquote>
<p>It is a good and very easy to use script when you want to show more colors. </p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>None</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">24KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://jscolor.com/try.php">Open</a> | <a class="opennew" href="http://jscolor.com/try.php" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a target="_blank" class="opennew" href="http://jscolor.com/">Open</a></td>
</tr>
</tbody>
</table>
<h3>Color Jack</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/farbtastic-jquery-color-picker-plug-in-steven-wittens-ackonet.jpg" /></p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/color-jack.jpg" /></p>
<p>It is the smallest of them all &#8211; just 3.5KB. Also this site has two other pickers <a href="http://www.nofunc.com/DHTML_Color_Picker_2/" target="_blank">Color Picker v2</a> and <a href="http://www.nofunc.com/DHTML_Color_Sphere/" target="_blank">Color Sphere<br />
</a>. Choose one that matches your required style. </p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>None</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">4KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://www.nofunc.com/DHTML_Color_Sphere/">Color Sphere</a> | <a class="opennew" href="http://www.nofunc.com/DHTML_Color_Sphere/" target="_blank">Color Sphere</a> <br />
<a class="opensame" rel="shadowbox" href="http://www.nofunc.com/DHTML_Color_Picker/">Color Picker 1.0</a> | <a class="opennew" href="http://www.nofunc.com/DHTML_Color_Picker/" target="_blank">Color Picker 1.0</a> <br />
<a class="opensame" rel="shadowbox" href="http://www.nofunc.com/DHTML_Color_Picker_2/">Color Picker V2.0</a> | <a class="opennew" href="http://www.nofunc.com/DHTML_Color_Picker_2/" target="_blank">Color Picker 2.0</a>
</td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a target="_blank" class="opennew" href="http://www.colorjack.com/">Open</a></td>
</tr>
</tbody>
</table>
<h3>Others</h3>
<ul>
<li><a target="_blank" class="opennew" href="http://www.nogray.com/color_picker.php">Color Piker by Nogray.com</a> It is a photoshop like color picker </li>
</ul>
<h2>Color Pickers for jQuery</h2>
<p>jQuery is a wonderful javascript library and the number of available plugins are growing rapidly. If you&#8217;re already using jQuery, choose a color picker from here.</p>
<h3>Farbtastic color picker plug-in </h3>
<p>Farbtastic: jQuery color picker plug-in</p>
<blockquote><p>
Farbtastic is a jQuery plug-in that can add one or more color picker widgets into a page through JavaScript. Each widget is then linked to an existing element (e.g. a text field) and will update the element&#8217;s value when a color is selected.<br />
Farbtastic uses layered transparent PNGs to render a saturation/luminance gradient inside of a hue circle. No Flash, no pixel sized divs.
</p></blockquote>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">9KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://acko.net/dev/farbtastic">Open</a> | <a class="opennew" href="http://acko.net/dev/farbtastic" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Color picker by eyecon.ro</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/colorpicker-jquery-plugin.jpg" /></p>
<blockquote><p>A simple component to select color in the same way you select color in Adobe Photoshop</p></blockquote>
<ul>
<li>Easy to use and looks good</li>
<li>Powerful controls for color selection</li>
<li>Easy to customize the look by changing some images
</li>
</ul>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">16KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.eyecon.ro/colorpicker/">Open</a> | <a class="opennew" href="http://www.eyecon.ro/colorpicker/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Normal color picker by www.felecan.com</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-color-picker-normal.jpg" /></p>
<p>It is a lightweight color picker.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 5KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.felecan.com/jquery-normal-color-picker/">Open</a> | <a class="opennew" href="http://www.felecan.com/jquery-normal-color-picker/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>jQuery color picker by Syronex</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/jquery-color-picker.jpg" /></p>
<p>It is a simple color picker which is useful when you want to show a defined set of colors and the user should select only from them (For eg: To select a theme color in web sites).</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">Less than 4KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (GPL)</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.syronex.com/software/jquery-color-picker">Open</a> | <a class="opennew" href="http://www.syronex.com/software/jquery-color-picker" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Others</h3>
<ul>
<li><a class="opennew" href="http://wanderinghorse.net/computing/javascript/jquery/colorpicker/demo-colorpicker.html" target="_blank">Rudimentary jQuery color picker</a></li>
<li><a class="opennew" href="http://www.intelliance.fr/jquery/color_picker/" target="_blank">jQuery color picker by intelliance.com</a></li>
</ul>
<h2>Color pickers for Mootools</h2>
<h3>Moo Rainbow</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/moorainbow.jpg" /></p>
<blockquote><p>mooRainbow is a powerful Javascript color picker that allows you to visually choose and use colors as a real and useful application.</p></blockquote>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>MooTools</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">5KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None (MIT License)</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://moorainbow.woolly-sheep.net/">Open</a> | <a class="opennew" href="http://moorainbow.woolly-sheep.net/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Mootools color picker by Sweetvision.com</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/color-picker-example-1-sweetvision1.jpg" /></p>
<blockquote><p>The Color Picker displays a Hue selection bar Saturation/Value selection box, Text fields for entering HSV and RGB fields. The dialog for the color picker is drag-able and there are many actions that you can attach function calls to in order to allow your application to respond to events in the Color Picker. The size of the Hue Bar and the SV Box can be set to any size using options. The elements of the Color Picker can be styled to match the design of your site.</p></blockquote>
<p>It supports two types of interface &#8211; a popup layer type and an in-place color picker</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/color-picker-example-2-sweetvision.jpg" /></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>MooTools</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">12KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://www.sweetvision.com/projects/javascript-color-picker/">Open</a> | <a class="opennew" href="http://www.sweetvision.com/projects/javascript-color-picker/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h2>Color pickers for Prototype</h2>
<h3>Color picker by John Dyer</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/color-picker.jpg" /></p>
<p>It is a photoshop like color plugin built on prototype library.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>Prototype</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">10KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://johndyer.name/post/2007/09/PhotoShop-like-JavaScript-Color-Picker.aspx">Open</a> | <a class="opennew" href="http://johndyer.name/post/2007/09/PhotoShop-like-JavaScript-Color-Picker.aspx" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<h3>Prototype color picker by Myles Eftos</h3>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/javascript-colour-picker-demo-by-myles-eftos.jpg" /></p>
<p>It is a simple color picker which support web safe palette.</p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>Prototype</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">5KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://myles.eftos.id.au/blog/2006/04/13/javascript-colour-picker-based-on-prototype/">Open</a> | <a class="opennew" href="http://myles.eftos.id.au/blog/2006/04/13/javascript-colour-picker-based-on-prototype/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/prototype/most-useful-prototype-plugins.html' rel='bookmark' title='Permanent Link: Most useful prototype / script.aculo.us plugins'>Most useful prototype / script.aculo.us plugins</a> <small>Prototype is one of the earliest new generation javascript libraries...</small></li><li><a href='http://cool-javascripts.com/effects/improved-lava-lamp-effect-for-jquery-and-mootools.html' rel='bookmark' title='Permanent Link: Improved lava lamp effect for jQuery and Mootools'>Improved lava lamp effect for jQuery and Mootools</a> <small>The lava lamp effect was an excellent technique to turn...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-and-mootools-plugin-to-show-tooltips.html' rel='bookmark' title='Permanent Link: jQuery and Mootools plugin to show tooltips'>jQuery and Mootools plugin to show tooltips</a> <small>The tooltip is a common graphical user interface element. It...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/jquery/color-picker-galore.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add icons to your links automatically using jQuery &amp; CSS</title>
		<link>http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html</link>
		<comments>http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html#comments</comments>
		<pubDate>Mon, 12 Jan 2009 09:54:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dynamic icons]]></category>
		<category><![CDATA[link dressup]]></category>
		<category><![CDATA[link styles]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html</guid>
		<description><![CDATA[You want to show a particular icon to a particular type of link. For eg: a pdf icon to all pdf file links, a text document icon to all text document links, zip icon to all links that are linked to zip files etc. Why jQuery? Yes, it is not that difficult with css. Just [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/vertical-alignment-of-contents-inside-an-element-using-jquery.html' rel='bookmark' title='Permanent Link: Vertical alignment of contents inside an element using jQuery'>Vertical alignment of contents inside an element using jQuery</a> <small>One of the old problems! Vertical alignment of contents inside...</small></li><li><a href='http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html' rel='bookmark' title='Permanent Link: Building a reusabe font size controller interface using jQuery'>Building a reusabe font size controller interface using jQuery</a> <small>Most of the web2.0 design allows the user to change...</small></li><li><a href='http://cool-javascripts.com/effects/make-curved-corners-with-jquery-corner-plugin.html' rel='bookmark' title='Permanent Link: Make curved corners with jQuery Corner plugin'>Make curved corners with jQuery Corner plugin</a> <small>If you want a curved edge for your element, the...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>You want to show a particular icon to a particular type of link. For eg: a pdf icon to all pdf file links, a text document icon to all text document links, zip icon to all links that are linked to zip files etc.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/dynamic-icons.jpg" /></p>
<p><b>Why jQuery?<br />
</b><br />
Yes, it is not that difficult with css. Just declare some classes and give background images then assign that class to the links as required. Then why we need jQuery. The answer is, for simplicity. Who ever entering the content should be cautious to add the right classes for the right links. Also adding classes are difficult in a blog platform &#8211; you will need to switch to HTML view instead of the editor view.</p>
<p>Using jQuery we&#8217;ll make sure that the right icon is showing for a particular link. <span id="more-99"></span></p>
<p><b>Step 1 &#8211; Find the right icons</b></p>
<p>Getting a free icon describing your file type is easy. You might need to search for free icon sets, or better search in any of the three following icon search engines. For eg: search for the term &#8220;pdf&#8221; and you will see a lot of images in different dimensions, select the one that suits your need. Just make sure you&#8217;re not using a copyrighted icon <img src='http://cool-javascripts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<ol>
<li><a rel="shadowbox" href="http://www.iconlook.com" rel="shadowbox">Icon Look &#8211; http://www.iconlook.com</a></li>
<li><a rel="shadowbox" href="http://www.iconlet.com">Icon Let &#8211; http://www.iconlet.com</a></li>
<li><a href="http://www.iconfinder.net">Icon Finder &#8211; http:www.iconfinder.net</a></li>
</ol>
<p>Here I am using five icons &#8211; One for pdf files, one for txt documents, one for zip files, one for email links and one for external links. You may add any number of icons for any file type as I am going to describe in the next sections.</p>
<p class="note">I&#8217;ve selected icons of 16px in size because it look better in content. If you need large icons, you will need to use the css display:block property. </p>
<p><b><br />
CSS styles<br />
</b><br />
Now we&#8217;ve have the right icons. Now we need to add classes with background image.</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">a<span style="color: #6666ff;">.pdf</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*The background image*/</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/pdf.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>;
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span>;
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span>; <span style="color: #808080; font-style: italic;">/* To center the text vertically with the icon */</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.txt</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*The background image*/</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/txt.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>;
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span>;
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.zip</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*The background image*/</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/zip.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>;
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span>;
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.email</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/email.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>;
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span>;
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span>;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.external</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/ext_link.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>;
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span>;
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span>;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p class="note" if you want to use large icons, you need to turn the anchor element display style to block. Otherwise, the images will be hidden at the edges.</p>
<p>Eg:</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">&nbsp;
<span style="color: #6666ff;">.download</span> a<span style="color: #6666ff;">.zip</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*The background image*/</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/zip.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span>;
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">48px</span>;
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">55px</span>;
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">48px</span>; <span style="color: #808080; font-style: italic;">/* Center the text vertically with image */</span>
	<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">bottom</span>; <span style="color: #808080; font-style: italic;">/* to align the text with image bottom, line height property required */</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span>; <span style="color: #808080; font-style: italic;">/* Need this to show the images fully */</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span>; <span style="color: #808080; font-style: italic;">/* You might need this as well for aligning it with the parent element */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>JQuery</strong> </p>
<p>Now, we can write the jQuery statements.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
&nbsp;
	<span style="color: #006600; font-style: italic;">// Add pdf icons to pdf links</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a[href$='.pdf']&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;pdf&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">// Add txt icons to document links (doc, rtf, txt)</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a[href$='.doc'], a[href$='.txt'], a[href$='.rft']&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;txt&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">// Add zip icons to Zip file links (zip, rar)</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a[href$='.zip'], a[href$='.rar']&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;zip&quot;</span><span style="color: #009900;">&#41;</span>; 
&nbsp;
	<span style="color: #006600; font-style: italic;">// Add email icons to email links</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a[href^='mailto:']&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;email&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
	<span style="color: #006600; font-style: italic;">//Add external link icon to external links - </span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Compare the anchor tag's host name with location's host name</span>
	    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">hostname</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">hostname</span> <span style="color: #339933;">!==</span> location.<span style="color: #660066;">hostname</span>;
	  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;external&quot;</span><span style="color: #009900;">&#41;</span>;
	<span style="color: #006600; font-style: italic;">//You might also want to set the _target attribute to blank</span>
	<span style="color: #006600; font-style: italic;">/*
	$('a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname &amp;&amp; this.hostname !== location.hostname;
	  }).addClass(&quot;external&quot;).attr(&quot;target&quot;, &quot;_blank&quot;);
	*/</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p class="note">For determining the links, we&#8217;re using jQuery&#8217;s attribute syntax. For eg: To identify PDF links, we check whether the href attribute ends with a &#8216;.pdf&#8217; extension. </p>
<p>To find external links we&#8217;ll compare the anchor tag&#8217;s host name with the location host name </p>
<p class="wanrning">Do not copy paste from the above code. It is formatted for viewig. Please download the full source code at the end </p>
<p><strong>demo</strong><br />
It will look like the below image. For an actual demo check the below links.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/demo-links.jpg" /></p>
<p class="download"><strong>Demo &amp; Download</strong><br />
<a class="opensame" rel="shadowbox" href="http://www.demos.cool-javascripts.com/jquery-icons-to-links.html">Demo</a><br />
<a class="opennew" href="http://demos.cool-javascripts.com/jquery-icons-to-links.zip">Download full examples (24 KB) </a></p>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/jquery/vertical-alignment-of-contents-inside-an-element-using-jquery.html' rel='bookmark' title='Permanent Link: Vertical alignment of contents inside an element using jQuery'>Vertical alignment of contents inside an element using jQuery</a> <small>One of the old problems! Vertical alignment of contents inside...</small></li><li><a href='http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html' rel='bookmark' title='Permanent Link: Building a reusabe font size controller interface using jQuery'>Building a reusabe font size controller interface using jQuery</a> <small>Most of the web2.0 design allows the user to change...</small></li><li><a href='http://cool-javascripts.com/effects/make-curved-corners-with-jquery-corner-plugin.html' rel='bookmark' title='Permanent Link: Make curved corners with jQuery Corner plugin'>Make curved corners with jQuery Corner plugin</a> <small>If you want a curved edge for your element, the...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>jQuery seekAttention plugin to get the users attention</title>
		<link>http://cool-javascripts.com/effects/jquery-seekattention-plugin-to-get-the-users-attention.html</link>
		<comments>http://cool-javascripts.com/effects/jquery-seekattention-plugin-to-get-the-users-attention.html#comments</comments>
		<pubDate>Sun, 11 Jan 2009 14:09:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Effects]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[element highlight]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[seek attention]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/effects/jquery-seekattention-plugin-to-get-the-users-attention.html</guid>
		<description><![CDATA[The &#8220;seekAttention&#8221; plugin gracefully get&#8217;s your users attention by fading out a definable area but leaving the target element (the element which is seeking attention) un-faded and thereby focusing the users attention on it. The definable area (to be called &#8220;container&#8221; from this point forward) can be the entire page or any element which surrounds [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/effects/make-curved-corners-with-jquery-corner-plugin.html' rel='bookmark' title='Permanent Link: Make curved corners with jQuery Corner plugin'>Make curved corners with jQuery Corner plugin</a> <small>If you want a curved edge for your element, the...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-floating-box-plugin.html' rel='bookmark' title='Permanent Link: jQuery floating box plugin'>jQuery floating box plugin</a> <small> In may cases, web page contents does not fit...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-and-mootools-plugin-to-show-tooltips.html' rel='bookmark' title='Permanent Link: jQuery and Mootools plugin to show tooltips'>jQuery and Mootools plugin to show tooltips</a> <small>The tooltip is a common graphical user interface element. It...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<blockquote><p>The &#8220;<strong>seekAttention</strong>&#8221; plugin gracefully get&#8217;s your users attention by fading out a definable area but leaving the target element (the element which is seeking attention) un-faded and thereby focusing the users attention on it. </p>
<p>The definable area (to be called &#8220;container&#8221; from this point forward) can be the entire page or any element which surrounds the target element and the colour which overlays the container can also be defined by you.
</p>
</blockquote>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/seek-attention-jquery-plugin-by-james-padolsey.jpg" /></p>
<p>This plugin can be useful for web based tutorials or in forms (May be in validation). <span id="more-95"></span></p>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">5KB (compressed)</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Downlaod</th>
<td><a class="opensame" rel="shadowbox" href="http://enhance.qd-creative.co.uk/demo/seekAttention/#demos">Open</a> | <a class="opennew" href="http://enhance.qd-creative.co.uk/demo/seekAttention/#demos" target="_blank">New window</a></td>
</tr>
</tbody>
</table>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/effects/make-curved-corners-with-jquery-corner-plugin.html' rel='bookmark' title='Permanent Link: Make curved corners with jQuery Corner plugin'>Make curved corners with jQuery Corner plugin</a> <small>If you want a curved edge for your element, the...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-floating-box-plugin.html' rel='bookmark' title='Permanent Link: jQuery floating box plugin'>jQuery floating box plugin</a> <small> In may cases, web page contents does not fit...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-and-mootools-plugin-to-show-tooltips.html' rel='bookmark' title='Permanent Link: jQuery and Mootools plugin to show tooltips'>jQuery and Mootools plugin to show tooltips</a> <small>The tooltip is a common graphical user interface element. It...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/effects/jquery-seekattention-plugin-to-get-the-users-attention.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improved lava lamp effect for jQuery and Mootools</title>
		<link>http://cool-javascripts.com/effects/improved-lava-lamp-effect-for-jquery-and-mootools.html</link>
		<comments>http://cool-javascripts.com/effects/improved-lava-lamp-effect-for-jquery-and-mootools.html#comments</comments>
		<pubDate>Sat, 10 Jan 2009 18:37:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Effects]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[lava lamp]]></category>
		<category><![CDATA[lavalamp]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[Navigation]]></category>

		<guid isPermaLink="false">http://cool-javascripts.com/uncategorized/improved-lava-lamp-effect-for-jquery-and-mootools.html</guid>
		<description><![CDATA[The lava lamp effect was an excellent technique to turn the navigation to a flash like animation. LavaLamp allows you to add nifty background hover effects to HTML lists in combination with the Easing library. It is available for bot jQuery and Mootools LavaLamp &#8211; Lava lamp for jQuery Horizontal and vertical movement supported Callback [...]


Related posts:<ol><li><a href='http://cool-javascripts.com/galleries/three-lightbox-clones-for-mootools.html' rel='bookmark' title='Permanent Link: Three lightbox clones for Mootools'>Three lightbox clones for Mootools</a> <small>Just like jQuery, Mootools also has some nice lightbox clones...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-and-mootools-plugin-to-show-tooltips.html' rel='bookmark' title='Permanent Link: jQuery and Mootools plugin to show tooltips'>jQuery and Mootools plugin to show tooltips</a> <small>The tooltip is a common graphical user interface element. It...</small></li><li><a href='http://cool-javascripts.com/modal-windows/sexy-alert-box-for-mootools.html' rel='bookmark' title='Permanent Link: Sexy Alert Box for Mootools'>Sexy Alert Box for Mootools</a> <small> It is an excellent script to replace the javascript...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The lava lamp effect was an excellent technique to turn the navigation to a flash like animation. LavaLamp allows you to add nifty background hover effects to HTML lists in combination with the Easing library.</p>
<p><img src="http://cool-javascripts.com/wp-content/uploads/2009/01/lavalamp.jpg" /></p>
<p>It is available for  bot jQuery and Mootools <span id="more-91"></span></p>
<h2>LavaLamp &#8211; Lava lamp for jQuery</h2>
<ul>
<li>Horizontal and vertical movement supported
</li>
<li>Callback support on completion
</li>
<li>Easing library support &#8211; Can use any supported animation
</li>
<li>Speed can be adjusted</li>
</ul>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>jQuery, Easing plugin</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">5 KB (Uncompressed) </td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo</th>
<td><a class="opensame" rel="shadowbox" href="http://nixboxdesigns.com/lavalamptest.html">Open</a>  | <a class="opennew" href="http://nixboxdesigns.com/lavalamptest.html" target="_blank">Open in new window</a></td>
</tr>
<tr>
<th>Info &amp; Download</th>
<td><a class="opennew" href="http://nixboxdesigns.com/lavalamp.php" target="_blank">Open</a></td>
</tr>
</tbody>
</table>
<p class="note">Don&#8217;t forget to checkout the different easing effects (On top of the demo page) </p>
<h2>Fancy Menu &#8211; Lava lamp for Mootools</h2>
<table border="0">
<tbody>
<tr>
<th>Dependencies</th>
<td>Mootools (Latest version requires 1.2)</td>
</tr>
<tr>
<th>Size</th>
<td class="alt">2KB</td>
</tr>
<tr>
<th>Restrictions</th>
<td>None</td>
</tr>
<tr>
<th>Demo &amp; Download</th>
<td><a class="opensame" rel="shadowbox" href="http://devthought.com/cssjavascript-true-power-fancy-menu/">Open</a>  | <a class="opennew" href="http://devthought.com/cssjavascript-true-power-fancy-menu/" target="_blank">Open in new window</a></td>
</tr>
</tbody>
</table>
<p class="note">Also, check the <a href="http://devthought.com/barackslideshow-an-elegant-lightweight-slideshow-script/" target="_blank">Barack Slideshow plugin</a> based on the MorphList plugin for Mootools. </p>


<p>Related posts:<ol><li><a href='http://cool-javascripts.com/galleries/three-lightbox-clones-for-mootools.html' rel='bookmark' title='Permanent Link: Three lightbox clones for Mootools'>Three lightbox clones for Mootools</a> <small>Just like jQuery, Mootools also has some nice lightbox clones...</small></li><li><a href='http://cool-javascripts.com/jquery/jquery-and-mootools-plugin-to-show-tooltips.html' rel='bookmark' title='Permanent Link: jQuery and Mootools plugin to show tooltips'>jQuery and Mootools plugin to show tooltips</a> <small>The tooltip is a common graphical user interface element. It...</small></li><li><a href='http://cool-javascripts.com/modal-windows/sexy-alert-box-for-mootools.html' rel='bookmark' title='Permanent Link: Sexy Alert Box for Mootools'>Sexy Alert Box for Mootools</a> <small> It is an excellent script to replace the javascript...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://cool-javascripts.com/effects/improved-lava-lamp-effect-for-jquery-and-mootools.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

