<?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>WebDesign&#38;Such &#187; Slider</title>
	<atom:link href="http://webdesignandsuch.com/tag/slider/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesignandsuch.com</link>
	<description>a Beantown Design Production</description>
	<lastBuildDate>Thu, 17 May 2012 23:40:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to Register Multiple Custom Menus in WordPress</title>
		<link>http://webdesignandsuch.com/how-to-register-multiple-custom-menus-in-wordpress/</link>
		<comments>http://webdesignandsuch.com/how-to-register-multiple-custom-menus-in-wordpress/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 14:14:11 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=3240</guid>
		<description><![CDATA[WordPress custom menus are one of the best features released within the last few years by the WordPress team. But what if you need to add multiple menus (perhaps separate header and footer navigation menus)? Here's how you add multiple custom menus in WordPress.]]></description>
			<content:encoded><![CDATA[<p>WordPress custom menus are one of the best features released within the last few years by the WordPress team. The easy drag and drop editor makes it a breeze to add pages, categories, or even external links without the use of any plugins. But what if you need to add multiple menus (perhaps separate header and footer navigation menus)? Here&#8217;s how you add multiple custom menus in WordPress.</p>
<p>Add the following to your functions.php file. The 2 menus we are creating are the &#8220;Primary&#8221;, and &#8220;Secondary&#8221; menus.</p>
<pre class="brush: php; title: ; notranslate">//Register Navigations
add_action( 'init', 'my_custom_menus' );
function my_custom_menus() {
    register_nav_menus(
        array(
            'primary-menu' =&gt; __( 'Primary Menu' ),
            'secondary-menu' =&gt; __( 'Secondary Menu' )
        )
    );
}
</pre>
<p>To add them to your site you need to add the following to your WordPress template files <em>(most likely your header.php and footer.php files)</em>. I also added the code which allows you to change the CSS class for the nav bars.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php wp_nav_menu (array('theme_location' =&gt; 'primary-menu','menu_class' =&gt; 'nav'));?&gt;
&lt;?php wp_nav_menu (array('theme_location' =&gt; 'secondary-menu','menu_class' =&gt; 'nav'));?&gt;
</pre>
<p style="height:100px">
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/how-to-register-multiple-custom-menus-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect to a Mobile Site with .htaccess and Set a Cookie to Break Redirect</title>
		<link>http://webdesignandsuch.com/redirect-to-a-mobile-site-with-htaccess-and-set-a-cookie-to-break-redirect/</link>
		<comments>http://webdesignandsuch.com/redirect-to-a-mobile-site-with-htaccess-and-set-a-cookie-to-break-redirect/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 17:50:37 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=3341</guid>
		<description><![CDATA[What good is a mobile website if you can't get people to it? By using a .htaccess file and setting a cookie you can direct people on mobile devices to your mobile website, and allow them to then visit your full site without being redirected.]]></description>
			<content:encoded><![CDATA[<p>Recently mobile websites have become extremely popular and important in the web development world. The days of people having crappy flip phones with no internet or javascript are over. People have quality phones now, so having a mobile optimized website is no longer a luxury but a necessity.</p>
<p>If you&#8217;re looking into developing a mobile website for your business or for your client make sure to checkout my mobile website and theme pack &#8220;emdot&#8221;, available <a href="http://goo.gl/d1TJL" target="_blank">exclusively on ThemeForest</a>. For only $9 you get a fully functioning mobile site with 12 different themes, a validating contact form, a portfolio with mobile touch, an &#8220;add to home bubble&#8221; for iPhones and iPads, 50+ icons for the navigation, 20 social media icons, and a bunch more. Simply pop in your content and you&#8217;re ready to go. Well almost ready to go, the last thing you&#8217;re going to need is to redirect people to your new mobile website.</p>
<p>Redirecting people to your mobile website is easy enough by using a .htaccess file. Basically you say &#8220;if people visiting my website are on a mobile device send them to http://m.example.com, and if they aren&#8217;t on a mobile device send them to http://example.com&#8221;. This of course assumes that you setup a subdomain located at &#8220;m.example.com&#8221;.</p>
<p>After setting this up for a client I realized one problem with this. When setting up your mobile website you should have a link in the footer allowing the user to visit your full website (you most likely have some content on your full website that you don&#8217;t have on your mobile website). Your link would look something like this: </p>
<pre class="brush: plain; title: ; notranslate">&lt;a href=&quot;http://example.com&quot;&gt;Visit full site&lt;/a&gt;</pre>
<p> Easy enough, except for one thing.. we redirected the users from the main site to the mobile site. So if they click the &#8220;visit full site&#8221; link they will be redirected back to the mobile site again. </p>
<p>The solution is to set a cookie which allows you to visit the full site without being redirected. Setting the cookie allows you to go from the mobile site to the full site, and visit any page on the full site once you&#8217;re there without being redirected back to the mobile site.</p>
<h4 style="margin-bottom:5px">Step 1.</h4>
<p> Setup your mobile site at http://m.example.com</p>
<h4 style="margin-bottom:5px">Step 2.</h4>
<p> Add the following link to your mobile site: </p>
<pre class="brush: plain; title: ; notranslate">&lt;a href=&quot;http://www.example.com?m=0&quot;&gt;Full Website&lt;/a&gt;</pre>
<p>*If you&#8217;re using jQuery mobile (such as the <a href="http://goo.gl/d1TJL" target="_blank">emdot theme</a>), you may need to add rel=&#8221;external&#8221; to your link, like this:</p>
<pre class="brush: plain; title: ; notranslate">&lt;a rel=&quot;external&quot; href=&quot;http://www.example.com?m=0&quot;&gt;Full Website&lt;/a&gt;</pre>
<h4 style="margin-bottom:5px">Step 3.</h4>
<p> Create a .htaccess file (which is just a regular file such as a .txt files renamed .htaccess). Add the following code and replace the 2 domain names. Upload the file to the root of your website. If you already have a .htaccess file simply add this code to the existing file.</p>
<p><em>*Notes: Make sure you don&#8217;t overwrite your existing .htaccess file by accident. This only works on Apache servers.</em></p>
<pre class="brush: plain; title: ; notranslate">RewriteEngine on
RewriteBase /

# Check if this is the noredirect query string
RewriteCond %{QUERY_STRING} (^|&amp;)m=0(&amp;|$)
# Set a cookie, and skip the next rule
RewriteRule ^ - [CO=mredir:0:www.example.com]

RewriteCond %{HTTP:x-wap-profile} !^$ [OR]
RewriteCond %{HTTP:Profile}       !^$ [OR]
RewriteCond %{HTTP_USER_AGENT} &quot;acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT}  &quot;maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;wapp|wapr|webc|winw|winw|xda|xda-&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;up.browser|up.link|windowssce|iemobile|mini|mmp&quot; [NC,OR]
RewriteCond %{HTTP_USER_AGENT} &quot;symbian|midp|wap|phone|pocket|mobile|pda|psp&quot; [NC]
RewriteCond %{HTTP_USER_AGENT} !macintosh [NC]

# Check if we're not already on the mobile site
RewriteCond %{HTTP_HOST}          !^m\.
# Can not read and write cookie in same request, must duplicate condition
RewriteCond %{QUERY_STRING} !(^|&amp;)m=0(&amp;|$) 

# Check to make sure we haven't set the cookie before
RewriteCond %{HTTP_COOKIE}        !^.*mredir=0.*$ [NC]

# Now redirect to the mobile site
RewriteRule ^ http://m.example.com [R,L]</pre>
<p><em>Credit.</em> I tried a few different scripts to find a solution that worked for me, and the above script was the winner. The original script came from <a href="http://stackoverflow.com/questions/3680463/mobile-redirect-using-htaccess" target="_blank">this thread</a> on Stack Overflow.</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/redirect-to-a-mobile-site-with-htaccess-and-set-a-cookie-to-break-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Awesome jQuery Responsive Sliders, Galleries &amp; Plugins</title>
		<link>http://webdesignandsuch.com/responsive-sliders-images-galleries-plugins-jquery/</link>
		<comments>http://webdesignandsuch.com/responsive-sliders-images-galleries-plugins-jquery/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 11:42:50 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Responsive]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=2855</guid>
		<description><![CDATA[Responsive website layouts have become increasingly popular. What are developers supposed to do about sliders and galleries when developing a responsive website? Here are 10 great solutions.]]></description>
			<content:encoded><![CDATA[<p>Responsive website layouts have become extremely popular recently due to the increasing support of desktop browsers and the increasing variety of browser sizes on other devices (tablets and phones). A responsive layout shrinks to fit whatever screen it&#8217;s on, making the website the correct size depending on the screen size. Many design blog owners have switched their blogs over to a responsive layout. A blog is mostly text and images, making this process rather easy. </p>
<p>The idea of creating responsive websites for real world business websites raises a few questions. The main question many designers and developers had (including myself) was <strong>&#8220;What about image galleries and sliders?&#8221;</strong>. Most websites have moved away from Flash in the last few years, many Flash animations being replaced by jQuery sliders. So how do you deal with a slider when developing a responsive website? Until now that left most people scratching their heads, but recently there have been some great responsive image sliders, galleries and plugins released.. so let me introduce <strong>my roundup of the 10 best responsive image sliders and galleries you can use on your website today</strong><em>(in no special order)</em>.. enjoy!</p>
<h2>1. <a href="http://flex.madebymufffin.com/" target="_blank">FlexSlider</a></h2>
<p><a href="http://flex.madebymufffin.com/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-jquery-slider.jpg" alt="responsive jquery slider"  width="575" height="410" class="alignnone size-full wp-image-3191" /></a></p>
<h2>2. <a href="http://marktyrrell.com/labs/blueberry/" target="_blank">Blueberry</a></h2>
<p><a href="http://marktyrrell.com/labs/blueberry/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-jquery-images.jpg" alt="responsive jquery images" width="575" height="223" class="alignnone size-full wp-image-3188" /></a></p>
<h2>3. <a href="http://tympanus.net/Tutorials/ResponsiveImageGallery/" target="_blank">Responsive Image Gallery</a></h2>
<p><a href="http://tympanus.net/Tutorials/ResponsiveImageGallery/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-thumbnail-gallery.jpg" alt="responsive thumbnail gallery"  width="575" height="361" class="alignnone size-full wp-image-3192" /></a></p>
<h2>4. <a href="http://responsiveslides.com/" target="_blank">Responsive jQuery Slideshow</a></h2>
<p><a href="http://responsiveslides.com/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-jquery-slideshow.jpg" alt="responsive jquery slideshow" width="575" height="397" class="alignnone size-full wp-image-3187" /></a></p>
<h2>5. <a href="http://goo.gl/06Knw" target="_blank">UnoSlider</a></h2>
<p><a href="http://goo.gl/06Knw" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-jquery-image-slider.jpg" alt="responsive jquery image slider"  width="575" height="272" class="alignnone size-full wp-image-3185" /></a></p>
<h2>6. <a href="http://tympanus.net/Development/Elastislide/" target="_blank">Elastislide</a></h2>
<p><a href="http://tympanus.net/Development/Elastislide/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/jquery-responsive-plugin.jpg" alt="jquery responsive plugin"  width="575" height="185" class="alignnone size-full wp-image-3190" /></a></p>
<h2>7. <a href="http://www.photoswipe.com/" target="_blank">Photoswipe</a></h2>
<p><a href="http://www.photoswipe.com/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-image-gallery.jpg" alt="responsive image gallery"  width="575" height="384" class="alignnone size-full wp-image-3189" /></a></p>
<h2>8. <a href="http://www.matmarquis.com/carousel/" target=_blank">Responsive jQuery Carousel</a></h2>
<p><a href="http://www.matmarquis.com/carousel/" target=_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-carousel.jpg" alt="responsive jquery carousel"  width="575" height="291" class="alignnone size-full wp-image-3183" /></a></p>
<h2>9. <a href="http://css-tricks.com/13372-seamless-responsive-photo-grid/" target="_blank">Seamless Responsive Photo Grid</a></h2>
<p><a href="http://css-tricks.com/13372-seamless-responsive-photo-grid/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-image-grid.jpg" alt="responsive image grid"  width="575" height="407" class="alignnone size-full wp-image-3186" /></a></p>
<h2>10. <a href="http://johnpolacek.github.com/ResponsiveThumbnailGallery/" target="_blank">responsive thumbnail image gallery plugin</a></h2>
<p><a href="http://johnpolacek.github.com/ResponsiveThumbnailGallery/" target="_blank"><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-gallery-thumbnail.jpg" alt="responsive thumbnail image gallery plugin"  width="575" height="322" class="alignnone size-full wp-image-3194" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/responsive-sliders-images-galleries-plugins-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Great WordCamp Website Designs</title>
		<link>http://webdesignandsuch.com/10-great-wordcamp-website-designs/</link>
		<comments>http://webdesignandsuch.com/10-great-wordcamp-website-designs/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 13:45:16 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=2493</guid>
		<description><![CDATA[WordCamp is a conference for WordPress designers and developers. The meetups are all over the country and world. Each WordCamp has it's own website, each with it's own designs. Here is a roundup of ten great WordCamp designs.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking at the different WordCamp conferences around the country and world lately and noticed one thing in common, a lot of great website designs. You would hope that they put some work into the designs of the websites, since the meetups are for designers and developers. </p>
<p><strong>Here are 10 great looking WordCamp website designs:</strong></p>
<h2 style="margin-top:20px">1. <a href="http://2011.sf.wordcamp.org/" target="_blank">SF.wordcamp.org</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/wordcamp-san-francisco.jpg" alt="wordcamp san francisco" title="wordcamp san francisco" width="575" height="580" class="alignnone size-full wp-image-2602" /></p>
<h2 style="margin-top:20px">2. <a href="http://kobe2011.wordcamp.jp/" target="_blank">Kobe2011.wordcamp.jp</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/word-camp-kobe.jpg" alt="word camp kobe" title="word camp kobe" width="575" height="626" class="alignnone size-full wp-image-2603" /></p>
<h2 style="margin-top:20px">3. <a href=" http://2011.capetown.wordcamp.org/" target="_blank">Capetown.wordcamp.org</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/wordcamp-capetown.jpg" alt="wordcamp capetown" title="wordcamp capetown" width="575" height="566" class="alignnone size-full wp-image-2734" /></p>
<h2 style="margin-top:20px">4. <a href="http://wordcampmidatlantic.com/" target="_blank">WordcampMidAtlantic.com</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/mid-atlantic-word-camp.jpg" alt="mid atlantic word camp" title="mid atlantic word camp" width="575" height="495" class="alignnone size-full wp-image-2604" /></p>
<h2 style="margin-top:20px">5. <a href="http://wordcampseattle.org/" target="_blank">WordcampSeattle.org</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/seattle-wordcamp.jpg" alt="seattle wordcamp" title="seattle wordcamp" width="515" height="1323" class="alignnone size-full wp-image-2637" /></p>
<h2 style="margin-top:20px">6. <a href="http://www.wckansascity.or" target="_blank">WCkansascity.or</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/wordcamp-kansas-city.jpg" alt="wordcamp kansas-city" title="wordcamp kansas-city" width="575" height="619" class="alignnone size-full wp-image-2609" /></p>
<h2 style="margin-top:20px">7. <a href="http://atlantawordcamp.com/" target="_blank">Atlantawordcamp.com</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/wordcamp-atlanta.jpg" alt="wordcamp atlanta" title="wordcamp atlanta" width="570" height="654" class="alignnone size-full wp-image-2608" /></p>
<h2 style="margin-top:20px">8. <a href="http://2011.oc.wordcamp.org/" target="_blank">OC.wordcamp.org</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/orange-county-wordcamp.jpg" alt="orange county wordcamp" title="orange county wordcamp" width="575" height="821" class="alignnone size-full wp-image-2607" /></p>
<h2 style="margin-top:20px">9. <a href="http://2011.sandiego.wordcamp.org/" target="_blank">Sandiego.wordcamp.org</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/wordcamp-san-diego.jpg" alt="wordcamp san-diego" title="wordcamp-san-diego" width="575" height="585" class="alignnone size-full wp-image-2733" /></p>
<h2 style="margin-top:20px">10.<a href="http://wordcampjerusalem.com/en/" target="_blank">WordcampJerusalem.com</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/wordcamp-jerusalem.jpg" alt="wordcamp jerusalem" title="wordcamp jerusalem" width="575" height="647" class="alignnone size-full wp-image-2737" /></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/10-great-wordcamp-website-designs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a fading magnifying glass overlay on image hover with jQuery and CSS3</title>
		<link>http://webdesignandsuch.com/create-overlay-on-image-hover-jquery-css3/</link>
		<comments>http://webdesignandsuch.com/create-overlay-on-image-hover-jquery-css3/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 14:15:05 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=2477</guid>
		<description><![CDATA[Here's a demo of how to create a fading transparent overlay effect of  a magnifying glass when you hover over an image, using jQuery &#038; CSS3. A great way to make image galleries more user friendly.]]></description>
			<content:encoded><![CDATA[<p>A common method for setting up a quick image gallery on a website is to have small thumnbnail images which when clicked on pop open larger versions of the image <em>(using a script like Fancybox)</em>. It&#8217;s a good idea to have some sort of effect on the smaller thumbnail images when they are hovered over to make it more user friendly <em>(in the same way you might change the color of a text link when hovered over)</em>. One simple method is to put a colored border around the image with CSS and change the color of the border when hovered over. Another more exciting option is to apply a background shadow behind the image with CSS3 when hovered over. I&#8217;ve used both of these methods on multiple websites, but wanted a more exciting solution.</p>
<h3>The Idea</h3>
<p>What I decided to create was a transparent image overlay when hovered on. So when you hover over the image you would see a magnifying glass icon over a transparent black background. This would make it easy for the user to see where they are on the page. Another reason this method is better than simply changing the border color is that the magnifying glass gives an indication that the image will zoom in or expand when clicked on. I&#8217;ve create two ways of accomplishing this effect, one used jQuery, and the other uses only CSS3.</p>
<h3>The Solution</h3>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/jquery-fade1.jpg" alt="jquery fade image" title="jquery fade image" width="443" height="338" class="alignnone size-full wp-image-2696" /></p>
<p>Both methods use similar techniques, the only difference is weather they use jQuery or CSS for fading the opcaity. There is an image wrapped in a link. Inside of this link there is a span element. By setting the span to display block, setting the width and height of the span, and setting a higher z-index than the image; the span element covers the image. By setting the background image and color the span element hides the original image. Setting the opacity to zero on the span element allows the thumbnail image to be seen. To create the overlay effect we simply change the opacity of the span element to 70% <em>(or whatever you want to use for your project)</em>. One method uses jQuery to apply this opacity, the other method uses CSS3 transitions and opacity settings.</p>
<p><strong>Check out the demo, and grab the free download.</strong></p>
<div class="postButtons">
<div class="double"><a href="http://webdesignandsuch.com/posts/jquery-image-rollover/" class="demo">Demo</a><a href="http://webdesignandsuch.com/posts/jquery-image-rollover/jquery-image-rollover.zip" class="download">Download</a></div>
</div>
<h3 style="margin-top:40px">jQuery Method</h3>
<p>The jQuery method is cross browser safe, and unlike the CSS3 method fades the magnifying glass both in AND out. This method uses jQuery to set the opacity of the span element when hovered over. Here is the HTML for this method:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a class=&quot;image&quot;  href=&quot;#&quot;&gt;
	&lt;span class=&quot;roll&quot; &gt;&lt;/span&gt;
	&lt;img class=&quot;imgborder&quot; alt=&quot;&quot; src=&quot;images/pic.jpg&quot;&gt;
&lt;/a&gt;
</pre>
<p>Here is the CSS for this method:</p>
<pre class="brush: css; title: ; notranslate">
span.roll {
	background:url(images/mag.png) center center no-repeat #000;
	height: 346px;
	position: absolute;
	width: 347px;
	z-index: 10;
	-webkit-box-shadow: 0px 0px 4px #000;
	-moz-box-shadow: 0px 0px 4px  #000;
	box-shadow: 0px 0px 4px  #000;
}</pre>
<p>And the jQuery:</p>
<pre class="brush: jscript; title: ; notranslate">
$(function() {
// OPACITY OF BUTTON SET TO 0%
$(&quot;.roll&quot;).css(&quot;opacity&quot;,&quot;0&quot;);

// ON MOUSE OVER
$(&quot;.roll&quot;).hover(function () {

// SET OPACITY TO 70%
$(this).stop().animate({
opacity: .7
}, &quot;slow&quot;);
},

// ON MOUSE OUT
function () {

// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0
}, &quot;slow&quot;);
});
});
</pre>
<h3 style="margin-top:40px">CSS3 Method</h3>
<p>With the increasing support for CSS3 in modern browsers I just had to try this method using CSS3 opacity and transitions. Here&#8217;s the HTML for the CSS (no javascript used) method:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a class=&quot;image&quot;  href=&quot;#&quot;&gt;
	&lt;span class=&quot;rollover&quot; &gt;&lt;/span&gt;
	&lt;img class=&quot;imgborder&quot; alt=&quot;&quot; src=&quot;images/pic2.jpg&quot;&gt;
&lt;/a&gt;
</pre>
<p>Here&#8217;s the CSS, where all the magic happens:</p>
<pre class="brush: css; title: ; notranslate">
span.rollover {
	opacity: 1;
	-o-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-webkit-transition: -webkit-transform 1s;
	background:url(images/mag.png) center center no-repeat #000;
	cursor: pointer;
	height: 346px;
	width: 347px;
	position: absolute;
	z-index: 10;
	opacity: 0;
}

span.rollover:hover {
	opacity: .7;
	-o-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-webkit-transition: -webkit-transform 1s;
	-webkit-box-shadow: 0px 0px 4px #000;
	-moz-box-shadow: 0px 0px 4px #000;
	box-shadow: 0px 0px 4px #000;
}
</pre>
<p>Credits:<br />
<a href="http://www.hv-designs.co.uk/2010/01/13/learn-how-to-add-a-jquery-fade-in-and-out-effect/" target="_blank">jQuery Fade Script</a><br />
<a href="http://www.iconfinder.com/icondetails/16966/128/find_magnifying_glass_search_zoom_icon" target="_blank">Magnifying Glass Image</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/create-overlay-on-image-hover-jquery-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Must Have Bookmarks for Website Designers</title>
		<link>http://webdesignandsuch.com/10-bookmarks-for-website-designers-resources-tools/</link>
		<comments>http://webdesignandsuch.com/10-bookmarks-for-website-designers-resources-tools/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 16:19:08 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=2528</guid>
		<description><![CDATA[Every website designer and developer has a ton of great online resources they can use to help speed up their projects. Here is a list of what I consider to be ten of the best free resources (and a few tools) on the web for designers and developers.]]></description>
			<content:encoded><![CDATA[<p>Every website designer and developer has a ton of great online resources they can use to help speed up their projects. Here is a list of what I consider to be ten of the best free resources (and a few tools) on the web for designers and developers.</p>
<h2 style="margin-top:20px">1. <a href="http://www.premiumpixels.com/" target="_blank">PremiumPixels.com</a></h2>
<p>Premium Pixels has top notch free graphics. Instead of designing your button from scratch, pop over to this site to see if there is one that you can download and edit for your application.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/premium-pixels.jpg" alt="premium-pixels" title="premium-pixels" width="575" height="721" class="alignnone size-full wp-image-2534" /></p>
<h2 style="margin-top:20px">2. <a href="http://365psd.com/" target="_blank">365psd.com</a></h2>
<p>When I&#8217;m looking for free website graphics, I always make sure to check out this great site.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/365-free-psd.jpg" alt="365-free-psd" title="365-free-psd" width="575" height="485" class="alignnone size-full wp-image-2536" /></p>
<h2 style="margin-top:20px">3. <a href="http://designmoo.com/" target="_blank">DesignMoo.com</a></h2>
<p>Design Moo is one of the most popular resources online for free website graphics.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/design-moo.jpg" alt="design-moo" title="design-moo" width="575" height="630" class="alignnone size-full wp-image-2535" /></p>
<h2 style="margin-top:20px">4. <a href="http://www.iconfinder.com/" target="_blank">IconFinder.com</a></h2>
<p>If it&#8217;s icons you&#8217;re after, make sure to check out Icon Finder. This powerful search tool gives you a ton of results for common searches like &#8216;Twitter&#8217;, or &#8216;Facebook&#8217;; many icons are free to use on commercial projects.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/icon-finder.jpg" alt="icon finder" title="icon finder" width="575" height="428" class="alignnone size-full wp-image-2538" /></p>
<h2 style="margin-top:20px">5. <a href="http://subtlepatterns.com/" target="_blank">SubtlePatterns.com</a></h2>
<p>This site is rather young, but the quality of the free website background patterns that they have will have me coming back to the site for some time.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/subtle-patterns.jpg" alt="free website background patterns" title="free website background patterns" width="575" height="793" class="alignnone size-full wp-image-2532" /></p>
<h2 style="margin-top:20px">6. <a href="http://960.gs/" target="_blank">960.gs</a></h2>
<p>If you code websites you should be using this grid system. I don&#8217;t actually use their &#8216;code&#8217;, but the Photoshop website templates alone make them such a valuable resource.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/960-Grid-System.jpg" alt="960-Grid-System" title="960-Grid-System" width="575" height="515" class="alignnone size-full wp-image-2540" /></p>
<h2 style="margin-top:20px">7. <a href="http://html5boilerplate.com/" target="_blank">HTML5BoilerPlate.com</a></h2>
<p>HTML5 kicks ass. The HTML5 BoilerPlate offers a complete template with some amazing code. This is one of the best resources on the web without a doubt if you&#8217;re a coder.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/HTML5-Boilerplate.jpg" alt="HTML5 Boilerplate" title="HTML5 Boilerplate" width="575" height="598" class="alignnone size-full wp-image-2537" /></p>
<h2 style="margin-top:20px">8. <a href="http://html-ipsum.com/" target="_blank">html-ipsum.com</a></h2>
<p>Where do you copy your ipsum from? This website is great because it offers a whole variety, from a simple paragraph to more complicated lists, headings, etc. Great for quickly setting up dummy content on a website.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/html-ipsum.jpg" alt="html ipsum" title="html ipsum" width="575" height="444" class="alignnone size-full wp-image-2530" /></p>
<h2 style="margin-top:20px">9. <a href="http://scriptsrc.net/" target="_blank">ScriptSrc.net</a></h2>
<p>Don&#8217;t waste time tracking down the latest version of jQuery for your next project. These guys keep the link up to date with each release. I must go to this site at least every other day.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/jquery-code-copy.jpg" alt="jquery-code-copy" title="jquery-code-copy" width="575" height="1135" class="alignnone size-full wp-image-2531" /></p>
<h2 style="margin-top:20px">10. <a href="http://placehold.it/" target="_blank">Placehold.it</a></h2>
<p>This site might be not known to a lot of people, but it&#8217;s one of my favorites. Say you&#8217;re setting up a website and you need place holder images. Simply grab the code from this site, change the dimensions of the image right in your code, and voila!</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/image-placeholder.jpg" alt="website image placeholder" title="website image placeholder" width="575" height="533" class="alignnone size-full wp-image-2533" /></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/10-bookmarks-for-website-designers-resources-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Post-it Note with CSS3</title>
		<link>http://webdesignandsuch.com/create-a-post-it-note-with-css3/</link>
		<comments>http://webdesignandsuch.com/create-a-post-it-note-with-css3/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 15:17:17 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=2452</guid>
		<description><![CDATA[If you need to put a quick note on a website, why not use a Post-it note? There's no need to use any images now that we have good old CSS3. We can use some nice handwritten text, skew the note to the side, even add a shadow.]]></description>
			<content:encoded><![CDATA[<p>If you need to put a quick note on a website, why not use a Post-it note? There&#8217;s no need to use any images now that we have CSS3. We can use some nice handwritten text, skew the note to the side, even add a shadow.</p>
<div class="postButtons">
<div class="single"><a href="http://webdesignandsuch.com/posts/css3-post-it/index.html" class="demo">Download</a></div>
</div>
<p>Here&#8217;s the CSS used for the Post-it in the demo <em>(which is a div with class &#8220;post-it&#8221;)</em>.</p>
<pre class="brush: css; title: ; notranslate">
.post-it {
background:#fefabc;
padding:15px;
font-family: 'Gloria Hallelujah', cursive;
font-size:15px;
color: #000;
width:200px; 

-moz-transform: rotate(7deg);
-webkit-transform: rotate(7deg);
-o-transform: rotate(7deg);
-ms-transform: rotate(7deg);
transform: rotate(7deg);

box-shadow: 0px 4px 6px #333;
-moz-box-shadow: 0px 4px 6px #333;
-webkit-box-shadow: 0px 4px 6px #333;

}</pre>
<p>You can customize your CSS Post-it note by changing the background color, changing how much the note is rotated, or changing the font. Here is the font I used for the demo: <a href="http://www.google.com/webfonts#QuickUsePlace:quickUse/Family:Gloria+Hallelujah" target="_blank"><strong>Gloria Hallelujah</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/create-a-post-it-note-with-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>25 Killer CSS3 Generators &amp; Tools</title>
		<link>http://webdesignandsuch.com/25-css3-generators-and-tools/</link>
		<comments>http://webdesignandsuch.com/25-css3-generators-and-tools/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 13:30:18 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=2168</guid>
		<description><![CDATA[CSS3 Wins. Browser support is finally good enough that we as developers can use a lot of the great features that CSS3 offers. Here are 25 CSS3 generators and tools for your next website development project.]]></description>
			<content:encoded><![CDATA[<p style="margin:20px 0"><strong>Here are 25 CSS3 Generators and Tools to help you save time when coding your next website. Enjoy!</strong></p>
<h2 class="art-title"><a href="http://www.wordpressthemeshock.com/css-drop-shadow/" target="_blank">ThemeShock CSS3 Shadow Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css-drop-shadow-generator.jpg" alt="css-drop-shadow-generator" title="css-drop-shadow-generator" width="575" height="230" class="alignnone size-full wp-image-2232" /></p>
<h2 class="art-title"><a href="http://www.css3.me/" target="_blank">CSS3.me Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css-me.jpg" alt="css-me" title="css-me" width="575" height="445" class="alignnone size-full wp-image-2289" /></p>
<h2 class="art-title"><a href="http://css3generator.com/" target="_blank">CSS3 Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3-generator.jpg" alt="css3-generator" title="css3-generator" width="575" height="442" class="alignnone size-full wp-image-2233" /></p>
<h2 class="art-title"><a href="http://css3buttongenerator.com/" target="_blank">CSS3 Button Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3buttongenerator.jpg" alt="css3 button generator" title="css3 button generator" width="575" height="411" class="alignnone size-full wp-image-2234" /></p>
<h2 class="art-title"><a href="http://border-radius.com/" target="_blank">Border Radius Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/border-radius.jpg" alt="border radius" title="border radius" width="575" height="436" class="alignnone size-full wp-image-2236" /></p>
<h2 class="art-title"><a href=" http://www.css3maker.com/" target="_blank">CSS3 Maker</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3maker.jpg" alt="css3 maker" title="css3 maker" width="575" height="267" class="alignnone size-full wp-image-2237" /></p>
<h2 class="art-title"><a href="http://css3gen.com/box-shadow/" target="_blank">CSS3 Box Shadow Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3gen.jpg" alt="css3 generator" title="css3 generator" width="575" height="339" class="alignnone size-full wp-image-2238" /></p>
<h2 class="art-title"><a href="http://www.impressivewebs.com/css3-click-chart/" target="_blank">css3-click-chart</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3-click-chart.jpg" alt="css3-click-chart" title="css3-click-chart" width="575" height="420" class="alignnone size-full wp-image-2241" /></p>
<h2 class="art-title"><a href=" http://csscorners.com/" target=_blank">CSS Corners</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/csscorners.jpg" alt="css corners" title="css corners" width="575" height="437" class="alignnone size-full wp-image-2242" /></p>
<h2 class="art-title"><a href=" http://css3button.net/" target="_blank">CSS3 Button Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3button.jpg" alt="css3 button" title="css3 button" width="575" height="515" class="alignnone size-full wp-image-2243" /></p>
<h2 class="art-title"><a href="http://www.wordpressthemeshock.com/css-text-shadow/" target="_blank">Theme Shock CSS Text Shadow</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css-text-shadow.jpg" alt="css text shadow" title="css text shadow" width="575" height="368" class="alignnone size-full wp-image-2246" /></p>
<h2 class="art-title"><a href=" http://westciv.com/tools/gradients/" target="_blank">Style Master</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/style-master.jpg" alt="" title="style-master" width="575" height="316" class="alignnone size-full wp-image-2286" /></p>
<h2 class="art-title"><a href="http://www.colorzilla.com/gradient-editor/" target="_blank">Colorzilla Gradient Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/gradient-editor1.jpg" alt="gradient-editor" title="gradient-editor" width="575" height="464" class="alignnone size-full wp-image-2244" /></p>
<h2 class="art-title"><a href="http://tools.css3.info/selectors-test/test.html" target="_blank">CSS3 Selectors Test</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/selectors-test.jpg" alt="css selectors test" title="css selectors test" width="575" height="571" class="alignnone size-full wp-image-2283" /></p>
<h2 class="art-title"><a href="http://html5readiness.com/" target="_blank">HTML5 Readiness</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/html5readiness.jpg" alt="html5 readiness" title="html5 readiness" width="575" height="359" class="alignnone size-full wp-image-2282" /></p>
<h2 class="art-title"><a href="http://www.fontsquirrel.com/fontface/generator" target'_blank">Font Squirrel Font Face Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/font-face.jpg" alt="font face generator" title="font face generator" width="575" height="570" class="alignnone size-full wp-image-2281" /></p>
<h2 class="art-title"><a href="http://css3please.com/" target="_blank">CSS3 Please!</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3-please.jpg" alt="css3-please" title="css3-please" width="575" height="338" class="alignnone size-full wp-image-2280" /></p>
<h2 class="art-title"><a href="http://www.display-inline.fr/projects/css-gradient/" target="_blank">CSS Gradient Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css-gradient.jpg" alt="css gradient" title="css gradient" width="575" height="557" class="alignnone size-full wp-image-2279" /></p>
<h2 class="art-title"><a href="http://freehtml5templates.com/gradientgenerator/gradient-generator.php" target="_blank">CSS3 Gradient Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/gradient-generator.jpg" alt="gradient-generator" title="gradient-generator" width="575" height="915" class="alignnone size-full wp-image-2278" /></p>
<h2 class="art-title"><a href="http://css-tricks.com/examples/ButtonMaker/#" target="_blank">CSS-Tricks Button Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/button-maker.jpg" alt="css3 button generator" title="css3 button generator" width="575" height="370" class="alignnone size-full wp-image-2277" /></p>
<h2 class="art-title"><a href="http://border-image.com/" target=_blank">Border Image Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/border-image-generator.jpg" alt="border image generator" title="border image generator" width="575" height="341" class="alignnone size-full wp-image-2276" /></p>
<h2 class="art-title"><a href="http://debray.jerome.free.fr/index.php?outils/Generateur-de-multi-colonnes-en-css3" target="_blank">Column Generator</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/multi-colonnes.jpg" alt="" title="multi-colonnes" width="575" height="577" class="alignnone size-full wp-image-2275" /></p>
<h2 class="art-title"><a href="http://codefuture.co.uk/css/css3-Transform.php" target="_blank">CSS3 Transform</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css3-Transform.jpg" alt="CSS3 Transform" title="CSS3 Transform" width="575" height="764" class="alignnone size-full wp-image-2274" /></p>
<h2 class="art-title"><a href="http://csswarp.eleqtriq.com/" target="_blank">CSS Warp</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/css-warp.jpg" alt="css warp" title="css warp" width="575" height="449" class="alignnone size-full wp-image-2273" /></p>
<h2 class="art-title"><a href="http://dvia.com/buttonMaker/" target="__blank">Button Maker</a></h2>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/button.jpg" alt="button maker" title="button maker" width="575" height="350" class="alignnone size-full wp-image-2290" /></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/25-css3-generators-and-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FancyMoves a jQuery Product Slider</title>
		<link>http://webdesignandsuch.com/fancymoves-jquery-product-slider-2/</link>
		<comments>http://webdesignandsuch.com/fancymoves-jquery-product-slider-2/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 22:37:51 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=1882</guid>
		<description><![CDATA[Need a great looking product slider for your website? FancyMoves is a jQuery slider perfect to show off products or photos. FancyBox is built in, and this latest release of the slider has many adjustable settings to make it fit your needs.]]></description>
			<content:encoded><![CDATA[<h3 style="margin:20px 0 20px 0">FancyMoves, a jQuery slider for products or images.</h3>
<p><strong>Need a great looking product slider for your website?</strong> Use FancyMoves to show off services, products, or whatever you can dream up. The main image is enlarged to attract your focus. There are multiple ways to navigate to the next / last item: using your keyboard, using the left and right arrows on the sides of the slider, using the nav under the slider <em>(optional)</em>, or simply clicking on the next or last item in the slider.</p>
<p>FancyMoves has a lot of great features which are easy to edit to customize your slider. Easily change the speed of the slider, add multiple sliders on the same webpage, turn off the navigation below the slider, and much more.</p>
<p>FancyBox is built in so you can have images enlarge with an overlay effect on the screen. Hovering over the enlarged photo shows arrows, allowing you to navigate to other images within the group. FancyBox is easy to customize for your needs; change the transition effects, the background color, the title positioning, and more.</p>
<p><em>Check out the demo and be sure to enlarge the images to see the different FancyBox options. Also see the other demos further down this page, showing off other optional settings of the FancyMoves product slider.</em></p>
<div class="postButtons">
<div class="double"><a class="demo" href="http://webdesignandsuch.com/posts/fancymoves/index.html">Demo</a><a class="download" href="http://webdesignandsuch.com/wp-content/uploads/FancyMoves-Slider.zip">Download</a></div>
</div>
<h4>Slider Features:</h4>
<ul style="font-size: 13px;">
<li>Images decrease in size as they enter, leave screen</li>
<li>Easily change slider width</li>
<li>Easily change amount of next / last image shown</li>
<li>Last image loops back to first image</li>
<li>Multiple sliders on a page</li>
<li>Hash tags (link to a certain image from another page)</li>
<li>Choose which panel the slider starts on</li>
<li>Navigation links under slider</li>
</ul>
<p><img class="alignnone size-full wp-image-1907" title="fancybox in a jquery slider" src="http://webdesignandsuch.com/wp-content/uploads/fancybox1.jpg" alt="fancybox in a jquery slider" width="570" height="340" /></p>
<h4>FancyBox Features:</h4>
<ul style="font-size: 13px;">
<li>Linked image &#8216;groups&#8217;</li>
<li>Mouse scrolling support</li>
<li>Keyboard support</li>
<li>Multiple enlarging effects</li>
<li>Multiple image title layouts</li>
</ul>
<div style="background: #BFD6DE; padding: 8px; border: 2px solid #ccc;">
<h4>Various Demos:</h4>
<ul style="font-size: 13px;">
<li><a href="http://webdesignandsuch.com/posts/fancymoves/index2.html">Multiple sliders on a page</a></li>
<li><a href="http://webdesignandsuch.com/posts/fancymoves/index3.html">Start slider on image 1</a></li>
<li><a href="http://webdesignandsuch.com/posts/fancymoves/index4.html">Change visibility of next / last images</a></li>
<li><a href="http://webdesignandsuch.com/posts/fancymoves/index5.html">Change slider width &amp; add numbered navigation</a></li>
<li><a href="http://webdesignandsuch.com/posts/fancymoves/index.html#&amp;slider1=9">Link from one page to a certain image in the slider <em>(last image in this example)</em></a></li>
</ul>
</div>
<p style="font-size: 11px; padding-top: 20px; margin-bottom: 0px;">Credits: <a href="http://css-tricks.com">Original slider code from CSS-Tricks</a>, <a href="http://shop.ugmonk.com/">Clothing products from Ugmonk</a>, <a href="http://fancybox.net/">FancyBox for enlarged images</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/fancymoves-jquery-product-slider-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use CSS Sprites and Image Replacement</title>
		<link>http://webdesignandsuch.com/css-sprites-image-replacement/</link>
		<comments>http://webdesignandsuch.com/css-sprites-image-replacement/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 11:40:38 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=1615</guid>
		<description><![CDATA[The days of using javascript for image rollovers are over. By using image replacement and CSS Sprites you can create links that are SEO friendly, don't flash when you rollover them, and don't bog down your page load time. Apple and Amazon use this technique, you should be too! I'll walk you through the process, from creating th actual CSS sprite to the CSS code to make the magic happen.]]></description>
			<content:encoded><![CDATA[<h4>The days of using javascript for image rollovers are over. </h4>
<p>Rollovers can be created using pure CSS, which is a widely used technique on the web. There&#8217;s many benefits to using CSS for rollovers. It requires no javascript, which means less code on your page, quicker page load time, and your rollovers will work if the user has javascript disabled on their browser. It&#8217;s also better for SEO, because your links will still have live text for the search engines.</p>
<p>The simplest way to use CSS to create rollovers is to have 2 separate images and use them as background images on an item. Say you had a link that you wanted to have a custom font that isn&#8217;t web safe <em>(and you wanted it to have a hover state with a different image)</em>. You could create the image and the image rollover state and apply them onto your link tag with the following CSS:</p>
<pre class="brush: css; title: ; notranslate">
a:link {
display:block;
width:100px;
height:40px;
text-indent:-9999px;
background:url(images/title.jpg)
}
a:hover {
display:block;
width:100px;
height:40px;
text-indent:-9999px;
background:url(images/titleRoll.jpg)
}
</pre>
<p><span class="gray">*In the above example the link is SEO friendly. The link still has the live text for the search engines to read, we are using <em>negative text-indent</em> to push it off the side of the browser so it&#8217;s hidden from the viewer.</span></p>
<p>This technique is called &#8220;<strong>image replacement</strong>&#8220;, since you are replacing the text with an image. The problem with that technique is that the rollover image doesn&#8217;t get loaded until you rollover the link. So when you rollover the link there will be a second or two where you see no image, as the other image is loading. Not a huge deal, but it really kills the point of having a nice smooth rollover effect in the first place.</p>
<h3>CSS Sprites</h3>
<p>The solution to the above problem is to use &#8220;CSS Sprites&#8221;. The theory behind this technique is that if you put multiple images together into one file it only needs to get loaded once by your browser; greatly improving load time, and getting rid of the flashing problem I explained above. The image is used as a background image on different objects, and CSS is used to move it around so you only see the desired image.</p>
<p><strong>Example:</strong><br />
Here is the CSS Sprite that Apple is currently using for their main navigation. You can see how many separate images it would take to make all of the navigation items, rollover, and active states of the links. By having this one image file and pushing it around with CSS, they solved the problem of page load and image flashing.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/appleSprite.jpg" alt="" title="appleSprite" width="570" height="88" class="alignnone size-full wp-image-1618" /></p>
<h3>How to use CSS Sprites</h3>
<p>To show this in action, I&#8217;ll show you how I created the 2 buttons for my &#8220;Demo&#8221;, and &#8220;Download&#8221; buttons, shown below (<em>these buttons don&#8217;t go anywhere, they are to show you the rollover state and the lack of &#8220;image flash while loading&#8221;</em>).</p>
<div class="postButtons">
<div class="double"><a href="#" class="demo">Demo</a><a href="#" class="download">Download</a></div>
</div>
<h4>Step 1. Create your CSS Sprite.</h4>
<p>The key to creating your sprite is to make sure everything is exactly lined up, down to the pixel. We&#8217;ll be using pixels to move the images with CSS, so having a sloppy sprite image to work with will only frustrate you. Push your images so they are just touching each other, and make a note of the exact dimensions in pixels of where everything is located.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/my-sprite.jpg" alt="" title="my-sprite" width="536" height="214" class="imgBord"/></p>
<h4>Step 2. Create your CSS.</h4>
<p>Now that you have your image file ready you can create your links. Here is the CSS code for my buttons. In this example I&#8217;m using the same image for 4 different button states, the Demo button regular and rollover states, and the Download button rollover states. </p>
<pre class="brush: css; title: ; notranslate">
a.download:link, a.download:visited {
display:block;
width:202px;
height:64px;
text-indent:-9999px;
background:url(images/buttonsSprite.png) 0 0 no-repeat
}
a.download:hover, a.download:active {
display:block;
width:202px;
height:64px;
text-indent:-9999px;
background:url(images/buttonsSprite.png) 0 -64px no-repeat
}
a.demo:link, a.demo:visited {
display:block;
width:202px;
height:64px;
text-indent:-9999px;
background:url(images/buttonsSprite.png) -202px 0 no-repeat
}
.demo:hover, a.demo:active {
display:block;
width:202px;
height:64px;
text-indent:-9999px;
background:url(images/buttonsSprite.png) -202px -64px no-repeat
}
</pre>
<p>Here&#8217;s what the links that create these buttons look like. The actual text of the button is hidden off the edge of the browser using negative text-indent.</p>
<pre class="brush: xml; title: ; notranslate">

&lt;a href=&quot;#&quot; class=&quot;demo&quot;&gt;Demo&lt;/a&gt;
&lt;a href=&quot;#&quot; class=&quot;download&quot;&gt;Download&lt;/a&gt;
</pre>
<p>To help clear this technique up even more, look at the examples below. Notice how in every state of my buttons the link itself never moves. This shows how the image is actually moving around behind the link, hidden from the website user. As the Apple example above shows, it can be used for an endless number of image and link states, the key is to keep your image file extremely clean and precise.</p>
<p><img src="http://webdesignandsuch.com/wp-content/uploads/n1.jpg" alt=""  width="570" height="200"  class="imgBord"/><br />
<img src="http://webdesignandsuch.com/wp-content/uploads/n2.jpg" alt=""  width="570" height="200"  class="imgBord"/><br />
<img src="http://webdesignandsuch.com/wp-content/uploads/n3.jpg" alt=""  width="570" height="200"  class="imgBord"/><br />
<img src="http://webdesignandsuch.com/wp-content/uploads/n4.jpg" alt=""  width="570" height="200"  class="imgBord"/></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/css-sprites-image-replacement/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

