<?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; JQuery</title>
	<atom:link href="http://webdesignandsuch.com/tag/jquery/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>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>Using fancyBox for Responsive Google Maps</title>
		<link>http://webdesignandsuch.com/using-fancybox-for-responsive-google-maps/</link>
		<comments>http://webdesignandsuch.com/using-fancybox-for-responsive-google-maps/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 15:30:37 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Fancybox]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Responsive]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=3276</guid>
		<description><![CDATA[The latest release of fancyBox is responsive, so now your maps can auto adjust based on your browser window size!]]></description>
			<content:encoded><![CDATA[<p>The popular jQuery lightbox fancyBox recently had a major overhaul. The new version has better transitions, more options, and most importantly a <strong>responsive layout</strong>.</p>
<p>One great way to use fancyBox is to open Google Maps over your webpage. If you need to have a map but don&#8217;t have enough room on the page to embed the map you can integrate fancyBox with Google Maps and open the enlarged map when you click on a link. Checkout the demo and download. Since this latest release of fancyBox is responsive the frame around the map resizes based on the size of the browser window! <img src='http://webdesignandsuch.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div class="postButtons">
<div class="double"><a href="http://webdesignandsuch.com/posts/fancybox-download/google-maps-fancybox/fancybox-google-maps.html" class="demo">Demo</a><a href="http://webdesignandsuch.com/posts/fancybox-download/google-maps-fancybox/fancybox-g-maps.zip" class="download">Download</a></div>
</div>
<p><strong>Note:</strong> The new version of fancyBox has different licensing, be sure to visit the website for full details to make sure you are using it correctly, and for all the customization details.</p>
<p><a href="http://fancyapps.com/fancybox/" target="_blank">http://fancyapps.com/fancybox/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/using-fancybox-for-responsive-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Responsive YouTube Videos with fancyBox</title>
		<link>http://webdesignandsuch.com/responsive-youtube-videos-with-fancybox/</link>
		<comments>http://webdesignandsuch.com/responsive-youtube-videos-with-fancybox/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 14:30:09 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Fancybox]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Responsive]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=3257</guid>
		<description><![CDATA[The newest version of fancyBox has a responsive layout, making it the perfect solution for your responsive YouTube video needs.]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://wp.me/p11izc-oK">previous post</a> I showed how to use fancyBox with YouTube videos. Responsive website layouts are the hottest thing on the web right now, which has left developers looking for solutions for responsive sliders and galleries. Luckily a new version of fancyBox was recently released, one of the major updates being the ability to resize images or videos depending on the screen size!</p>
<p><strong>Old FancyBox video / browser large.</strong><br />
<img src="http://webdesignandsuch.com/wp-content/uploads/responsive-videos-1.jpg" alt="fancybox youtube videos" title="fancybox youtube videos" width="575" height="465" class="alignnone size-full wp-image-3259" /></p>
<p><strong>Old FancyBox video / browser small (and cutoff). <img src='http://webdesignandsuch.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </strong><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-videos-2.jpg" alt="using fancybox with youtube videos" title="using fancybox with youtube videos" width="400" height="371" class="alignnone size-full wp-image-3260" /></p>
<p><strong>New FancyBox video / browser large.</strong><br />
<img src="http://webdesignandsuch.com/wp-content/uploads/responsive-videos-4.jpg" alt="responsive youtube" title="responsive youtube" width="575" height="381" class="alignnone size-full wp-image-3261" /></p>
<p><strong>New FancyBox video / browser small (and auto resized!). <img src='http://webdesignandsuch.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong><img src="http://webdesignandsuch.com/wp-content/uploads/responsive-videos-3.jpg" alt="youtube with fancybox" title="youtube with fancybox" width="400" height="294" class="alignnone size-full wp-image-3262" /></p>
<div class="postButtons">
<div class="double"><a href="http://webdesignandsuch.com/posts/fancybox-download/responsive-youtube-videos/fancybox-youtube.html" class="demo">Demo</a><a href="http://webdesignandsuch.com/posts/fancybox-download/responsive-youtube-videos/fancybox-youtube-videos.zip" class="download">Download</a></div>
</div>
<p><strong>Note:</strong> The new version of fancyBox has different licensing, be sure to visit the website for full details to make sure you are using it correctly, and for all the customization details.</p>
<p><a href="http://fancyapps.com/fancybox/" target="_blank">http://fancyapps.com/fancybox/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/responsive-youtube-videos-with-fancybox/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>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>Embed a Twitter Feed on your website with jQuery</title>
		<link>http://webdesignandsuch.com/embed-a-twitter-feed-on-your-website-with-jquery/</link>
		<comments>http://webdesignandsuch.com/embed-a-twitter-feed-on-your-website-with-jquery/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 22:17:34 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=612</guid>
		<description><![CDATA[In a previous post I showed possibly the easiest way to embed a Twitter feed on your website. This brought up a couple of questions from some users. 1. Can [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://webdesignandsuch.com/2009/11/how-to-embed-a-twitter-feed-on-your-website/">previous post</a> I showed possibly the easiest way to embed a Twitter feed on your website. This brought up a couple of questions from some users.</p>
<p><strong>1. Can you make a background behind individual Tweets?<br />
2. Can you put the date on it&#8217;s own separate line?</strong></p>
<p>As the case goes with a lot of things these days <em><strong>jQuery to the rescue</strong></em>! Check out the demo to see both of these things in action, and then continue reading to see how to accomplish these things with jQuery and download the source files.</p>
<p><a class="demo-link" href="http://webdesignandsuch.com/posts/jQuery-twitter/">View Demo</a><span id="more-612"></span></p>
<p>The jQuery and CSS code to make this happen came from Chris over at CSS-Tricks. I slimmed down and edited it to make it work for me. Here is a zip of the files used for the demo so you can download and edit it as you want.</p>
<p><a class="download-link" href="http://webdesignandsuch.com/posts/jQuery-twitter/jQuery-twitter.zip">Download Files</a></p>
<p>You&#8217;ll see in the head of the index page the jQuery which makes it work. The line you need to change is the following:</p>
<div class="codeBox">
<strong>http://twitter.com/status/user_timeline/<span style="color:#09a1dc">ilz_</span>.json?<span style="color:#09a1dc">count=5</span>&#038;callback=?</strong></div>
<p>First replace the part I highlighted in Blue &#8220;ilz_&#8221; with your Twitter user name.<br/><br />
Next, replace &#8220;count=5&#8243; with the number of tweets you want to show up on your page.</p>
<p>Other than that, you should be able to style the rest of the text, links, etc. as long as you know basic CSS. <strong>Enjoy!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/embed-a-twitter-feed-on-your-website-with-jquery/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>jQuery Product Slider</title>
		<link>http://webdesignandsuch.com/jquery-product-slider/</link>
		<comments>http://webdesignandsuch.com/jquery-product-slider/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 17:49:46 +0000</pubDate>
		<dc:creator>mike ilz</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://webdesignandsuch.com/?p=602</guid>
		<description><![CDATA[Recently I was put in charge of creating a product slider for a client&#8217;s website. There would be four products shown at a time, with one new product being revealed [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was put in charge of creating a product slider for a client&#8217;s website. There would be four products shown at a time, with one new product being revealed each time as the slider moved from the right to the left. I figured there was a jQuery slider out there that I could manipulate for this, and after a little hunting I found one. </p>
<p>The actual slider and website I created it for isn&#8217;t live yet. I used the base slider I created and used a few Apple images to show the general idea in the demo. Check out the demo, and then keep reading to see the details.</p>
<div class="postButtons">
<div class="double"><a href="http://webdesignandsuch.com/posts/jquery-slider/" class="demo">Demo</a><a href="http://webdesignandsuch.com/posts/jquery-slider/jquery-slider.zip" class="download">Download</a></div>
</div>
<p>The original code for this slider is <a href="http://sorgalla.com/jcarousel/" target="_blank">jCarousel</a>. I figured I would put up this demo to show how with a few modifications to the code you can create a useful product slider. You&#8217;ll notice how it&#8217;s created with an unordered list. I also showed how you can use rollover effects, and link each image to a webpage; which is obviously the point of the slider in the first place.</p>
<p>The slider has an autoplay feature. I added some code to the original jCarousel to make the slider go only one product at a time. This is in the head of the index.html file. The line &#8220;<strong>scroll: 1</strong>&#8220;. If you want it to scroll 2 items, change it to 2, and so on.</p>
<p>Now I admit the code here isn&#8217;t the prettiest, but as I mentioned this was created strictly for the demo, to show some of the possibilities. Grab the download above and use it however you want. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://webdesignandsuch.com/jquery-product-slider/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

