<?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>Digital Visions Queenstown &#187; jQuery</title>
	<atom:link href="http://www.dvq.co.nz/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dvq.co.nz</link>
	<description>&#34;KickAss Cool&#34; Web Development</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:47:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Creating A Sliding Sidebar That Follows The User</title>
		<link>http://www.dvq.co.nz/jquery/creating-a-sliding-sidebar-that-follows-the-user/</link>
		<comments>http://www.dvq.co.nz/jquery/creating-a-sliding-sidebar-that-follows-the-user/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 20:53:29 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.dvq.co.nz/?p=375</guid>
		<description><![CDATA[Sliding sidebars that follow the user up and down the page are great for viewing what&#8217;s in your shopping cart on e-commerce sites or for site navigation. This tutorial is based on the menu over at www.kingtray.com. View Final Demo. Getting Started First of all create a new html document and paste in the following. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dvq.co.nz/wp-content/uploads/2009/04/sliding-sidebar-preview.jpg" alt="" title="sliding-sidebar-preview" width="449" height="157" class="alignnone size-full wp-image-809" /></p>
<p>Sliding sidebars that follow the user up and down the page are great for viewing what&#8217;s in your shopping cart on e-commerce sites or for site navigation.<span id="more-375"></span></p>
<p>This tutorial is based on the menu over at <a href="http://www.kingtray.com/">www.kingtray.com</a>.</p>
<p>View Final <a href="http://www.dvq.co.nz/wp-content/uploads/2009/04/sidebar-slider-demo/index.html">Demo</a>.</p>
<h3>Getting Started</h3>
<p>First of all create a new html document and paste in the following. Make sure you link to a copy of jQuery and create a blank JavaScript file called sidebar-slider.js.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;container&quot;&gt;
&lt;div id=&quot;content&quot;&gt;Main Content&lt;/div&gt;
&lt;div id=&quot;sidebar-container&quot;&gt;
&lt;div id=&quot;sidebar&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>On a real site you would obviously have things like a header and footer, but for this tutorial they aren&#8217;t needed.</p>
<p>Next we need some basic styling.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-92px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">560px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ececec</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#sidebar-container</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-184px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">171px</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#sidebar</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">171px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">195px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>For this effect to work correctly the sidebar will be absolutely positioned and have negative space on the right and we will need to relatively position the container and add some negative space on the left, to ensure the design is centered</p>
<p>Now we will place the following javascript code in the sidebar-slider.js file that we created earlier.</p>
<p>First of all we declare a couple of variables:</p>
<pre name="code" class="JAVASCRIPT">
var name = "#sidebar";
var sidebar_top_limit = 100;
var sidebar_top_margin = 20;
var sidebar_slide_duration = 500;
</pre>
<ul class="ul">
<li>&#8220;<strong>name</strong>&#8221; will be used to select which element will slide up and down the page.</li>
<li>&#8220;<strong>sidebar_top_limit</strong>&#8221; sets how close to the top of the page the sidebar is allowed.</li>
<li>&#8220;<strong>sidebar_top_margin</strong>&#8221; sets the distance from the top of the browser window the sidebar is allowed, while scrolling.</li>
<li>&#8220;<strong>sidebar_slide_duration</strong>&#8221; defines the speed at which the sidebar should slide.</li>
</ul>
<p>Now we need to add a window scroll function:</p>
<pre name="code" class="JAVASCRIPT">
$(window).scroll(function() {
});
</pre>
<p>Inside of this we add:</p>
<pre name="code" class="JAVASCRIPT">
offset = $(document).scrollTop() + sidebar_top_margin;
if(offset &amp;lt; sidebar_top_limit)
offset = sidebar_top_limit;
$(name).animate({top:offset},{duration:sidebar_slide_duration,queue:false});
</pre>
<p>The first part applies the top margin for when you are scrolling.</p>
<p>The next part applies the limit of how close to the top of the page the sidebar can go.</p>
<p>The last piece of code sets up the animation, using variables we set up earlier.</p>
<p>View Final <a href="http://www.dvq.co.nz/wp-content/uploads/2009/04/sidebar-slider-demo/index.html">Demo</a>.</p>
<p>And there we have it a sliding sidebar that is quick to build and easy to customize.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dvq.co.nz/jquery/creating-a-sliding-sidebar-that-follows-the-user/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Create a Sliding Menu Background with jQuery</title>
		<link>http://www.dvq.co.nz/jquery/create-a-sliding-menu-background-with-jquery/</link>
		<comments>http://www.dvq.co.nz/jquery/create-a-sliding-menu-background-with-jquery/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 04:05:25 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.dvq.co.nz/?p=314</guid>
		<description><![CDATA[Normally when you mouse over a list of links, the text/background color might change or even the background image might switch to another image. In this tutorial I will show you how to take a normal list of links and add a hover effect so that the bullet image will slide out and another image [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dvq.co.nz/wp-content/uploads/2009/02/sliding-menu-menu-background-preview.jpg" alt="" title="sliding-menu-menu-background-preview" width="449" height="157" class="alignnone size-full wp-image-820" /></p>
<p>Normally when you mouse over a list of links, the text/background color might change or even the background image might switch to another image. In this tutorial I will show you how to take a normal list of links and add a hover effect so that the bullet image will slide out and another image will then slide in, thus creating an very cool subtle effect.</p>
<p><span id="more-314"></span></p>
<p>View Demo: <a href="http://www.dvq.co.nz/wp-content/uploads/2009/02/sliding-menu-background/index.html">Here</a></p>
<p>You will need to have a copy of jQuery and the <a href="http://plugins.jquery.com/project/backgroundPosition-Effect">backgroundPosition</a> plugin.</p>
<h3>Javascript</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#nav a'</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;6px 6px&quot;</span><span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">mouseover</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><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
			.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
				<span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(-25px 6px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
			.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
				<span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(-25px -23px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
			.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
				<span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(6px -23px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
	.<span style="color: #660066;">mouseout</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><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
			.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
				<span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(-25px -23px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
			.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
				<span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(-25px 6px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
			.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span>
				<span style="color: #009900;">&#123;</span>backgroundPosition<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;(6px 6px)&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<h3>CSS</h3>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #cc00cc;">#nav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#nav</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#nav</span> li a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">10px</span> <span style="color: #933;">5px</span> <span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#556565</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</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/nav-bg.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">6px</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #cc00cc;">#nav</span> li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#2b5f1a</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e5f3d7</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3>HTML</h3>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;nav&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Downloads&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dvq.co.nz/jquery/create-a-sliding-menu-background-with-jquery/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Create a jQuery Popup Bubble</title>
		<link>http://www.dvq.co.nz/jquery/create-a-jquery-popup-bubble-effect/</link>
		<comments>http://www.dvq.co.nz/jquery/create-a-jquery-popup-bubble-effect/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 06:17:01 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.dvq.co.nz/?p=54</guid>
		<description><![CDATA[Learn how to add a cool popup bubble to an RSS feed link using jQuery. View Demo Javascript $&#40;document&#41;.ready&#40;function&#40;&#41;&#123; &#160; $&#40;&#34;.rss-popup a&#34;&#41;.hover&#40;function&#40;&#41; &#123; $&#40;this&#41;.next&#40;&#34;em&#34;&#41;.stop&#40;true, true&#41;.animate&#40;&#123;opacity: &#34;show&#34;, top: &#34;-60&#34;&#125;, &#34;slow&#34;&#41;; &#125;, function&#40;&#41; &#123; $&#40;this&#41;.next&#40;&#34;em&#34;&#41;.animate&#40;&#123;opacity: &#34;hide&#34;, top: &#34;-70&#34;&#125;, &#34;fast&#34;&#41;; &#125;&#41;; &#160; &#125;&#41;; HTML &#60;div class=&#34;rss-popup&#34;&#62; &#60;a href=&#34;feed-link&#34; id=&#34;rss-icon&#34;&#62;RSS Feed&#60;/a&#62; &#60;em&#62;Subscribe to our RSS Feed&#60;/em&#62; &#60;/div&#62; CSS .rss-popup [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dvq.co.nz/wp-content/uploads/2008/07/popup-bubble-preview1.jpg" alt="" title="popup-bubble-preview" width="449" height="236" class="alignnone size-full wp-image-756" /></p>
<p>Learn how to add a cool popup bubble to an RSS feed link using jQuery.</p>
<p><span id="more-113"></span></p>
<p><a href="http://www.dvq.co.nz/wp-content/uploads/2008/07/jquery-popup-bubble/index.html">View Demo</a></p>
<h3>Javascript</h3>

<div class="wp_syntax"><div class="code"><pre class="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;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.rss-popup a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</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><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;em&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;show&quot;</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;-60&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</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><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">next</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;em&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>opacity<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;hide&quot;</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;-70&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>HTML</h3>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;rss-popup&quot;&gt;
&lt;a href=&quot;feed-link&quot; id=&quot;rss-icon&quot;&gt;RSS Feed&lt;/a&gt;
&lt;em&gt;Subscribe to our RSS Feed&lt;/em&gt;
&lt;/div&gt;</pre></div></div>

<h3>CSS</h3>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.rss-popup</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.rss-popup</span> em <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;">bubble.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">49px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-70px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</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: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#rss-icon</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">42px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">42px</span><span style="color: #00AA00;">;</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;">icon.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</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: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And there you have it. This technique could be used for lots of other things. Experimenting is the best way to learn new techniques, so go on, see what you can come up with.</p>
<p><a href="http://www.dvq.co.nz/wp-content/uploads/2008/07/jquery-popup-bubble/index.html">View Demo</a></p>
<p><strong>UPDATE:</strong> Thanks to Reinaldo the the issue when repeatedly moving the mouse past the link has been fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dvq.co.nz/jquery/create-a-jquery-popup-bubble-effect/feed/</wfw:commentRss>
		<slash:comments>148</slash:comments>
		</item>
	</channel>
</rss>
