O:9:"MagpieRSS":19:{s:6:"parser";i:0;s:12:"current_item";a:0:{}s:5:"items";a:30:{i:0;a:14:{s:5:"title";s:38:"WordPress Plugin – Social Media Tabs";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/_Mu2AQ-mvnw/";s:8:"comments";s:107:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/#comments";s:7:"pubdate";s:31:"Tue, 16 Aug 2011 19:28:21 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:99:"Social NetworksWordpress Pluginsfacebookgoogle +1google buzzjQuerypluginsrsstwitterwordpressYouTube";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=2235";s:11:"description";s:873:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/"><img align="left" hspace="5" width="150" src="/media/images/social_media_tabs.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/social_media_tabs.jpg" alt="" class="img-border" /></p>
<p><strong>Updated 8th September</strong></p>
<p>Add a facebook like box, latest twitter feed, rss feeds, YouTube subscription with embedded video and google +1 with google buzz social network profiles in a static or or slide out tabbed widget.</p>
<p>The plugin has a range of options giving you control of position of social media tabs panel, display order for tabs, the &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:11108:"<p class="text-center"><img src="/media/images/social_media_tabs.jpg" alt="" class="img-border" /></p>
<p><strong>Updated 8th September</strong></p>
<p>Add a facebook like box, latest twitter feed, rss feeds, YouTube subscription with embedded video and google +1 with google buzz social network profiles in a static or or slide out tabbed widget.</p>
<p>The plugin has a range of options giving you control of position of social media tabs panel, display order for tabs, the default profile to display on page load and whether to show or hide the the sliding panel on page load.</p>
<p>The plugin uses widgets to add the panel to the website pages and can handle mulitple media tabs per page, allowing you to add several different profiles for each tab type.</p>
<h3>Demos &#038; Download</h3>
<ul class="content-list">
<li><p><a href="http://downloads.wordpress.org/plugin/social-media-tabs.1.2.zip" rel="nofollow">Download Social Media Tabs 1.2 (2,953)</a></p>
</li>
<li><a href="/lab/demo-wordpress-social-media-tabs-plugin/">Demo page</a></li>
</ul>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `social-media-tabs` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin options via the &#8220;Social Media Tabs&#8221; menu option in WordPress admin -> Settings</li>
</ol>
<h3>Using The Social Media Tabs Plugin</h3>
<p>In order to add social media tabs to your WordPress website you will need a widget area in your theme files.</p>
<p>For slide out tabs location of the actual widget is not important since the plugin automatically sets the position at the side of the browser. For static tabs the widget needs to be located where you would like the tabbed box to appear.</p>
<p>To learn more about adding widget areas to WordPress see our WordPress tutorial – <a href="/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">Adding A Widget Area To Your Theme Files</a>.</p>
<h3>Social Media Tabs Configuration</h3>
<h4>Icons</h4>
<p>To change the icons used for the facebook, google, rss and twitter tabs enter the full URL to your new icon image in the text boxes. The current active icons will show in the right-hand column.</p>
<p>To return back to using the default social media icons delete the URLs from the text fields.</p>
<h4>Disable Default Skin:</h4>
<p>Check this box to disable the default skin that comes with the plugin. To use your own styles check the box and add the CSS to your theme&#8217;s style sheet. The default CSS file can be used as a template.</p>
<h4>Open Links In New Window</h4>
<p>Check the box if you wish all links within the media tabs open in a new browser window.</p>
<h4>Google +1 Options</h4>
<ul class="content-list">
<li>Add Statistics &#8211; Check the box to include statistics about your google profile at the top of the tab. The statistics panel is provided by <a href="http://socialstatistics.com" rel="nofollow" class="external">http://socialstatistics.com</a></li>
</ul>
<h4>Twitter Options</h4>
<ul class="content-list">
<li>Show Replies &#8211; Uncheck the box if you do not wish replies to be included in the list of tweets.</li>
</ul>
<h3>Social Media Tabs Widget</h3>
<h4>Tabs</h4>
<p>Select either a static tabbed box or a slide out tabbed panel</p>
<h4>Slider</h4>
<p>Direction of sliding animation for tabs &#8211; horizontal or vertical.</p>
<h4>Width</h4>
<p>Width of widget in pixels.</p>
<h4>Height</h4>
<p>Height of widget in pixels.</p>
<h4>Location (for slide out tabs only):</h4>
<p>The position of the social media tabs panel in the browser window.</p>
<h4>Offset (for slide out tabs only):</h4>
<p>Offset allows you to fine tune the positioning by adding the number of pixels that you would like to offset the panel from the edge of the browser window.</p>
<h4>Animation Speed (for slide out tabs only):</h4>
<p>The speed in milliseconds to open and close the tabbed panel.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close (for slide out tabs only):</h4>
<p>If checked, the tabs will automatically slide closed when the user clicks anywhere else in the browser window</p>
<h4>Load Open (for slide out tabs only):</h4>
<p>If checked, the social media tabs will be displayed open when the page first loads. The tab will still close the panel when clicked.</p>
<h4>Tabs</h4>
<p>Select the location of each profile type &#8211; tabs 1 to 4</p>
<h4>Open Tab</h4>
<p>Select default tab that will be open when the page first loads.</p>
<h4>Facebook Like Box</h4>
<ul class="content-list">
<li>Facebook ID &#8211; Enter the facebook page ID</li>
<li>Size &#8211; Width &#038; Height of Facebook box in pixels</li>
<li>Connections &#8211; Enter the number of connections to be displayed</li>
</ul>
<p>For more information on how to get your facebook page ID see our FAQ &#8211; <a href="/blog/index.php/faq/how-to-get-your-facebook-page-id/">How to get your facebook page ID</a></p>
<h4>Google</h4>
<ul class="content-list">
<li>Google ID &#8211; Enter the google profile ID</li>
<li>Results &#8211; Maximum number of buzz results to show</li>
</ul>
<p>For more information on how to get your google profile ID see our FAQ &#8211; <a href="/blog/index.php/faq/how-to-get-your-google-profile-id/">How to get your google profile ID</a></p>
<h4>Twitter</h4>
<ul class="content-list">
<li>Username &#8211; Enter the profile username</li>
<li>Title &#8211; The heading for the Twitter tab</li>
<li>Tweets &#8211; Number of tweets to be displayed</li>
</ul>
<h4>RSS</h4>
<ul class="content-list">
<li>URL &#8211; Enter the RSS Feed URL</li>
<li>Title &#8211; The heading for the RSS feed tab</li>
<li>Results &#8211; The number of feed results to display</li>
</ul>
<h4>YouTube</h4>
<ul class="content-list">
<li>Username &#8211; Enter your YouTube profile username</li>
<li>Video ID &#8211; To include an embedded YouTube video enter the YouTube Video ID</li>
</ul>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Check out our <a href="/blog/index.php/frequently-asked-questions/social-media-tabs/">Frequently Asked Questions for Social Media Tabs</a>.</strong></p>
<p>Many issues that can crop up with installing and using the plugin with different themes have also been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demos for WordPress Social Media Tabs Plugin</h3>
<ul class="content-list">
<li><a href="/lab/demo-wordpress-social-media-tabs-plugin/">Social Media Tabs Demo</a></li>
</ul>
<h3>Download Social Media Tabs plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/social-media-tabs.1.2.zip" rel="nofollow">Download Social Media Tabs 1.2 (2,953)</a></p>

<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/social-media-tabs/" rel="nofollow" class="external">wordpress.org</a></strong>.</p>
<p>If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your social media tabs let us know via comments, email or our online contact form.</p>
<div class="donate">
<form name="_xclick" id="form-donate" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="NVWNM7CSNMEHY">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/social-media-tabs-screenshot-1.png" alt="" /></p>
<p class="text-center"><strong>Example of vertical sliding social buttons panel</strong></p>
<p class="text-center"><img src="/media/images/social-media-tabs-screenshot-2.png" alt="" /></p>
<p class="text-center"><strong>Example of social media tabbed box</strong></p>
<h3>Other Social Media/Network Plugins</h3>
<p>If you like Social Media Tabs then why not try out our other social network WordPress plugins:</p>
<h4>Slick Social Share Buttons</h4>
<p>Add facebook, twitter, google +1, linkedin, digg, and stumbledupon social media buttons to your website in either a floating or sliding panel &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/">see plugin page</a></p>
<h4>Floating Tweets</h4>
<p>The Floating Tweets plugin adds a floating, slide out tab containing the latest tweets from any twitter account. The widget is easily set up via any widget panel and can handle multiple twitter feeds per page &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/">see plugin page</a></p>
<h3>Updates</h3>
<h4>Version 1.2 &#8211; 8th September 2011</h4>
<ul class="content-list">
<li>Added: YouTube subscription tab with embedded YouTube video</li>
<li>Removed: Google +1 feed. +1 feed used a 3rd party API since there is currently no official google +1 API. This feed has unfortunately been stopped.</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/_Mu2AQ-mvnw" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:103:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"46";}s:10:"feedburner";a:1:{s:8:"origlink";s:98:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/";}s:7:"summary";s:873:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/"><img align="left" hspace="5" width="150" src="/media/images/social_media_tabs.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/social_media_tabs.jpg" alt="" class="img-border" /></p>
<p><strong>Updated 8th September</strong></p>
<p>Add a facebook like box, latest twitter feed, rss feeds, YouTube subscription with embedded video and google +1 with google buzz social network profiles in a static or or slide out tabbed widget.</p>
<p>The plugin has a range of options giving you control of position of social media tabs panel, display order for tabs, the &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/" class="read_more">more</a></p>";s:12:"atom_content";s:11108:"<p class="text-center"><img src="/media/images/social_media_tabs.jpg" alt="" class="img-border" /></p>
<p><strong>Updated 8th September</strong></p>
<p>Add a facebook like box, latest twitter feed, rss feeds, YouTube subscription with embedded video and google +1 with google buzz social network profiles in a static or or slide out tabbed widget.</p>
<p>The plugin has a range of options giving you control of position of social media tabs panel, display order for tabs, the default profile to display on page load and whether to show or hide the the sliding panel on page load.</p>
<p>The plugin uses widgets to add the panel to the website pages and can handle mulitple media tabs per page, allowing you to add several different profiles for each tab type.</p>
<h3>Demos &#038; Download</h3>
<ul class="content-list">
<li><p><a href="http://downloads.wordpress.org/plugin/social-media-tabs.1.2.zip" rel="nofollow">Download Social Media Tabs 1.2 (2,953)</a></p>
</li>
<li><a href="/lab/demo-wordpress-social-media-tabs-plugin/">Demo page</a></li>
</ul>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `social-media-tabs` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin options via the &#8220;Social Media Tabs&#8221; menu option in WordPress admin -> Settings</li>
</ol>
<h3>Using The Social Media Tabs Plugin</h3>
<p>In order to add social media tabs to your WordPress website you will need a widget area in your theme files.</p>
<p>For slide out tabs location of the actual widget is not important since the plugin automatically sets the position at the side of the browser. For static tabs the widget needs to be located where you would like the tabbed box to appear.</p>
<p>To learn more about adding widget areas to WordPress see our WordPress tutorial – <a href="/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">Adding A Widget Area To Your Theme Files</a>.</p>
<h3>Social Media Tabs Configuration</h3>
<h4>Icons</h4>
<p>To change the icons used for the facebook, google, rss and twitter tabs enter the full URL to your new icon image in the text boxes. The current active icons will show in the right-hand column.</p>
<p>To return back to using the default social media icons delete the URLs from the text fields.</p>
<h4>Disable Default Skin:</h4>
<p>Check this box to disable the default skin that comes with the plugin. To use your own styles check the box and add the CSS to your theme&#8217;s style sheet. The default CSS file can be used as a template.</p>
<h4>Open Links In New Window</h4>
<p>Check the box if you wish all links within the media tabs open in a new browser window.</p>
<h4>Google +1 Options</h4>
<ul class="content-list">
<li>Add Statistics &#8211; Check the box to include statistics about your google profile at the top of the tab. The statistics panel is provided by <a href="http://socialstatistics.com" rel="nofollow" class="external">http://socialstatistics.com</a></li>
</ul>
<h4>Twitter Options</h4>
<ul class="content-list">
<li>Show Replies &#8211; Uncheck the box if you do not wish replies to be included in the list of tweets.</li>
</ul>
<h3>Social Media Tabs Widget</h3>
<h4>Tabs</h4>
<p>Select either a static tabbed box or a slide out tabbed panel</p>
<h4>Slider</h4>
<p>Direction of sliding animation for tabs &#8211; horizontal or vertical.</p>
<h4>Width</h4>
<p>Width of widget in pixels.</p>
<h4>Height</h4>
<p>Height of widget in pixels.</p>
<h4>Location (for slide out tabs only):</h4>
<p>The position of the social media tabs panel in the browser window.</p>
<h4>Offset (for slide out tabs only):</h4>
<p>Offset allows you to fine tune the positioning by adding the number of pixels that you would like to offset the panel from the edge of the browser window.</p>
<h4>Animation Speed (for slide out tabs only):</h4>
<p>The speed in milliseconds to open and close the tabbed panel.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close (for slide out tabs only):</h4>
<p>If checked, the tabs will automatically slide closed when the user clicks anywhere else in the browser window</p>
<h4>Load Open (for slide out tabs only):</h4>
<p>If checked, the social media tabs will be displayed open when the page first loads. The tab will still close the panel when clicked.</p>
<h4>Tabs</h4>
<p>Select the location of each profile type &#8211; tabs 1 to 4</p>
<h4>Open Tab</h4>
<p>Select default tab that will be open when the page first loads.</p>
<h4>Facebook Like Box</h4>
<ul class="content-list">
<li>Facebook ID &#8211; Enter the facebook page ID</li>
<li>Size &#8211; Width &#038; Height of Facebook box in pixels</li>
<li>Connections &#8211; Enter the number of connections to be displayed</li>
</ul>
<p>For more information on how to get your facebook page ID see our FAQ &#8211; <a href="/blog/index.php/faq/how-to-get-your-facebook-page-id/">How to get your facebook page ID</a></p>
<h4>Google</h4>
<ul class="content-list">
<li>Google ID &#8211; Enter the google profile ID</li>
<li>Results &#8211; Maximum number of buzz results to show</li>
</ul>
<p>For more information on how to get your google profile ID see our FAQ &#8211; <a href="/blog/index.php/faq/how-to-get-your-google-profile-id/">How to get your google profile ID</a></p>
<h4>Twitter</h4>
<ul class="content-list">
<li>Username &#8211; Enter the profile username</li>
<li>Title &#8211; The heading for the Twitter tab</li>
<li>Tweets &#8211; Number of tweets to be displayed</li>
</ul>
<h4>RSS</h4>
<ul class="content-list">
<li>URL &#8211; Enter the RSS Feed URL</li>
<li>Title &#8211; The heading for the RSS feed tab</li>
<li>Results &#8211; The number of feed results to display</li>
</ul>
<h4>YouTube</h4>
<ul class="content-list">
<li>Username &#8211; Enter your YouTube profile username</li>
<li>Video ID &#8211; To include an embedded YouTube video enter the YouTube Video ID</li>
</ul>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Check out our <a href="/blog/index.php/frequently-asked-questions/social-media-tabs/">Frequently Asked Questions for Social Media Tabs</a>.</strong></p>
<p>Many issues that can crop up with installing and using the plugin with different themes have also been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demos for WordPress Social Media Tabs Plugin</h3>
<ul class="content-list">
<li><a href="/lab/demo-wordpress-social-media-tabs-plugin/">Social Media Tabs Demo</a></li>
</ul>
<h3>Download Social Media Tabs plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/social-media-tabs.1.2.zip" rel="nofollow">Download Social Media Tabs 1.2 (2,953)</a></p>

<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/social-media-tabs/" rel="nofollow" class="external">wordpress.org</a></strong>.</p>
<p>If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your social media tabs let us know via comments, email or our online contact form.</p>
<div class="donate">
<form name="_xclick" id="form-donate" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="NVWNM7CSNMEHY">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/social-media-tabs-screenshot-1.png" alt="" /></p>
<p class="text-center"><strong>Example of vertical sliding social buttons panel</strong></p>
<p class="text-center"><img src="/media/images/social-media-tabs-screenshot-2.png" alt="" /></p>
<p class="text-center"><strong>Example of social media tabbed box</strong></p>
<h3>Other Social Media/Network Plugins</h3>
<p>If you like Social Media Tabs then why not try out our other social network WordPress plugins:</p>
<h4>Slick Social Share Buttons</h4>
<p>Add facebook, twitter, google +1, linkedin, digg, and stumbledupon social media buttons to your website in either a floating or sliding panel &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/">see plugin page</a></p>
<h4>Floating Tweets</h4>
<p>The Floating Tweets plugin adds a floating, slide out tab containing the latest tweets from any twitter account. The widget is easily set up via any widget panel and can handle multiple twitter feeds per page &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/">see plugin page</a></p>
<h3>Updates</h3>
<h4>Version 1.2 &#8211; 8th September 2011</h4>
<ul class="content-list">
<li>Added: YouTube subscription tab with embedded YouTube video</li>
<li>Removed: Google +1 feed. +1 feed used a 3rd party API since there is currently no official google +1 API. This feed has unfortunately been stopped.</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=_Mu2AQ-mvnw:dRSiVEb-YkQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=_Mu2AQ-mvnw:dRSiVEb-YkQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/_Mu2AQ-mvnw" height="1" width="1"/>";}i:1;a:14:{s:5:"title";s:64:"jQuery Tutorial – Adding Vertical Animation to the Slider Menu";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/ArOF8UYlSmc/";s:8:"comments";s:122:"http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/#comments";s:7:"pubdate";s:31:"Tue, 09 Aug 2011 03:22:52 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:60:"jQueryTutorialsanimationhorizontalmenuslidertutorialvertical";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=2169";s:11:"description";s:856:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>After our jQuery tutorial yesterday on creating a jQuery Slider Menu we have had several requests on how to modify the jQuery code to scroll the slider images vertically instead of horizontally.</p>
<p>In today&#8217;s post we are going to look at changing the jQuery code so that the slider menu can handle both vertical and horizontal animation.</p>
<p>Both the HTML &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:4282:"<p>After our jQuery tutorial yesterday on <a href="/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/">creating a jQuery Slider Menu</a> we have had several requests on how to modify the jQuery code to scroll the slider images vertically instead of horizontally.</p>
<p>In today&#8217;s post we are going to look at changing the jQuery code so that the slider menu can handle both vertical and horizontal animation.</p>
<p>Both the HTML and CSS remain exactly the same for this improved version and you can refer to yesterdays tutorial for the details.</p>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_vertical_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-horizontal-vertical-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<h3 class="clear">The jQuery Code</h3>
<p>To make the slider handle both directions we only need to add a few changes to our jQuery code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

    // Declare variables
    var direction = 'vertical'; // Additional variable which determines the slider direction - vertical or horizontal
    var width = 400;
    var height = 292; // Declare the height of the slider panel
    var slides = $('#list-images li');
    var numSlides = slides.length;

    // Set CSS of slide-wrap based on direction
    wrapCss = direction == 'vertical' ? {height: height * numSlides} : {width: width * numSlides} ;

    // Wrap the slides &amp; set the wrap width
    slides.wrapAll('&lt;div id=&quot;slide-wrap&quot;&gt;&lt;/div&gt;').css({'float' : 'left','width' : width});
    $('#slide-wrap').css(wrapCss);

  // Hover function - animate the slides based on index of links
  $('#list-links li a').hover(function(){
	$('#list-links li').removeClass('hover');
	var i = $(this).index('#list-links li a');
	$(this).parent().addClass('hover');

	// Set animation based on direction
	params = direction == 'vertical' ? {'marginTop' : height*(-i)} : {'marginLeft' : width*(-i)} ;
	$('#slide-wrap').stop().animate(params);
  });
});
</pre>
<p>To change the slider animation set the &#8220;dimension&#8221; variable to either &#8220;horizontal&#8221; or &#8220;vertical&#8221;. Our modified hover function now sets the animation parameters using either the width or the height and creates the slider effect by adjusting the left margin or top margin.</p>
<p class="clear">View original post &#8211; <a href="/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/">jQuery Tutorial – Create a jQuery Menu Slider</a></p>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_vertical_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-horizontal-vertical-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<div class="clear"></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/ArOF8UYlSmc" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:118:"http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"2";}s:10:"feedburner";a:1:{s:8:"origlink";s:113:"http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/";}s:7:"summary";s:856:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>After our jQuery tutorial yesterday on creating a jQuery Slider Menu we have had several requests on how to modify the jQuery code to scroll the slider images vertically instead of horizontally.</p>
<p>In today&#8217;s post we are going to look at changing the jQuery code so that the slider menu can handle both vertical and horizontal animation.</p>
<p>Both the HTML &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/" class="read_more">more</a></p>";s:12:"atom_content";s:4282:"<p>After our jQuery tutorial yesterday on <a href="/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/">creating a jQuery Slider Menu</a> we have had several requests on how to modify the jQuery code to scroll the slider images vertically instead of horizontally.</p>
<p>In today&#8217;s post we are going to look at changing the jQuery code so that the slider menu can handle both vertical and horizontal animation.</p>
<p>Both the HTML and CSS remain exactly the same for this improved version and you can refer to yesterdays tutorial for the details.</p>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_vertical_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-horizontal-vertical-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<h3 class="clear">The jQuery Code</h3>
<p>To make the slider handle both directions we only need to add a few changes to our jQuery code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

    // Declare variables
    var direction = 'vertical'; // Additional variable which determines the slider direction - vertical or horizontal
    var width = 400;
    var height = 292; // Declare the height of the slider panel
    var slides = $('#list-images li');
    var numSlides = slides.length;

    // Set CSS of slide-wrap based on direction
    wrapCss = direction == 'vertical' ? {height: height * numSlides} : {width: width * numSlides} ;

    // Wrap the slides &amp; set the wrap width
    slides.wrapAll('&lt;div id=&quot;slide-wrap&quot;&gt;&lt;/div&gt;').css({'float' : 'left','width' : width});
    $('#slide-wrap').css(wrapCss);

  // Hover function - animate the slides based on index of links
  $('#list-links li a').hover(function(){
	$('#list-links li').removeClass('hover');
	var i = $(this).index('#list-links li a');
	$(this).parent().addClass('hover');

	// Set animation based on direction
	params = direction == 'vertical' ? {'marginTop' : height*(-i)} : {'marginLeft' : width*(-i)} ;
	$('#slide-wrap').stop().animate(params);
  });
});
</pre>
<p>To change the slider animation set the &#8220;dimension&#8221; variable to either &#8220;horizontal&#8221; or &#8220;vertical&#8221;. Our modified hover function now sets the animation parameters using either the width or the height and creates the slider effect by adjusting the left margin or top margin.</p>
<p class="clear">View original post &#8211; <a href="/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/">jQuery Tutorial – Create a jQuery Menu Slider</a></p>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_vertical_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-horizontal-vertical-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<div class="clear"></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=ArOF8UYlSmc:7f0Bi7q1WKo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=ArOF8UYlSmc:7f0Bi7q1WKo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/ArOF8UYlSmc" height="1" width="1"/>";}i:2;a:14:{s:5:"title";s:47:"jQuery Tutorial – Create a jQuery Menu Slider";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/c9BV-15gogg/";s:8:"comments";s:105:"http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/#comments";s:7:"pubdate";s:31:"Mon, 08 Aug 2011 05:32:46 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:72:"jQueryTutorialsWebsite Codinganimationimagesmenunavigationslidertutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=2140";s:11:"description";s:976:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/"><img align="left" hspace="5" width="150" src="/media/images/jquery_menu_slider.png" class="alignleft wp-post-image tfe" alt="jQuery Menu Slider" title="" /></a><p class="text-center pad-top"><img src="/media/images/jquery_menu_slider.png" alt="jQuery Menu Slider" /></p>
<p>I the following tutorial we are going to go through how to create a jQuery menu slider similar to the one used in our website&#8217;s mega menu navigation (see &#8220;WordPress Plugins&#8221; menu item).</p>
<p class="clear"><span>View Demo</span> <span>Download Source Code</span></p>
The HTML
<p>The HTML is very simple and basically includes:</p>
<ul class="content-list">
<li>A wrapper (&#8220;#menu-slider&#8221;) &#8211; only used</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:10836:"<p class="text-center pad-top"><img src="/media/images/jquery_menu_slider.png" alt="jQuery Menu Slider" /></p>
<p>I the following tutorial we are going to go through how to create a jQuery menu slider similar to the one used in our website&#8217;s mega menu navigation (see &#8220;WordPress Plugins&#8221; menu item).</p>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<h3 class="clear">The HTML</h3>
<p>The HTML is very simple and basically includes:</p>
<ul class="content-list">
<li>A wrapper (&#8220;#menu-slider&#8221;) &#8211; only used for styling the jquery menu slider</li>
<li>An unordered list of text links (&#8220;#list-links&#8221;), which will make up the menu section</li>
<li>A list of images (&#8220;#list-images&#8221;) including captions, which will be used to create the slider</li>
</ul>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;menu-slider&quot;&gt;
    &lt;ul id=&quot;list-links&quot;&gt;
        &lt;li class=&quot;hover&quot;&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/&quot;&gt;Mega Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu-widget/&quot;&gt;Vertical Mega Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/&quot;&gt;Vertical Accordion Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drill-down-ipod-menu-widget/&quot;&gt;jQuery Drill Down iPod Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/&quot;&gt;jQuery Slick Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/&quot;&gt;Floating Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/&quot;&gt;Floating Tweets&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugin-slick-contact-forms/&quot;&gt;Slick Contact Forms&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/&quot;&gt;Slick Social Share Buttons&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;

    &lt;ul id=&quot;list-images&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_1a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Horizontal Mega Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_2a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Vertical Mega Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_3a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Vertical Accordion Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drill-down-ipod-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_4a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Drill Down iPod Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_5a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Slick Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_6a.png&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Floating Menu Widget&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_7a.png&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Floating Tweets Widget&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugin-slick-contact-forms/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_8a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Slick Contact Forms&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_9a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Slick Social Share Buttons&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>On the first link we have added the class &#8220;hover&#8221; to show the active state for the slider when the page loads.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>The Slider jQuery Code</h3>
<p>The jQuery is surprisingly simple for the menu slider. Basically it involves 2 parts &#8211; creating the slider structure and then the function to handle the hover event when hovering over the list of links:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

    // Declare variables
    var width = 400; // width of slide - required for animation calculation
    var slides = $('#list-images li');
    var numSlides = slides.length;

    // Wrap the slides &amp; set the wrap width - this will be used to animate the slider left/right
    slides.wrapAll('&lt;div id=&quot;slide-wrap&quot;&gt;&lt;/div&gt;').css({'float' : 'left','width' : width});
    $('#slide-wrap').css({width: width * numSlides});

    // Hover function - animate the slides based on index of active link
    $('#list-links li a').hover(function(){
        $('#list-links li').removeClass('hover');
        var i = $(this).index('#list-links li a');
        $(this).parent().addClass('hover');
        $('#slide-wrap').stop().animate({'marginLeft' : width*(-i)});
    });
});
</pre>
<p>In the above code we wrap the sliders in a div tag (&#8220;#slide-wrap&#8221;) &#8211; this is what is actually animated to give the sliding effect when hovering over a menu item.</p>
<p>The hover function on the list of links calculates how far to animate the slide-wrap based on the width of the slide and the index number of the active link. The function also adds class &#8220;hover&#8221; to the active li tag, which we can use to style the menu to indicate the active menu item.</p>
<h3>The Menu Slider CSS</h3>
<p>Finally some CSS styles to create the required design:</p>
<pre class="brush: plain; title: ; notranslate">
#menu-slider {
background: url(images/bg_menu_slider.png) no-repeat 0 0;
padding: 15px;
margin-bottom: 20px;
}

/* Required */
#list-images, #list-images li {
height: 292px;
width: 400px;
display: block;
}
#list-images {
float: right;
overflow: hidden; /* Required to hide the inactive slides */
border: 1px solid #ccc;
}
#list-images li {
position: relative;
}

#list-images li img {
background: #fff;
position: absolute;
top: 0;
left: 0;
}

/* Image captions */
#list-images li span {
background: url(images/grid1.png) repeat 0 0;
position: absolute;
bottom: 0;
left: 0;
width: 362px;
display: block;
padding: 14px 20px;
font: bold 20px Arial, sans-serif;
color: #fff;
height: 20px;
line-height: 20px;
}

/* Menu text links */
#list-links {
width: 220px;
float: left;
}
#list-links li {
padding: 0 15px 0 0;
}
#list-links li a {
font: normal 12px Arial, sans-serif;
color: #222;
padding: 8px 5px 8px 8px;
border-bottom: 1px solid #ccc;
font-weight: bold;
font-size: 13px;
display: block;
}
#list-links li.hover {
background: url(images/tab_current.png) no-repeat 100% center;
}
#list-links li.hover a, #list-links li.hover a:hover {
color: #fff;
background: none;
border-bottom: none;
padding-bottom: 9px;
}
#list-links li.last a {
border-bottom: none;
}
</pre>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<h3 class="clear">Adding Vertical Slider Animation</h3>
<p>Check out our follow up post &#8211; <a href="/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/">jQuery Tutorial – Adding Vertical Animation to the Slider Menu</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/c9BV-15gogg" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:101:"http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"8";}s:10:"feedburner";a:1:{s:8:"origlink";s:96:"http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/";}s:7:"summary";s:976:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/"><img align="left" hspace="5" width="150" src="/media/images/jquery_menu_slider.png" class="alignleft wp-post-image tfe" alt="jQuery Menu Slider" title="" /></a><p class="text-center pad-top"><img src="/media/images/jquery_menu_slider.png" alt="jQuery Menu Slider" /></p>
<p>I the following tutorial we are going to go through how to create a jQuery menu slider similar to the one used in our website&#8217;s mega menu navigation (see &#8220;WordPress Plugins&#8221; menu item).</p>
<p class="clear"><span>View Demo</span> <span>Download Source Code</span></p>
The HTML
<p>The HTML is very simple and basically includes:</p>
<ul class="content-list">
<li>A wrapper (&#8220;#menu-slider&#8221;) &#8211; only used</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tutorial-create-a-jquery-menu-slider/" class="read_more">more</a></p>";s:12:"atom_content";s:10836:"<p class="text-center pad-top"><img src="/media/images/jquery_menu_slider.png" alt="jQuery Menu Slider" /></p>
<p>I the following tutorial we are going to go through how to create a jQuery menu slider similar to the one used in our website&#8217;s mega menu navigation (see &#8220;WordPress Plugins&#8221; menu item).</p>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<h3 class="clear">The HTML</h3>
<p>The HTML is very simple and basically includes:</p>
<ul class="content-list">
<li>A wrapper (&#8220;#menu-slider&#8221;) &#8211; only used for styling the jquery menu slider</li>
<li>An unordered list of text links (&#8220;#list-links&#8221;), which will make up the menu section</li>
<li>A list of images (&#8220;#list-images&#8221;) including captions, which will be used to create the slider</li>
</ul>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;menu-slider&quot;&gt;
    &lt;ul id=&quot;list-links&quot;&gt;
        &lt;li class=&quot;hover&quot;&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/&quot;&gt;Mega Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu-widget/&quot;&gt;Vertical Mega Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/&quot;&gt;Vertical Accordion Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drill-down-ipod-menu-widget/&quot;&gt;jQuery Drill Down iPod Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/&quot;&gt;jQuery Slick Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/&quot;&gt;Floating Menu&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/&quot;&gt;Floating Tweets&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugin-slick-contact-forms/&quot;&gt;Slick Contact Forms&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;last&quot;&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/&quot;&gt;Slick Social Share Buttons&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;

    &lt;ul id=&quot;list-images&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_1a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Horizontal Mega Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_2a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Vertical Mega Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_3a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Vertical Accordion Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drill-down-ipod-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_4a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Drill Down iPod Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_5a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;jQuery Slick Menu&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_6a.png&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Floating Menu Widget&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_7a.png&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Floating Tweets Widget&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugin-slick-contact-forms/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_8a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Slick Contact Forms&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/&quot;&gt;
            &lt;img src=&quot;/media/images/mega_9a.jpg&quot; alt=&quot;&quot; /&gt;
            &lt;span&gt;Slick Social Share Buttons&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>On the first link we have added the class &#8220;hover&#8221; to show the active state for the slider when the page loads.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>The Slider jQuery Code</h3>
<p>The jQuery is surprisingly simple for the menu slider. Basically it involves 2 parts &#8211; creating the slider structure and then the function to handle the hover event when hovering over the list of links:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

    // Declare variables
    var width = 400; // width of slide - required for animation calculation
    var slides = $('#list-images li');
    var numSlides = slides.length;

    // Wrap the slides &amp; set the wrap width - this will be used to animate the slider left/right
    slides.wrapAll('&lt;div id=&quot;slide-wrap&quot;&gt;&lt;/div&gt;').css({'float' : 'left','width' : width});
    $('#slide-wrap').css({width: width * numSlides});

    // Hover function - animate the slides based on index of active link
    $('#list-links li a').hover(function(){
        $('#list-links li').removeClass('hover');
        var i = $(this).index('#list-links li a');
        $(this).parent().addClass('hover');
        $('#slide-wrap').stop().animate({'marginLeft' : width*(-i)});
    });
});
</pre>
<p>In the above code we wrap the sliders in a div tag (&#8220;#slide-wrap&#8221;) &#8211; this is what is actually animated to give the sliding effect when hovering over a menu item.</p>
<p>The hover function on the list of links calculates how far to animate the slide-wrap based on the width of the slide and the index number of the active link. The function also adds class &#8220;hover&#8221; to the active li tag, which we can use to style the menu to indicate the active menu item.</p>
<h3>The Menu Slider CSS</h3>
<p>Finally some CSS styles to create the required design:</p>
<pre class="brush: plain; title: ; notranslate">
#menu-slider {
background: url(images/bg_menu_slider.png) no-repeat 0 0;
padding: 15px;
margin-bottom: 20px;
}

/* Required */
#list-images, #list-images li {
height: 292px;
width: 400px;
display: block;
}
#list-images {
float: right;
overflow: hidden; /* Required to hide the inactive slides */
border: 1px solid #ccc;
}
#list-images li {
position: relative;
}

#list-images li img {
background: #fff;
position: absolute;
top: 0;
left: 0;
}

/* Image captions */
#list-images li span {
background: url(images/grid1.png) repeat 0 0;
position: absolute;
bottom: 0;
left: 0;
width: 362px;
display: block;
padding: 14px 20px;
font: bold 20px Arial, sans-serif;
color: #fff;
height: 20px;
line-height: 20px;
}

/* Menu text links */
#list-links {
width: 220px;
float: left;
}
#list-links li {
padding: 0 15px 0 0;
}
#list-links li a {
font: normal 12px Arial, sans-serif;
color: #222;
padding: 8px 5px 8px 8px;
border-bottom: 1px solid #ccc;
font-weight: bold;
font-size: 13px;
display: block;
}
#list-links li.hover {
background: url(images/tab_current.png) no-repeat 100% center;
}
#list-links li.hover a, #list-links li.hover a:hover {
color: #fff;
background: none;
border-bottom: none;
padding-bottom: 9px;
}
#list-links li.last a {
border-bottom: none;
}
</pre>
<p class="clear"><a href="/lab/jquery/demo/jquery_demo_create_jquery_menu_slider.htm" class="demo"><span>View Demo</span></a> <a href="/lab/jquery/demo/download/jquery-menu-slider.zip" class="demo"><span>Download Source Code</span></a></p>
<h3 class="clear">Adding Vertical Slider Animation</h3>
<p>Check out our follow up post &#8211; <a href="/blog/index.php/jquery/jquery-tutorial-adding-vertical-animation-jquery-slider-menu/">jQuery Tutorial – Adding Vertical Animation to the Slider Menu</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=c9BV-15gogg:mflZ7KVzHb4:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=c9BV-15gogg:mflZ7KVzHb4:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/c9BV-15gogg" height="1" width="1"/>";}i:3;a:14:{s:5:"title";s:47:"WordPress Plugin – Slick Social Share Buttons";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/H5TAd3YEKck/";s:8:"comments";s:116:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/#comments";s:7:"pubdate";s:31:"Sun, 07 Aug 2011 18:59:51 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:135:"jQueryjQuery PluginsSocial NetworksWordpress Pluginsanimationdiggfacebookgoogle +1google buzzlinkedinpluginsstumbleupontwitterwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=2107";s:11:"description";s:920:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/"><img align="left" hspace="5" width="150" src="/media/images/slick_social_share_buttons.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p><strong>Updated 9th September 2011</strong></p>
<p><img src="/media/images/slick_social_share_buttons.jpg" alt="" class="img-border img-right" /></p>
<p>Add facebook like, twitter, google +1, google buzz, linkedin, digg, and stumbledupon social media buttons in a floating or slide out tab to any WordPress website with the WordPress Slick Social Share Buttons plugin.</p>
<p>The plugin has a range of options giving you full control of position of button panel, size of social media buttons, &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:16349:"<p><strong>Updated 9th September 2011</strong></p>
<p><img src="/media/images/slick_social_share_buttons.jpg" alt="" class="img-border img-right" /></p>
<p>Add facebook like, twitter, google +1, google buzz, linkedin, digg, and stumbledupon social media buttons in a floating or slide out tab to any WordPress website with the WordPress Slick Social Share Buttons plugin.</p>
<p>The plugin has a range of options giving you full control of position of button panel, size of social media buttons, display order and whether to show or hide the floating or sticky panel on page load.</p>
<p>The plugin gives you the choice to include the social media share buttons on:</p>
<ul class="content-list">
<li>WordPress Home page</li>
<li>Posts</li>
<li>Pages</li>
<li>Category Pages</li>
<li>Archive Pages</li>
</ul>
<h3>Download Slick Social Share Buttons plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/slick-social-share-buttons.1.2.7.zip" rel="nofollow">Download Slick Social Share Buttons 1.2.7 (14,283)</a></p>

<h3>Demos for WordPress Social Share Buttons Plugin</h3>
<p>Plugin also used on this site &#8211; see social share buttons on left. Additional demos include:</p>
<ul class="content-list">
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin/">Sliding Vertical Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-horizontal-panel/">Horizontal Sliding Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-top-vertical-panel/">Top Vertical Slide Down Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-vertical-panel/">Vertical Floating Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-bottom-panel/">Bottom Floating Panel</a></li>
</ul>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `slick-social-share-buttons` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin options via the &#8220;Slick Social Buttons&#8221; menu option in WordPress admin -> Settings</li>
</ol>
<h3>Floating/Sticky Tab Options</h3>
<p>The type and position of the social button panel can be configured via the plugin settings page in WordPress admin:</p>
<h4>Method</h4>
<p>Select either a &#8220;floating&#8221; panel or a sticky &#8220;Sliding&#8221; tab</p>
<h4>Location:</h4>
<p>The position of the social button panel in the browser window:</p>
<h4>Position From Center</h4>
<p>Only available if using floating buttons. Check this if you wish to have the floating button panel positioned from the center of the page as opposed to the edge of the browser. In the text box enter the number of pixels that the panel should be positioned from the center of the screen. Useful for fixed width websites.</p>
<p>If not checked the position of the floating panel will be based on the edge of the browser &#8211; i.e. if the browser window is reduced the buttons will move towards the center.</p>
<h4>Offset</h4>
<p>Offset allows you to fine tune the positioning by adding the number of pixels that you would like to offset the panel from the edge of the browser window.</p>
<p>For sliding tabs only one offset is used:</p>
<ul class="content-list">
<li>Top-left &#038; bottom-left &#8211; number of pixels from left edge of browser</li>
<li>Top-right &#038; bottom-right &#8211; number of pixels from right edge of browser</li>
<li>Left &#038; right &#8211; number of px from the top of the browser window</li>
</ul>
<p>Floating social buttons:</p>
<ul class="content-list">
<li>Top-left	&#038; left &#8211; pixels from top &#038; pixels from left</li>
<li>Top-right &#038; right &#8211; pixels from top, &#038; pixels from right</li>
<li>Bottom-left &#8211; pixels from bottom &#038; pixels from left</li>
<li>Bottom-right &#8211; pixels from bottom &#038; pixels from right</li>
</ul>
<h4>Direction</h4>
<p>Only applicable for &#8220;Slide Out&#8221; panels. This allows you to select whether the buttons are displayed horizontally or vertically.</p>
<h4>Disable Floating Effects</h4>
<p>If checked the floating style animation used for the floating buttons panel will be disabled and the panel will now stick to its location in the browser (only applicable to floating button panels)</p>
<h4>Floating Speed:</h4>
<p>The speed for the floating animation (only applicable for the floating type) in milliseconds &#8211; i.e. the time it takes to &#8220;catch up&#8221; when the page scrolls up or down) &#8211; e.g. to set the floating speed to 1.5 seconds use <strong>1500</strong>.</p>
<p>The default speed is set to 1.6 secs.</p>
<h4>Animation Speed:</h4>
<p>The speed in milliseconds to open and close the button panel.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close:</h4>
<p>If checked, the panel will automatically slide closed when the user clicks anywhere else in the browser window</p>
<h4>Load Open:</h4>
<p>If checked, the social buttons will be displayed open when the page first loads. The tab will still close the panel when clicked.</p>
<h4>Default Skin:</h4>
<p>Check this box to use the default skin that comes with the plugin. To use your own styles uncheck the box and add the CSS to your theme&#8217;s style sheet. The default CSS file can be used as a template.</p>
<h4>Tab Image URL:</h4>
<p>To use your own image for the button panel tab insert the full URL for the image into the text field. Leave the box empty if you wish to use the default &#8220;Share&#8221; tab that comes with the plugin.</p>
<h3>Page Display Options</h3>
<p>Check the boxes of those pages/posts where you would like the social media buttons to appear:</p>
<ul class="content-list">
<li>WordPress Home page</li>
<li>Posts</li>
<li>Pages</li>
<li>Category Pages</li>
<li>Archive Pages</li>
</ul>
<h4>Excluding Individual Categories</h4>
<p>For category pages you also have the option to specify any categories you would like to exclude from showing the social media buttons.</p>
<p>Click the &#8220;Show Categories&#8221; link to display a complete list of all categories on your website. Clicking on a category will move the category between the include and exclude lists.</p>
<p>Click the &#8220;Save&#8221; button once you have selected the relevant categories.</p>
<p>If a category is excluded the social media buttons will not appear on the category page or any post assigned to that category.</p>
<h3>Social Media Button Options</h3>
<p>To disable a button uncheck the checkbox next to the button name.</p>
<p>The size of each button and whether to display a count of total shares for that page can be selected from the dropdown menu. A sample showing an actual, active button with the selected settings will display in the right-hand column.</p>
<p>The buttons will display on the website in the same order that they are listed in the settings page. To change this order drag &#038; drop the buttons and arrange as required.</p>
<h4>Current Supported Social Media Share Buttons:</h4>
<ul class="content-list">
<li>Twitter Button</li>
<li>Facebook Like</li>
<li>Google +1 Button</li>
<li>Google Buzz Button</li>
<li>LinkedIn Button</li>
<li>StumbleUpon Button</li>
<li>Digg Button</li>
</ul>
<p>In addition to the basic settings some Social APIs require additional information.</p>
<h4>Twitter</h4>
<p>Input your twitter username (minus the &#8216;@&#8217; symbol) to include this in the tweet.</p>
<h4>Facebook</h4>
<p>The facebook like button includes the option to use either the iFrame or xfbml methods of adding the button. Additional text input fields also include Facebook App ID (required if using xfbml) and Admin ID details.</p>
<p>The &#8220;Default Facebook Image&#8221; field allows you to enter the URL for an image that will be entered into the facebook open graph meta tag in the event that a post thumbnail is not available for the page.</p>
<h4>Google Buzz</h4>
<p>The &#8220;Default Google Buzz Image&#8221; option allows you to enter the URL for a default image, which will be used if a featured image in your blog post is not available. This is not a required item and can be left blank.</p>
<h3>Twitter URL Shortening</h3>
<p>The plugin includes the option to select URL shortening for twitter from several services:</p>
<ul class="content-list">
<li>Bit.ly</li>
<li>Digg</li>
<li>Su.pr</li>
<li>tinyurl</li>
</ul>
<p>If using bit.ly the API Key and account login must also be entered. For su.pr these are both optional.</p>
<h3>Shortcodes</h3>
<p>The plugin includes the feature to add text links within your site content that will open/close the sticky or floating button panel.</p>
<a href='#' class='dcssb-link'>Share</a> &#8211; <br />
default link, which will toggle the social share button panel open/closed with the link text &#8220;Share&#8221;</p>
<p><a href='#' class='dcssb-link'>Tell Your Friends</a> &#8211; <br />
toggle the button panel open/closed with the link text &#8220;Tell Your Friends&#8221;</p>
<p><a href='#' class='dcssb-open'>Share</a> &#8211; <br />open the button panel with the default link text.</p>
<p><a href='#' class='dcssb-close'>Share</a> &#8211; <br />close the button panel with the default link text.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Check out our <a href="/blog/index.php/frequently-asked-questions/slick-social-share-buttons/">Frequently Asked Questions for Slick Social Share Buttons</a>.</strong></p>
<p>Many issues that can crop up with installing and using the plugin with different themes have also been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demos for WordPress Social Share Buttons Plugin</h3>
<p>Plugin also used on this site &#8211; see social share buttons on left. Additional demos include:</p>
<ul class="content-list">
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin/">Sliding Vertical Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-horizontal-panel/">Horizontal Sliding Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-top-vertical-panel/">Top Vertical Slide Down Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-vertical-panel/">Vertical Floating Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-bottom-panel/">Bottom Floating Panel</a></li>
</ul>
<h3>Download Slick Social Share Buttons plugin</h3>
<p><p><a href="http://downloads.wordpress.org/plugin/slick-social-share-buttons.1.2.7.zip" rel="nofollow">Download Slick Social Share Buttons 1.2.7 (14,283)</a></p>

<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/slick-social-share-buttons/" rel="nofollow" class="external">wordpress.org</a></strong>.</p>
<p>If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your social buttons panel let us know via comments, email or our online contact form.</p>
<div class="donate">
<form name="_xclick" id="form-donate" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="NVWNM7CSNMEHY">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/nl_NL/i/scr/pixel.gif" width="1" height="1"></form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/slick-social-share-buttons-screenshot-2.png" alt="" /></p>
<p class="text-center"><strong>Example of vertical sliding social buttons panel</strong></p>
<p class="text-center"><img src="/media/images/slick-social-share-buttons-screenshot-3.png" alt="" /></p>
<p class="text-center"><strong>Example of horizontal sliding social buttons panel</strong></p>
<p class="text-center"><img src="/media/images/slick-social-share-buttons-screenshot-4.png" alt="" /></p>
<p class="text-center"><strong>Example of floating panel</strong></p>
<h3>Other Social Media/Network Plugins</h3>
<p>If you like Slick Social Share Buttons then try out our other social media WordPress plugins:</p>
<h4>Social Media Tabs</h4>
<p>Add a facebook like box, google +1, google buzz, twitter and RSS profiles and feeds to any widget area with compact, slick sliding tabs. Plugin has the option of adding the tabbed box to either a slide out panel at the side of your browser window or as a static tabbed box in your widget area &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/">see plugin page</a></p>
<h4>Floating Tweets</h4>
<p>The Floating Tweets plugin adds a floating, slide out tab containing the latest tweets from any twitter account. The widget is easily set up via any widget panel and can handle multiple twitter feeds per page &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/">see plugin page</a></p>
<h3>Updates</h3>
<h4>Version 1.2.7 &#8211; 9th September 2011</h4>
<ul class="content-list">
<li>Fixed: Tweet home page &#038; category page URL using shortener</li>
<li>Fixed: Hiding of facebook like comment box</li>
</ul>
<h4>Version 1.2.6 &#8211; 4th September 2011</h4>
<ul class="content-list">
<li>Added: Option to disable floating button effects</li>
</ul>
<h4>Version 1.2.5 &#8211; 25th August 2011</h4>
<ul class="content-list">
<li>Added: Option to position floating buttons from center of page</li>
</ul>
<h4>Version 1.2.4 &#8211; 19th August 2011</h4>
<ul class="content-list">
<li>Added: Google Buzz button</li>
</ul>
<h4>Version 1.2.3 &#8211; 14th August 2011</h4>
<ul class="content-list">
<li>Added: Ability to exclude specific categories</li>
</ul>
<h4>Version 1.2 &#8211; 11th August 2011</h4>
<ul class="content-list">
<li>Added: Digg button</li>
<li>Fixed: Bug with Stumbleupon &#038; Safari</li>
</ul>
<h4>Version 1.1 &#8211; 11th August 2011</h4>
<ul class="content-list">
<li>Added: Default image for facebook like button Open Graph tags</li>
<li>Fixed: URL for WordPress home page for Open Graph tags</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/H5TAd3YEKck" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:112:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/feed/";}s:5:"slash";a:1:{s:8:"comments";s:3:"178";}s:10:"feedburner";a:1:{s:8:"origlink";s:107:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/";}s:7:"summary";s:920:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/"><img align="left" hspace="5" width="150" src="/media/images/slick_social_share_buttons.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p><strong>Updated 9th September 2011</strong></p>
<p><img src="/media/images/slick_social_share_buttons.jpg" alt="" class="img-border img-right" /></p>
<p>Add facebook like, twitter, google +1, google buzz, linkedin, digg, and stumbledupon social media buttons in a floating or slide out tab to any WordPress website with the WordPress Slick Social Share Buttons plugin.</p>
<p>The plugin has a range of options giving you full control of position of button panel, size of social media buttons, &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/" class="read_more">more</a></p>";s:12:"atom_content";s:16349:"<p><strong>Updated 9th September 2011</strong></p>
<p><img src="/media/images/slick_social_share_buttons.jpg" alt="" class="img-border img-right" /></p>
<p>Add facebook like, twitter, google +1, google buzz, linkedin, digg, and stumbledupon social media buttons in a floating or slide out tab to any WordPress website with the WordPress Slick Social Share Buttons plugin.</p>
<p>The plugin has a range of options giving you full control of position of button panel, size of social media buttons, display order and whether to show or hide the floating or sticky panel on page load.</p>
<p>The plugin gives you the choice to include the social media share buttons on:</p>
<ul class="content-list">
<li>WordPress Home page</li>
<li>Posts</li>
<li>Pages</li>
<li>Category Pages</li>
<li>Archive Pages</li>
</ul>
<h3>Download Slick Social Share Buttons plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/slick-social-share-buttons.1.2.7.zip" rel="nofollow">Download Slick Social Share Buttons 1.2.7 (14,283)</a></p>

<h3>Demos for WordPress Social Share Buttons Plugin</h3>
<p>Plugin also used on this site &#8211; see social share buttons on left. Additional demos include:</p>
<ul class="content-list">
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin/">Sliding Vertical Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-horizontal-panel/">Horizontal Sliding Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-top-vertical-panel/">Top Vertical Slide Down Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-vertical-panel/">Vertical Floating Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-bottom-panel/">Bottom Floating Panel</a></li>
</ul>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `slick-social-share-buttons` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>Configure the plugin options via the &#8220;Slick Social Buttons&#8221; menu option in WordPress admin -> Settings</li>
</ol>
<h3>Floating/Sticky Tab Options</h3>
<p>The type and position of the social button panel can be configured via the plugin settings page in WordPress admin:</p>
<h4>Method</h4>
<p>Select either a &#8220;floating&#8221; panel or a sticky &#8220;Sliding&#8221; tab</p>
<h4>Location:</h4>
<p>The position of the social button panel in the browser window:</p>
<h4>Position From Center</h4>
<p>Only available if using floating buttons. Check this if you wish to have the floating button panel positioned from the center of the page as opposed to the edge of the browser. In the text box enter the number of pixels that the panel should be positioned from the center of the screen. Useful for fixed width websites.</p>
<p>If not checked the position of the floating panel will be based on the edge of the browser &#8211; i.e. if the browser window is reduced the buttons will move towards the center.</p>
<h4>Offset</h4>
<p>Offset allows you to fine tune the positioning by adding the number of pixels that you would like to offset the panel from the edge of the browser window.</p>
<p>For sliding tabs only one offset is used:</p>
<ul class="content-list">
<li>Top-left &#038; bottom-left &#8211; number of pixels from left edge of browser</li>
<li>Top-right &#038; bottom-right &#8211; number of pixels from right edge of browser</li>
<li>Left &#038; right &#8211; number of px from the top of the browser window</li>
</ul>
<p>Floating social buttons:</p>
<ul class="content-list">
<li>Top-left	&#038; left &#8211; pixels from top &#038; pixels from left</li>
<li>Top-right &#038; right &#8211; pixels from top, &#038; pixels from right</li>
<li>Bottom-left &#8211; pixels from bottom &#038; pixels from left</li>
<li>Bottom-right &#8211; pixels from bottom &#038; pixels from right</li>
</ul>
<h4>Direction</h4>
<p>Only applicable for &#8220;Slide Out&#8221; panels. This allows you to select whether the buttons are displayed horizontally or vertically.</p>
<h4>Disable Floating Effects</h4>
<p>If checked the floating style animation used for the floating buttons panel will be disabled and the panel will now stick to its location in the browser (only applicable to floating button panels)</p>
<h4>Floating Speed:</h4>
<p>The speed for the floating animation (only applicable for the floating type) in milliseconds &#8211; i.e. the time it takes to &#8220;catch up&#8221; when the page scrolls up or down) &#8211; e.g. to set the floating speed to 1.5 seconds use <strong>1500</strong>.</p>
<p>The default speed is set to 1.6 secs.</p>
<h4>Animation Speed:</h4>
<p>The speed in milliseconds to open and close the button panel.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close:</h4>
<p>If checked, the panel will automatically slide closed when the user clicks anywhere else in the browser window</p>
<h4>Load Open:</h4>
<p>If checked, the social buttons will be displayed open when the page first loads. The tab will still close the panel when clicked.</p>
<h4>Default Skin:</h4>
<p>Check this box to use the default skin that comes with the plugin. To use your own styles uncheck the box and add the CSS to your theme&#8217;s style sheet. The default CSS file can be used as a template.</p>
<h4>Tab Image URL:</h4>
<p>To use your own image for the button panel tab insert the full URL for the image into the text field. Leave the box empty if you wish to use the default &#8220;Share&#8221; tab that comes with the plugin.</p>
<h3>Page Display Options</h3>
<p>Check the boxes of those pages/posts where you would like the social media buttons to appear:</p>
<ul class="content-list">
<li>WordPress Home page</li>
<li>Posts</li>
<li>Pages</li>
<li>Category Pages</li>
<li>Archive Pages</li>
</ul>
<h4>Excluding Individual Categories</h4>
<p>For category pages you also have the option to specify any categories you would like to exclude from showing the social media buttons.</p>
<p>Click the &#8220;Show Categories&#8221; link to display a complete list of all categories on your website. Clicking on a category will move the category between the include and exclude lists.</p>
<p>Click the &#8220;Save&#8221; button once you have selected the relevant categories.</p>
<p>If a category is excluded the social media buttons will not appear on the category page or any post assigned to that category.</p>
<h3>Social Media Button Options</h3>
<p>To disable a button uncheck the checkbox next to the button name.</p>
<p>The size of each button and whether to display a count of total shares for that page can be selected from the dropdown menu. A sample showing an actual, active button with the selected settings will display in the right-hand column.</p>
<p>The buttons will display on the website in the same order that they are listed in the settings page. To change this order drag &#038; drop the buttons and arrange as required.</p>
<h4>Current Supported Social Media Share Buttons:</h4>
<ul class="content-list">
<li>Twitter Button</li>
<li>Facebook Like</li>
<li>Google +1 Button</li>
<li>Google Buzz Button</li>
<li>LinkedIn Button</li>
<li>StumbleUpon Button</li>
<li>Digg Button</li>
</ul>
<p>In addition to the basic settings some Social APIs require additional information.</p>
<h4>Twitter</h4>
<p>Input your twitter username (minus the &#8216;@&#8217; symbol) to include this in the tweet.</p>
<h4>Facebook</h4>
<p>The facebook like button includes the option to use either the iFrame or xfbml methods of adding the button. Additional text input fields also include Facebook App ID (required if using xfbml) and Admin ID details.</p>
<p>The &#8220;Default Facebook Image&#8221; field allows you to enter the URL for an image that will be entered into the facebook open graph meta tag in the event that a post thumbnail is not available for the page.</p>
<h4>Google Buzz</h4>
<p>The &#8220;Default Google Buzz Image&#8221; option allows you to enter the URL for a default image, which will be used if a featured image in your blog post is not available. This is not a required item and can be left blank.</p>
<h3>Twitter URL Shortening</h3>
<p>The plugin includes the option to select URL shortening for twitter from several services:</p>
<ul class="content-list">
<li>Bit.ly</li>
<li>Digg</li>
<li>Su.pr</li>
<li>tinyurl</li>
</ul>
<p>If using bit.ly the API Key and account login must also be entered. For su.pr these are both optional.</p>
<h3>Shortcodes</h3>
<p>The plugin includes the feature to add text links within your site content that will open/close the sticky or floating button panel.</p>
<a href='#' class='dcssb-link'>Share</a> &#8211; <br />
default link, which will toggle the social share button panel open/closed with the link text &#8220;Share&#8221;</p>
<p><a href='#' class='dcssb-link'>Tell Your Friends</a> &#8211; <br />
toggle the button panel open/closed with the link text &#8220;Tell Your Friends&#8221;</p>
<p><a href='#' class='dcssb-open'>Share</a> &#8211; <br />open the button panel with the default link text.</p>
<p><a href='#' class='dcssb-close'>Share</a> &#8211; <br />close the button panel with the default link text.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Check out our <a href="/blog/index.php/frequently-asked-questions/slick-social-share-buttons/">Frequently Asked Questions for Slick Social Share Buttons</a>.</strong></p>
<p>Many issues that can crop up with installing and using the plugin with different themes have also been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demos for WordPress Social Share Buttons Plugin</h3>
<p>Plugin also used on this site &#8211; see social share buttons on left. Additional demos include:</p>
<ul class="content-list">
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin/">Sliding Vertical Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-horizontal-panel/">Horizontal Sliding Button Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-top-vertical-panel/">Top Vertical Slide Down Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-vertical-panel/">Vertical Floating Panel</a></li>
<li><a href="/lab/demo-wordpress-slick-social-share-buttons-plugin-floating-bottom-panel/">Bottom Floating Panel</a></li>
</ul>
<h3>Download Slick Social Share Buttons plugin</h3>
<p><p><a href="http://downloads.wordpress.org/plugin/slick-social-share-buttons.1.2.7.zip" rel="nofollow">Download Slick Social Share Buttons 1.2.7 (14,283)</a></p>

<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/slick-social-share-buttons/" rel="nofollow" class="external">wordpress.org</a></strong>.</p>
<p>If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your social buttons panel let us know via comments, email or our online contact form.</p>
<div class="donate">
<form name="_xclick" id="form-donate" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="NVWNM7CSNMEHY">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/nl_NL/i/scr/pixel.gif" width="1" height="1"></form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/slick-social-share-buttons-screenshot-2.png" alt="" /></p>
<p class="text-center"><strong>Example of vertical sliding social buttons panel</strong></p>
<p class="text-center"><img src="/media/images/slick-social-share-buttons-screenshot-3.png" alt="" /></p>
<p class="text-center"><strong>Example of horizontal sliding social buttons panel</strong></p>
<p class="text-center"><img src="/media/images/slick-social-share-buttons-screenshot-4.png" alt="" /></p>
<p class="text-center"><strong>Example of floating panel</strong></p>
<h3>Other Social Media/Network Plugins</h3>
<p>If you like Slick Social Share Buttons then try out our other social media WordPress plugins:</p>
<h4>Social Media Tabs</h4>
<p>Add a facebook like box, google +1, google buzz, twitter and RSS profiles and feeds to any widget area with compact, slick sliding tabs. Plugin has the option of adding the tabbed box to either a slide out panel at the side of your browser window or as a static tabbed box in your widget area &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/">see plugin page</a></p>
<h4>Floating Tweets</h4>
<p>The Floating Tweets plugin adds a floating, slide out tab containing the latest tweets from any twitter account. The widget is easily set up via any widget panel and can handle multiple twitter feeds per page &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/">see plugin page</a></p>
<h3>Updates</h3>
<h4>Version 1.2.7 &#8211; 9th September 2011</h4>
<ul class="content-list">
<li>Fixed: Tweet home page &#038; category page URL using shortener</li>
<li>Fixed: Hiding of facebook like comment box</li>
</ul>
<h4>Version 1.2.6 &#8211; 4th September 2011</h4>
<ul class="content-list">
<li>Added: Option to disable floating button effects</li>
</ul>
<h4>Version 1.2.5 &#8211; 25th August 2011</h4>
<ul class="content-list">
<li>Added: Option to position floating buttons from center of page</li>
</ul>
<h4>Version 1.2.4 &#8211; 19th August 2011</h4>
<ul class="content-list">
<li>Added: Google Buzz button</li>
</ul>
<h4>Version 1.2.3 &#8211; 14th August 2011</h4>
<ul class="content-list">
<li>Added: Ability to exclude specific categories</li>
</ul>
<h4>Version 1.2 &#8211; 11th August 2011</h4>
<ul class="content-list">
<li>Added: Digg button</li>
<li>Fixed: Bug with Stumbleupon &#038; Safari</li>
</ul>
<h4>Version 1.1 &#8211; 11th August 2011</h4>
<ul class="content-list">
<li>Added: Default image for facebook like button Open Graph tags</li>
<li>Fixed: URL for WordPress home page for Open Graph tags</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5TAd3YEKck:Nl8nwo0jmHQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5TAd3YEKck:Nl8nwo0jmHQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/H5TAd3YEKck" height="1" width="1"/>";}i:4;a:14:{s:5:"title";s:37:"New jQuery Plugin – JQuery Spamless";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/J8_CZNQaD9c/";s:8:"comments";s:108:"http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/#comments";s:7:"pubdate";s:31:"Thu, 04 Aug 2011 06:53:17 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:36:"jQueryjQuery Pluginsemailpluginsspam";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=2102";s:11:"description";s:888:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The jQuery Spamless plugin is a simple and lightweight plugin that helps prevent and protect against email spam by converting obfuscated email addresses into human readable ones in the users browser.</p>
<p>The plugin offers several options, which allow you to customise the level of security:</p>
<ul class="content-list">
<li>Customise the characters used to replace the &#8220;@&#8221; symbol and the domain name</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2312:"<p>The jQuery Spamless plugin is a simple and lightweight plugin that helps prevent and protect against email spam by converting obfuscated email addresses into human readable ones in the users browser.</p>
<p>The plugin offers several options, which allow you to customise the level of security:</p>
<ul class="content-list">
<li>Customise the characters used to replace the &#8220;@&#8221; symbol and the domain name &#8220;.&#8221;.</li>
<li>Select whether to convert reversed text into a human readable email &#8211; e.g. moc[dot]niamod[at]sserdda.liame would be rendered as email.address@domain.com</li>
<li>Automatically add a mailto link</li>
</ul>
<p>The plugin can also be used on mailto links and will automatically identify when a link is used and convert the href text.</p>
<p>Check out the <a href="/lab/jquery-spamless-plugin-stop-email-spam/getting-started/">jQuery Spamless project pages</a> for more information, examples and downloads.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/J8_CZNQaD9c" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:104:"http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:99:"http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/";}s:7:"summary";s:888:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The jQuery Spamless plugin is a simple and lightweight plugin that helps prevent and protect against email spam by converting obfuscated email addresses into human readable ones in the users browser.</p>
<p>The plugin offers several options, which allow you to customise the level of security:</p>
<ul class="content-list">
<li>Customise the characters used to replace the &#8220;@&#8221; symbol and the domain name</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-spamless-plugin-stop-email-spam/" class="read_more">more</a></p>";s:12:"atom_content";s:2312:"<p>The jQuery Spamless plugin is a simple and lightweight plugin that helps prevent and protect against email spam by converting obfuscated email addresses into human readable ones in the users browser.</p>
<p>The plugin offers several options, which allow you to customise the level of security:</p>
<ul class="content-list">
<li>Customise the characters used to replace the &#8220;@&#8221; symbol and the domain name &#8220;.&#8221;.</li>
<li>Select whether to convert reversed text into a human readable email &#8211; e.g. moc[dot]niamod[at]sserdda.liame would be rendered as email.address@domain.com</li>
<li>Automatically add a mailto link</li>
</ul>
<p>The plugin can also be used on mailto links and will automatically identify when a link is used and convert the href text.</p>
<p>Check out the <a href="/lab/jquery-spamless-plugin-stop-email-spam/getting-started/">jQuery Spamless project pages</a> for more information, examples and downloads.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=J8_CZNQaD9c:Afvw9S7etYg:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=J8_CZNQaD9c:Afvw9S7etYg:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/J8_CZNQaD9c" height="1" width="1"/>";}i:5;a:14:{s:5:"title";s:63:"Updated WordPress Plugin – jQuery Vertical Accordion Menu 2.6";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/G1OMvYVTG70/";s:8:"comments";s:132:"http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/#comments";s:7:"pubdate";s:31:"Sun, 19 Jun 2011 15:56:25 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:106:"jQuery PluginsWordpress PluginsaccordionanimationjQuerymenunavigationpluginsupdatesverticalwidgetwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1971";s:11:"description";s:855:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/"><img align="left" hspace="5" width="150" src="/media/images/wordpress_screen_options_tab.png" class="alignleft wp-post-image tfe" alt="screen options tab" title="" /></a><p>The latest version of the WordPress jQuery Vertical Accordion Menu plugin includes a couple of new features to improve the menu&#8217;s flexibility as well as a change to the auto expand based on current page option.</p>
<p>The two new features added to the widget control panel:</p>
Menu Class
<p>In previous versions the accordion menu used the default WordPress class name &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:3838:"<p>The latest version of the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress jQuery Vertical Accordion Menu plugin</a> includes a couple of new features to improve the menu&#8217;s flexibility as well as a change to the auto expand based on current page option.</p>
<p>The two new features added to the widget control panel:</p>
<h3>Menu Class</h3>
<p>In previous versions the accordion menu used the default WordPress class name &#8220;menu&#8221; when creating the menu structure on the page. Starting with version 2.6 you can now change the menu class name, which gives you more control over the styling and integrating with existing theme&#8217;s.</p>
<p>To change the class just enter the new class name into the text box next to the &#8220;menu class&#8221; option.</p>
<p>Leave the text box blank if you want to continue using the default class of &#8220;menu&#8221;.</p>
<h3>Disable Class</h3>
<p>The disable class option now adds the ability to switch off parts of the menu giving you full control over which menu items use the accordion style features.</p>
<p><strong>To add a custom class to a WordPress menu:</strong></p>
<p>Go to Admin -> Appearance -> Menus</p>
<p>Open the &#8220;Screen Options&#8221; tab in the top-right corner of the admin screen</p>
<p class="text-center"><img src="/media/images/wordpress_screen_options_tab.png" alt="screen options tab" class="img-border" /></p>
<p>Check the &#8220;CSS Class&#8221; box and close the screen options tab</p>
<p class="text-center"><img src="/media/images/wordpress_screen_options_tab_open.png" alt="screen options tab open" class="img-border" /></p>
<p>Open the options tab for the menu item that you want to disable and enter a CSS class name in the &#8220;CSS Classes (optional)&#8221; text field.</p>
<p class="text-center"><img src="/media/images/wordpress_menu_tab.png" alt="wordpress menu tab" class="img-border" /></p>
<p>Now enter the same CSS class name in the &#8220;Disable Class&#8221; option in the widget control panel &#8211; this will disable the sub-menu from opening and closing and will therefore be open automatically when the page loads. This option only affects the immediate sub-menu level.</p>
<p>For complete instructions, link to demo page and download go to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress jQuery Vertical Accordion Menu plugin page</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/G1OMvYVTG70" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:128:"http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:123:"http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/";}s:7:"summary";s:855:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/"><img align="left" hspace="5" width="150" src="/media/images/wordpress_screen_options_tab.png" class="alignleft wp-post-image tfe" alt="screen options tab" title="" /></a><p>The latest version of the WordPress jQuery Vertical Accordion Menu plugin includes a couple of new features to improve the menu&#8217;s flexibility as well as a change to the auto expand based on current page option.</p>
<p>The two new features added to the widget control panel:</p>
Menu Class
<p>In previous versions the accordion menu used the default WordPress class name &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-jquery-vertical-accordion-menu-2-6/" class="read_more">more</a></p>";s:12:"atom_content";s:3838:"<p>The latest version of the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress jQuery Vertical Accordion Menu plugin</a> includes a couple of new features to improve the menu&#8217;s flexibility as well as a change to the auto expand based on current page option.</p>
<p>The two new features added to the widget control panel:</p>
<h3>Menu Class</h3>
<p>In previous versions the accordion menu used the default WordPress class name &#8220;menu&#8221; when creating the menu structure on the page. Starting with version 2.6 you can now change the menu class name, which gives you more control over the styling and integrating with existing theme&#8217;s.</p>
<p>To change the class just enter the new class name into the text box next to the &#8220;menu class&#8221; option.</p>
<p>Leave the text box blank if you want to continue using the default class of &#8220;menu&#8221;.</p>
<h3>Disable Class</h3>
<p>The disable class option now adds the ability to switch off parts of the menu giving you full control over which menu items use the accordion style features.</p>
<p><strong>To add a custom class to a WordPress menu:</strong></p>
<p>Go to Admin -> Appearance -> Menus</p>
<p>Open the &#8220;Screen Options&#8221; tab in the top-right corner of the admin screen</p>
<p class="text-center"><img src="/media/images/wordpress_screen_options_tab.png" alt="screen options tab" class="img-border" /></p>
<p>Check the &#8220;CSS Class&#8221; box and close the screen options tab</p>
<p class="text-center"><img src="/media/images/wordpress_screen_options_tab_open.png" alt="screen options tab open" class="img-border" /></p>
<p>Open the options tab for the menu item that you want to disable and enter a CSS class name in the &#8220;CSS Classes (optional)&#8221; text field.</p>
<p class="text-center"><img src="/media/images/wordpress_menu_tab.png" alt="wordpress menu tab" class="img-border" /></p>
<p>Now enter the same CSS class name in the &#8220;Disable Class&#8221; option in the widget control panel &#8211; this will disable the sub-menu from opening and closing and will therefore be open automatically when the page loads. This option only affects the immediate sub-menu level.</p>
<p>For complete instructions, link to demo page and download go to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress jQuery Vertical Accordion Menu plugin page</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=G1OMvYVTG70:6OxWNuR-wdo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=G1OMvYVTG70:6OxWNuR-wdo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/G1OMvYVTG70" height="1" width="1"/>";}i:6;a:14:{s:5:"title";s:36:"WordPress Plugin – Floating Tweets";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/bjt_OAFkWF8/";s:8:"comments";s:105:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/#comments";s:7:"pubdate";s:31:"Sat, 11 Jun 2011 19:45:33 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:117:"jQuery PluginsSocial NetworksTwitterWordpress PluginsanimationjQuerylayoutpluginsslidertwitterverticalwidgetwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1943";s:11:"description";s:888:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/"><img align="left" hspace="5" width="150" src="/media/images/floating-tweets-plugin.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/floating-tweets-plugin.png" alt="" class="img-border" /></p>
<p>The WordPress Floating Tweets plugin adds a floating, sticky tab containing a live twitter feed from any twitter account.</p>
<p>The floating twitter widget is quickly and easily set up via any widget panel and can handle multiple floating twitter feeds per page, each with a different twitter account.</p>
<p>The widget control panel includes many options to customise position &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:10833:"<p class="text-center"><img src="/media/images/floating-tweets-plugin.png" alt="" class="img-border" /></p>
<p>The WordPress Floating Tweets plugin adds a floating, sticky tab containing a live twitter feed from any twitter account.</p>
<p>The floating twitter widget is quickly and easily set up via any widget panel and can handle multiple floating twitter feeds per page, each with a different twitter account.</p>
<p>The widget control panel includes many options to customise position and features. The plugin also includes shortcodes for adding external text links, which can open/close the floating panel.</p>
<p><a href="http://downloads.wordpress.org/plugin/floating-tweets.1.0.1.zip" rel="nofollow">Download Floating Tweets 1.0.1 (1,222)</a></p>

<p><a href="/lab/demo-wordpress-floating-tweets-plugin/">View Floating Tweets Demo</a></p>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `floating-tweets` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>In the widgets section, select the Floating Tweets widget and add to one of your widget areas</li>
<li>Set the required settings and save your widget</li>
</ol>
<h3>Useage</h3>
<p>In order to use the floating tweet plugin you will need the following:</p>
<h4>Widget area</h4>
<p>Location of the actual widget is not important since the plugin automatically sets the position based on the control panel settings. You can therefore add the floating twitter tab to an existing widget area in your WordPress theme or create a new widget area.</p>
<p>To learn more about adding widget areas to WordPress see our WordPress tutorial &#8211; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">&#8220;Adding A Widget Area To Your Theme Files&#8221;</a>.</p>
<h4>Create Your Floating Tweet Tab</h4>
<p>To create your floating tab go to the widget admin page and drag the &#8220;Floating Tweets&#8221; widget to the desired widget area.</p>
<p>Click &#8220;save&#8221; to activate the widget.</p>
<h3>Configuring Your Widget &#8211; Twitter Details</h3>
<p>Floating Tweets can easily be customised using the options available in the widget control panel:</p>
<h4>Twitter Username:</h4>
<p>Enter the user name for the twitter account. If you are unsure of the twitter profile name, this can be found using the URL of the account&#8217;s home page.</p>
<p>E.g. Design Chemical&#8217;s twitter home page is &#8211; http://twitter.com/#!/designchemical &#8211; the Twitter username is therefore &#8220;<strong>designchemical</strong>&#8220;</p>
<h4>Number of Tweets:</h4>
<p>Enter the number of tweets to be shown in the floating panel</p>
<h4>Show Replies:</h4>
<p>If checked the tweet list will also includes replies</p>
<h4>Open Links In New Window:</h4>
<p>If checked, all links in the tweets will automatically open in a new browser window.</p>
<h4>Add Follow Link:</h4>
<p>Check the box to add a link at the bottom of the panel, which links back to the username&#8217;s account.</p>
<h4>Link Text:</h4>
<p>Enter the text you would like to appear in the follow link</p>
<h3>Configuring Your Widget &#8211; Floating Tab</h3>
<h4>Event:</h4>
<p>Open/Close the tab using either &#8216;hover&#8217; or &#8216;click&#8217;.</p>
<h4>Tab Text:</h4>
<p>Enter the text that you would like to use for the floating tab.</p>
<h4>Width:</h4>
<p>Set the width of the floating panel in pixels</p>
<h4>Location &#038; Aligment:</h4>
<p>The position of the tab in the browser window is determined using its location (either Top or Bottom) and aligment (left or right). The location also changes how the panel slides out:</p>
<ul class="content-list">
<li>Top Left or Top Right &#8211; panel slides down</li>
<li>Bottom Left or Bottom Right &#8211; panel slides up</li>
</ul>
<p>For each one you can also add the number of pixels that you would like to offset the tab by from either the location or alignment in the text box next to the drop down list. The default offset for both location and alignment is 10px.</p>
<p>E.g. To position a menu 50 pixels from the top and 100 pixels from the right you would use the following settings:</p>
<p class="text-center"><img src="/media/images/floating-menu-example-1.png" alt="Floating menu example 1" /></p>
<h4>Floating Speed:</h4>
<p>The speed in milliseconds for the floating animation (i.e. the time it takes to &#8220;catch up&#8221; when the page scrolls up or down) &#8211; e.g. to set the floating speed to 1.3 seconds use <strong>1300</strong>.</p>
<p>The default speed is set to 1.5 secs.</p>
<h4>Sliding Speed:</h4>
<p>The speed in milliseconds to open and close the slide out panel.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close Tab:</h4>
<p>If checked, the floating tab will automatically slide closed when the user clicks anywhere in the browser</p>
<h4>Keep Open:</h4>
<p>If checked, the tab will remain open at all times.</p>
<h4>Skin:</h4>
<p>8 different sample skins are currently available for styling your floating tweets. Since there are no essential styles required to create the tab box, these can easily be used to create your own custom theme.</p>
<p>Note: If you use one of the skin CSS files to create your own style please remember to copy the CSS to your theme folder as all files in the plugin folder are automatically deleted when the plugin is updated.</p>
<h3>Shortcodes</h3>
<p>The plugin includes the feature to add text links within your site content that will open/close the floating twitter tab.</p>
<p>[dcflt-link] &#8211; <br />
default link, which will toggle the floating tab open/closed with the link text &#8220;Click Here&#8221;</p>
<p>[dcflt-link text="Open Tweets"] &#8211; <br />
toggle the floating panel open/closed with the link text &#8220;Open Tweets&#8221;</p>
<p>[dcflt-link action="open"] &#8211; <br />open the tab with the default link text &#8220;Click Here&#8221;</p>
<p>[dcflt-link action="close"] &#8211; <br />close the floating tab with the default link text &#8220;Click Here&#8221;</p>
<p>[dcflt-link action="close" text="Close Floating Tweets"] &#8211; <br />
close the floating panel with the link text &#8220;Close Floating Tweets&#8221;</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Check out our <a href="/blog/index.php/frequently-asked-questions/floating-tweets/">Frequently Asked Questions for Floating Tweets</a> section for more information</strong>.</p>
<h3>Demo Floating Tweets</h3>
<p><a href="/lab/demo-wordpress-floating-tweets-plugin/">http://designchemical.com/lab/demo-wordpress-floating-tweets-plugin/</a></p>
<h3>Download The Plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/floating-tweets.1.0.1.zip" rel="nofollow">Download Floating Tweets 1.0.1 (1,222)</a></p>

<h3>Feedback</h3>
<p><strong>If you find this plugin useful please rate it at <a href="http://wordpress.org/extend/plugins/floating-tweets/" rel="nofollow">wordpress.org</a>.</strong></p>
<p>We are always looking for ways to improve our plugins so if you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your Floating Tweets let us know via comments, email or our online contact form.</p>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form-donate" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="EDWNSWDWKPVB4">
<input type="hidden" name="on0" value="Amount">
<input type="hidden" name="os0" maxlength="60">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:none" name="submit" alt="Donate" />
</form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/screenshot-1-floating-tweets-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget in edit mode</strong></p>
<h3>Other Social Media/Network Plugins</h3>
<p>If you like Floating Tweets, Design Chemical also have several other free social media and social network plugins for WordPress:</p>
<h4>Social Media Tabs</h4>
<p>Add a facebook like box, google +1, google buzz, twitter and RSS profiles and feeds to any widget area with compact, slick sliding tabs. Plugin has the option of adding the tabbed box to either a slide out panel at the side of your browser window or as a static tabbed box in your widget area &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/">see plugin page</a></p>
<h4>Slick Social Share Buttons</h4>
<p>Add facebook, twitter, google +1, linkedin, digg, and stumbledupon social media buttons to your website in either a floating or sliding panel &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/">see plugin page</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/bjt_OAFkWF8" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:101:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"21";}s:10:"feedburner";a:1:{s:8:"origlink";s:96:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/";}s:7:"summary";s:888:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/"><img align="left" hspace="5" width="150" src="/media/images/floating-tweets-plugin.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/floating-tweets-plugin.png" alt="" class="img-border" /></p>
<p>The WordPress Floating Tweets plugin adds a floating, sticky tab containing a live twitter feed from any twitter account.</p>
<p>The floating twitter widget is quickly and easily set up via any widget panel and can handle multiple floating twitter feeds per page, each with a different twitter account.</p>
<p>The widget control panel includes many options to customise position &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-floating-tweets/" class="read_more">more</a></p>";s:12:"atom_content";s:10833:"<p class="text-center"><img src="/media/images/floating-tweets-plugin.png" alt="" class="img-border" /></p>
<p>The WordPress Floating Tweets plugin adds a floating, sticky tab containing a live twitter feed from any twitter account.</p>
<p>The floating twitter widget is quickly and easily set up via any widget panel and can handle multiple floating twitter feeds per page, each with a different twitter account.</p>
<p>The widget control panel includes many options to customise position and features. The plugin also includes shortcodes for adding external text links, which can open/close the floating panel.</p>
<p><a href="http://downloads.wordpress.org/plugin/floating-tweets.1.0.1.zip" rel="nofollow">Download Floating Tweets 1.0.1 (1,222)</a></p>

<p><a href="/lab/demo-wordpress-floating-tweets-plugin/">View Floating Tweets Demo</a></p>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `floating-tweets` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>In the widgets section, select the Floating Tweets widget and add to one of your widget areas</li>
<li>Set the required settings and save your widget</li>
</ol>
<h3>Useage</h3>
<p>In order to use the floating tweet plugin you will need the following:</p>
<h4>Widget area</h4>
<p>Location of the actual widget is not important since the plugin automatically sets the position based on the control panel settings. You can therefore add the floating twitter tab to an existing widget area in your WordPress theme or create a new widget area.</p>
<p>To learn more about adding widget areas to WordPress see our WordPress tutorial &#8211; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">&#8220;Adding A Widget Area To Your Theme Files&#8221;</a>.</p>
<h4>Create Your Floating Tweet Tab</h4>
<p>To create your floating tab go to the widget admin page and drag the &#8220;Floating Tweets&#8221; widget to the desired widget area.</p>
<p>Click &#8220;save&#8221; to activate the widget.</p>
<h3>Configuring Your Widget &#8211; Twitter Details</h3>
<p>Floating Tweets can easily be customised using the options available in the widget control panel:</p>
<h4>Twitter Username:</h4>
<p>Enter the user name for the twitter account. If you are unsure of the twitter profile name, this can be found using the URL of the account&#8217;s home page.</p>
<p>E.g. Design Chemical&#8217;s twitter home page is &#8211; http://twitter.com/#!/designchemical &#8211; the Twitter username is therefore &#8220;<strong>designchemical</strong>&#8220;</p>
<h4>Number of Tweets:</h4>
<p>Enter the number of tweets to be shown in the floating panel</p>
<h4>Show Replies:</h4>
<p>If checked the tweet list will also includes replies</p>
<h4>Open Links In New Window:</h4>
<p>If checked, all links in the tweets will automatically open in a new browser window.</p>
<h4>Add Follow Link:</h4>
<p>Check the box to add a link at the bottom of the panel, which links back to the username&#8217;s account.</p>
<h4>Link Text:</h4>
<p>Enter the text you would like to appear in the follow link</p>
<h3>Configuring Your Widget &#8211; Floating Tab</h3>
<h4>Event:</h4>
<p>Open/Close the tab using either &#8216;hover&#8217; or &#8216;click&#8217;.</p>
<h4>Tab Text:</h4>
<p>Enter the text that you would like to use for the floating tab.</p>
<h4>Width:</h4>
<p>Set the width of the floating panel in pixels</p>
<h4>Location &#038; Aligment:</h4>
<p>The position of the tab in the browser window is determined using its location (either Top or Bottom) and aligment (left or right). The location also changes how the panel slides out:</p>
<ul class="content-list">
<li>Top Left or Top Right &#8211; panel slides down</li>
<li>Bottom Left or Bottom Right &#8211; panel slides up</li>
</ul>
<p>For each one you can also add the number of pixels that you would like to offset the tab by from either the location or alignment in the text box next to the drop down list. The default offset for both location and alignment is 10px.</p>
<p>E.g. To position a menu 50 pixels from the top and 100 pixels from the right you would use the following settings:</p>
<p class="text-center"><img src="/media/images/floating-menu-example-1.png" alt="Floating menu example 1" /></p>
<h4>Floating Speed:</h4>
<p>The speed in milliseconds for the floating animation (i.e. the time it takes to &#8220;catch up&#8221; when the page scrolls up or down) &#8211; e.g. to set the floating speed to 1.3 seconds use <strong>1300</strong>.</p>
<p>The default speed is set to 1.5 secs.</p>
<h4>Sliding Speed:</h4>
<p>The speed in milliseconds to open and close the slide out panel.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close Tab:</h4>
<p>If checked, the floating tab will automatically slide closed when the user clicks anywhere in the browser</p>
<h4>Keep Open:</h4>
<p>If checked, the tab will remain open at all times.</p>
<h4>Skin:</h4>
<p>8 different sample skins are currently available for styling your floating tweets. Since there are no essential styles required to create the tab box, these can easily be used to create your own custom theme.</p>
<p>Note: If you use one of the skin CSS files to create your own style please remember to copy the CSS to your theme folder as all files in the plugin folder are automatically deleted when the plugin is updated.</p>
<h3>Shortcodes</h3>
<p>The plugin includes the feature to add text links within your site content that will open/close the floating twitter tab.</p>
<p>[dcflt-link] &#8211; <br />
default link, which will toggle the floating tab open/closed with the link text &#8220;Click Here&#8221;</p>
<p>[dcflt-link text="Open Tweets"] &#8211; <br />
toggle the floating panel open/closed with the link text &#8220;Open Tweets&#8221;</p>
<p>[dcflt-link action="open"] &#8211; <br />open the tab with the default link text &#8220;Click Here&#8221;</p>
<p>[dcflt-link action="close"] &#8211; <br />close the floating tab with the default link text &#8220;Click Here&#8221;</p>
<p>[dcflt-link action="close" text="Close Floating Tweets"] &#8211; <br />
close the floating panel with the link text &#8220;Close Floating Tweets&#8221;</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Check out our <a href="/blog/index.php/frequently-asked-questions/floating-tweets/">Frequently Asked Questions for Floating Tweets</a> section for more information</strong>.</p>
<h3>Demo Floating Tweets</h3>
<p><a href="/lab/demo-wordpress-floating-tweets-plugin/">http://designchemical.com/lab/demo-wordpress-floating-tweets-plugin/</a></p>
<h3>Download The Plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/floating-tweets.1.0.1.zip" rel="nofollow">Download Floating Tweets 1.0.1 (1,222)</a></p>

<h3>Feedback</h3>
<p><strong>If you find this plugin useful please rate it at <a href="http://wordpress.org/extend/plugins/floating-tweets/" rel="nofollow">wordpress.org</a>.</strong></p>
<p>We are always looking for ways to improve our plugins so if you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your Floating Tweets let us know via comments, email or our online contact form.</p>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form-donate" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="EDWNSWDWKPVB4">
<input type="hidden" name="on0" value="Amount">
<input type="hidden" name="os0" maxlength="60">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:none" name="submit" alt="Donate" />
</form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/screenshot-1-floating-tweets-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget in edit mode</strong></p>
<h3>Other Social Media/Network Plugins</h3>
<p>If you like Floating Tweets, Design Chemical also have several other free social media and social network plugins for WordPress:</p>
<h4>Social Media Tabs</h4>
<p>Add a facebook like box, google +1, google buzz, twitter and RSS profiles and feeds to any widget area with compact, slick sliding tabs. Plugin has the option of adding the tabbed box to either a slide out panel at the side of your browser window or as a static tabbed box in your widget area &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-social-media-tabs/">see plugin page</a></p>
<h4>Slick Social Share Buttons</h4>
<p>Add facebook, twitter, google +1, linkedin, digg, and stumbledupon social media buttons to your website in either a floating or sliding panel &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-slick-social-share-buttons/">see plugin page</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=bjt_OAFkWF8:JNOgQYviDdo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=bjt_OAFkWF8:JNOgQYviDdo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/bjt_OAFkWF8" height="1" width="1"/>";}i:7;a:14:{s:5:"title";s:52:"Updated WordPress Plugin – Slick Contact Forms 1.2";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/2rnNBgPgUho/";s:8:"comments";s:117:"http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/#comments";s:7:"pubdate";s:31:"Thu, 09 Jun 2011 15:12:47 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:60:"Wordpress PluginsanimationformsjQuerypluginsupdateswordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1935";s:11:"description";s:827:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest version of our WordPress contact form plugin now includes the feature to open and close the sticky or floating contact form tabs using external links.</p>
Using Shortcodes
<p>The easiest way to add a text link to your WordPress content is to use the shortcode feature built into the plugin. To create a link using the default settings use &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:3346:"<p>The latest version of our WordPress contact form plugin now includes the feature to open and close the sticky or floating contact form tabs using external links.</p>
<h3>Using Shortcodes</h3>
<p>The easiest way to add a text link to your WordPress content is to use the shortcode feature built into the plugin. To create a link using the default settings use the following shortcode:</p>
<pre class="brush: plain; title: ; notranslate">
[dcscf-link]
</pre>
<p>The default settings will add a link with the text label &#8220;Contact Us&#8221; and clicking the link will toggle the contact form open/closed.</p>
<pre class="brush: plain; title: ; notranslate">
[dcscf-link text=&quot;Click Here&quot;]
</pre>
<p>The shortcode also includes an option, which allows you to set the link to either only open or only close the contact form. This is set using the &#8220;action&#8221; variable and there are 2 options available &#8211; close or open:</p>
<pre class="brush: plain; title: ; notranslate">
[dcscf-link text=&quot;Contact Form&quot; action=&quot;close&quot;]
</pre>
<p>The above shortcode example would create a link with the text &#8220;Close Form&#8221; that only slides the contact form closed.</p>
<h3>Manually Using CSS Classes</h3>
<p>The same effect can also be acheived by manually assigning CSS classes to a HTML element &#8211; the advantage of using this method over the shortcodes is that this allows you to add the feature to any HTML element such as an image, a link or even complete blocks of text.</p>
<p>There are 3 CSS classes that can be used:</p>
<ul class=content-list">
<li>dcscf-link &#8211; will both open and close the contact form</li>
<li>dcscf-open &#8211; only open the form</li>
<li>dcscf-close &#8211; only close the contact form</li>
</ul>
<p>For more information and to download the latest version of our free WordPress contact form plugin check out &#8211; <a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">Slick Contact Forms</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/2rnNBgPgUho" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:113:"http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:108:"http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/";}s:7:"summary";s:827:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest version of our WordPress contact form plugin now includes the feature to open and close the sticky or floating contact form tabs using external links.</p>
Using Shortcodes
<p>The easiest way to add a text link to your WordPress content is to use the shortcode feature built into the plugin. To create a link using the default settings use &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/updated-wordpress-plugin-slick-contact-forms/" class="read_more">more</a></p>";s:12:"atom_content";s:3346:"<p>The latest version of our WordPress contact form plugin now includes the feature to open and close the sticky or floating contact form tabs using external links.</p>
<h3>Using Shortcodes</h3>
<p>The easiest way to add a text link to your WordPress content is to use the shortcode feature built into the plugin. To create a link using the default settings use the following shortcode:</p>
<pre class="brush: plain; title: ; notranslate">
[dcscf-link]
</pre>
<p>The default settings will add a link with the text label &#8220;Contact Us&#8221; and clicking the link will toggle the contact form open/closed.</p>
<pre class="brush: plain; title: ; notranslate">
[dcscf-link text=&quot;Click Here&quot;]
</pre>
<p>The shortcode also includes an option, which allows you to set the link to either only open or only close the contact form. This is set using the &#8220;action&#8221; variable and there are 2 options available &#8211; close or open:</p>
<pre class="brush: plain; title: ; notranslate">
[dcscf-link text=&quot;Contact Form&quot; action=&quot;close&quot;]
</pre>
<p>The above shortcode example would create a link with the text &#8220;Close Form&#8221; that only slides the contact form closed.</p>
<h3>Manually Using CSS Classes</h3>
<p>The same effect can also be acheived by manually assigning CSS classes to a HTML element &#8211; the advantage of using this method over the shortcodes is that this allows you to add the feature to any HTML element such as an image, a link or even complete blocks of text.</p>
<p>There are 3 CSS classes that can be used:</p>
<ul class=content-list">
<li>dcscf-link &#8211; will both open and close the contact form</li>
<li>dcscf-open &#8211; only open the form</li>
<li>dcscf-close &#8211; only close the contact form</li>
</ul>
<p>For more information and to download the latest version of our free WordPress contact form plugin check out &#8211; <a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">Slick Contact Forms</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=2rnNBgPgUho:qtXYJUFzPak:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=2rnNBgPgUho:qtXYJUFzPak:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/2rnNBgPgUho" height="1" width="1"/>";}i:8;a:14:{s:5:"title";s:61:"Create An Automatic Content Filter Using jQuery & CSS Classes";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/YCBDG1oHTrI/";s:8:"comments";s:121:"http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/#comments";s:7:"pubdate";s:31:"Sun, 05 Jun 2011 12:08:32 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:37:"jQueryWebsite Codinganimationtutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1897";s:11:"description";s:897:"<a href="http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/"><img align="left" hspace="5" width="150" src="/media/images/jquery_automatic_class_filter_tutorial.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p><img src="/media/images/jquery_automatic_class_filter_tutorial.png" alt="" /></p>
<p>The objective of today&#8217;s jQuery tutorial is to automatically generate a list of &#8220;category&#8221; links from CSS class names and use these links to filter our HTML content.</p>
<p>For the tutorial demo we are going to use a list of links for our jQuery tutorials, which we would like to filter by subject/category. This technique however is useful for &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:10418:"<p><img src="/media/images/jquery_automatic_class_filter_tutorial.png" alt="" /></p>
<p>The objective of today&#8217;s jQuery tutorial is to automatically generate a list of &#8220;category&#8221; links from CSS class names and use these links to filter our HTML content.</p>
<p>For the tutorial demo we are going to use a list of links for our jQuery tutorials, which we would like to filter by subject/category. This technique however is useful for any kind of HTML elements including; images, creating dependant select lists, unordered/ordered lists, etc and is ideal for content that needs to be listed under multiple categories or creating portfolios.</p>
<p>Since the actual filter list is generated dynamically we can quickly and easily add/edit/delete items that we would like to filter as well as change the categories.</p>
<p><a href="/lab/jquery/demo/jquery_demo_create_class_filter.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-create-class-filter.zip" class="demo">Download Source Files</a></p>
<h3 class="clear">HTML List</h3>
<p>First we create our list of items to be filtered. For the purpose of the tutorial we wont include all of the list items show in the demo. On the few samples though note the class names added to each item &#8211; these are our categories/tags that we would like to use for filtering:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ul id=&quot;demo-list&quot;&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_demo_light_weight_animated_slider.htm&quot; class=&quot;menus animation horizontal&quot;&gt;Lightweight Slider&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_simple_horizontal_accordion.htm&quot; class=&quot;menus animation horizontal&quot;&gt;Simple Horizontal Accordion&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery-mega-drop-down-menu-plugin/getting-started/&quot; class=&quot;menus plugins&quot;&gt;jQuery Mega Drop Down Menu Plugin&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_animation_form_validation_errors.htm&quot; class=&quot;forms validation ajax animation&quot;&gt;Animated Error Messages &amp;amp; Form Validation&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_demo_image_swap_gallery.htm&quot; class=&quot;images&quot;&gt;Ultimate Image Swap Gallery with 3 Lines of Code&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_demo_slick_jquery_captions.htm&quot; class=&quot;images animation&quot;&gt;jQuery Fading Image Captions&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</pre>
<h3>The jQuery Code</h3>
<p>There are basically 2 main parts to the jQuery:</p>
<p>Create The Filter Links &#8211; this involves retrieving all of the item classes and create a list of filter links based on the class names</p>
<p>A function to filter the demo list using the above links</p>
<h4>1. Create The Filter Links</h4>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

// map the classes for each item into a new array
classes = $(&quot;#demo-list li a&quot;).map(function(){
    return $(this).attr(&quot;class&quot;).split(' ');
});

// create list of distinct items only
var classList = distinctList(classes);

// generate the list of filter links
var tagList = '&lt;ul id=&quot;tag-list&quot;&gt;&lt;/ul&gt;';
tagItem = '&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;active&quot;&gt;all&lt;/a&gt;&lt;/li&gt;';

// loop through the list of classes &amp; add link
$.each(classList, function(index,value){
    var value = value.replace(&quot;-&quot;, &quot; &quot;);
    tagItem += '&lt;li&gt;&lt;a href=&quot;#&quot;&gt;'+value+'&lt;/a&gt;&lt;/li&gt;';
});

// add the filter links before the list of items
$(&quot;#demo-list&quot;).before($(tagList).append(tagItem));

});

// Function to create a distinct list from array
function distinctList(inputArray){
	var i;
	var length = inputArray.length;
	var outputArray = [];
	var temp = {};
	for (i = 0; i &lt; length; i++) {
		temp[inputArray[i]] = 0;
    }
    for (i in temp) {
        outputArray.push(i);
	}
	return outputArray;
}
</pre>
<p>In the above code we first retrieve all of the class names from our list of demo links using jQuery&#8217;s map function.</p>
<p>This will create an array of containing all class names. In order to convert it to an array containing a distinct list of class names we pass our array to the function at the end &#8211; distinctList().</p>
<p>With the cleaned up output from our distinctList() function we then loop through the array and create a filter link for each item. Note that we create the complete filter links list before we insert the HTML &#8211; this will help improve performance since we only need to manipulate the DOM once.</p>
<p>We have also included an &#8220;all&#8221; link, which will allow us to reset the demo list filter and show all items.b</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h4>2. Filtering the Demo List</h4>
<pre class="brush: jscript; title: ; notranslate">
// filter the demo list when the filter links are clicked
$('#tag-list li a').live('click',function(e){

    // allows filter categories using multiple words
    var getText = $(this).text().replace(&quot; &quot;, &quot;-&quot;);
    if(getText == 'all'){
        $(&quot;#demo-list li a&quot;).fadeIn();
    } else {
        $(&quot;#demo-list li a&quot;).fadeOut();
        $(&quot;#demo-list li a.&quot;+getText).fadeIn();
    }

    // add class &quot;active&quot; to current filter item
    $('#tag-list li a').removeClass('active');
    $(this).addClass('active');

    // prevent the page scrolling to the top of the screen
    e.preventDefault();
});
</pre>
<p>The demo list items will be filtered when the filter links are clicked. Since we create the filter links on the fly we need to use the &#8220;live&#8221; function to bind the categories.</p>
<p>The function allows us to use multiple words for category names by adding them as class names with hyphens &#8211; e.g. horizontal-menus would appear in the filter links as &#8220;horizontal menus&#8221;.</p>
<p>For this demo we will use fadeIn and fadeOut to show/hide the demo links. This can easily be substituted by any of the animation styles to suit your own tastes.</p>
<p>Finally at the end of our click function we add code to give the current filter item the class &#8220;active&#8221; and use e.preventDefault() to stop the browser scrolling to the top of the screen when the filter links are clicked.</p>
<h3>The Complete jQuery Code</h3>
<p>The complete jQuery code for our automatic content filter is:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

// map the classes for each item into a new array
classes = $(&quot;#demo-list li a&quot;).map(function(){
    return $(this).attr(&quot;class&quot;).split(' ');
});

// create list of distinct items only
var classList = distinctList(classes);

// generate the list of filter links
var tagList = '&lt;ul id=&quot;tag-list&quot;&gt;&lt;/ul&gt;';
tagItem = '&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;active&quot;&gt;all&lt;/a&gt;&lt;/li&gt;';

// loop through the list of classes &amp; add link
$.each(classList, function(index,value){
    var value = value.replace(&quot;-&quot;, &quot; &quot;);
    tagItem += '&lt;li&gt;&lt;a href=&quot;#&quot;&gt;'+value+'&lt;/a&gt;&lt;/li&gt;';
});

// add the filter links before the list of items
$(&quot;#demo-list&quot;).before($(tagList).append(tagItem));

// filter the demo list when the filter links are clicked
$('#tag-list li a').live('click',function(e){

    // allows filter categories using multiple words
    var getText = $(this).text().replace(&quot; &quot;, &quot;-&quot;);
    if(getText == 'all'){
        $(&quot;#demo-list li a&quot;).fadeIn();
    } else {
        $(&quot;#demo-list li a&quot;).fadeOut();
        $(&quot;#demo-list li a.&quot;+getText).fadeIn();
    }

    // add class &quot;active&quot; to current filter item
    $('#tag-list li a').removeClass('active');
    $(this).addClass('active');

    // prevent the page scrolling to the top of the screen
    e.preventDefault();
});
});

// Function to create a distinct list from array
function distinctList(inputArray){
	var i;
	var length = inputArray.length;
	var outputArray = [];
	var temp = {};
	for (i = 0; i &lt; length; i++) {
		temp[inputArray[i]] = 0;
    }
    for (i in temp) {
        outputArray.push(i);
	}
	return outputArray;
}
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_create_class_filter.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-create-class-filter.zip" class="demo">Download Source Files</a></p>
<div class="clear"></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/YCBDG1oHTrI" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:117:"http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"1";}s:10:"feedburner";a:1:{s:8:"origlink";s:112:"http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/";}s:7:"summary";s:897:"<a href="http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/"><img align="left" hspace="5" width="150" src="/media/images/jquery_automatic_class_filter_tutorial.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p><img src="/media/images/jquery_automatic_class_filter_tutorial.png" alt="" /></p>
<p>The objective of today&#8217;s jQuery tutorial is to automatically generate a list of &#8220;category&#8221; links from CSS class names and use these links to filter our HTML content.</p>
<p>For the tutorial demo we are going to use a list of links for our jQuery tutorials, which we would like to filter by subject/category. This technique however is useful for &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/create-an-automatic-content-filter-using-jquery-css-classes/" class="read_more">more</a></p>";s:12:"atom_content";s:10418:"<p><img src="/media/images/jquery_automatic_class_filter_tutorial.png" alt="" /></p>
<p>The objective of today&#8217;s jQuery tutorial is to automatically generate a list of &#8220;category&#8221; links from CSS class names and use these links to filter our HTML content.</p>
<p>For the tutorial demo we are going to use a list of links for our jQuery tutorials, which we would like to filter by subject/category. This technique however is useful for any kind of HTML elements including; images, creating dependant select lists, unordered/ordered lists, etc and is ideal for content that needs to be listed under multiple categories or creating portfolios.</p>
<p>Since the actual filter list is generated dynamically we can quickly and easily add/edit/delete items that we would like to filter as well as change the categories.</p>
<p><a href="/lab/jquery/demo/jquery_demo_create_class_filter.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-create-class-filter.zip" class="demo">Download Source Files</a></p>
<h3 class="clear">HTML List</h3>
<p>First we create our list of items to be filtered. For the purpose of the tutorial we wont include all of the list items show in the demo. On the few samples though note the class names added to each item &#8211; these are our categories/tags that we would like to use for filtering:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ul id=&quot;demo-list&quot;&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_demo_light_weight_animated_slider.htm&quot; class=&quot;menus animation horizontal&quot;&gt;Lightweight Slider&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_simple_horizontal_accordion.htm&quot; class=&quot;menus animation horizontal&quot;&gt;Simple Horizontal Accordion&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery-mega-drop-down-menu-plugin/getting-started/&quot; class=&quot;menus plugins&quot;&gt;jQuery Mega Drop Down Menu Plugin&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_animation_form_validation_errors.htm&quot; class=&quot;forms validation ajax animation&quot;&gt;Animated Error Messages &amp;amp; Form Validation&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_demo_image_swap_gallery.htm&quot; class=&quot;images&quot;&gt;Ultimate Image Swap Gallery with 3 Lines of Code&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;/lab/jquery/demo/jquery_demo_slick_jquery_captions.htm&quot; class=&quot;images animation&quot;&gt;jQuery Fading Image Captions&lt;/a&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</pre>
<h3>The jQuery Code</h3>
<p>There are basically 2 main parts to the jQuery:</p>
<p>Create The Filter Links &#8211; this involves retrieving all of the item classes and create a list of filter links based on the class names</p>
<p>A function to filter the demo list using the above links</p>
<h4>1. Create The Filter Links</h4>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

// map the classes for each item into a new array
classes = $(&quot;#demo-list li a&quot;).map(function(){
    return $(this).attr(&quot;class&quot;).split(' ');
});

// create list of distinct items only
var classList = distinctList(classes);

// generate the list of filter links
var tagList = '&lt;ul id=&quot;tag-list&quot;&gt;&lt;/ul&gt;';
tagItem = '&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;active&quot;&gt;all&lt;/a&gt;&lt;/li&gt;';

// loop through the list of classes &amp; add link
$.each(classList, function(index,value){
    var value = value.replace(&quot;-&quot;, &quot; &quot;);
    tagItem += '&lt;li&gt;&lt;a href=&quot;#&quot;&gt;'+value+'&lt;/a&gt;&lt;/li&gt;';
});

// add the filter links before the list of items
$(&quot;#demo-list&quot;).before($(tagList).append(tagItem));

});

// Function to create a distinct list from array
function distinctList(inputArray){
	var i;
	var length = inputArray.length;
	var outputArray = [];
	var temp = {};
	for (i = 0; i &lt; length; i++) {
		temp[inputArray[i]] = 0;
    }
    for (i in temp) {
        outputArray.push(i);
	}
	return outputArray;
}
</pre>
<p>In the above code we first retrieve all of the class names from our list of demo links using jQuery&#8217;s map function.</p>
<p>This will create an array of containing all class names. In order to convert it to an array containing a distinct list of class names we pass our array to the function at the end &#8211; distinctList().</p>
<p>With the cleaned up output from our distinctList() function we then loop through the array and create a filter link for each item. Note that we create the complete filter links list before we insert the HTML &#8211; this will help improve performance since we only need to manipulate the DOM once.</p>
<p>We have also included an &#8220;all&#8221; link, which will allow us to reset the demo list filter and show all items.b</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h4>2. Filtering the Demo List</h4>
<pre class="brush: jscript; title: ; notranslate">
// filter the demo list when the filter links are clicked
$('#tag-list li a').live('click',function(e){

    // allows filter categories using multiple words
    var getText = $(this).text().replace(&quot; &quot;, &quot;-&quot;);
    if(getText == 'all'){
        $(&quot;#demo-list li a&quot;).fadeIn();
    } else {
        $(&quot;#demo-list li a&quot;).fadeOut();
        $(&quot;#demo-list li a.&quot;+getText).fadeIn();
    }

    // add class &quot;active&quot; to current filter item
    $('#tag-list li a').removeClass('active');
    $(this).addClass('active');

    // prevent the page scrolling to the top of the screen
    e.preventDefault();
});
</pre>
<p>The demo list items will be filtered when the filter links are clicked. Since we create the filter links on the fly we need to use the &#8220;live&#8221; function to bind the categories.</p>
<p>The function allows us to use multiple words for category names by adding them as class names with hyphens &#8211; e.g. horizontal-menus would appear in the filter links as &#8220;horizontal menus&#8221;.</p>
<p>For this demo we will use fadeIn and fadeOut to show/hide the demo links. This can easily be substituted by any of the animation styles to suit your own tastes.</p>
<p>Finally at the end of our click function we add code to give the current filter item the class &#8220;active&#8221; and use e.preventDefault() to stop the browser scrolling to the top of the screen when the filter links are clicked.</p>
<h3>The Complete jQuery Code</h3>
<p>The complete jQuery code for our automatic content filter is:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {

// map the classes for each item into a new array
classes = $(&quot;#demo-list li a&quot;).map(function(){
    return $(this).attr(&quot;class&quot;).split(' ');
});

// create list of distinct items only
var classList = distinctList(classes);

// generate the list of filter links
var tagList = '&lt;ul id=&quot;tag-list&quot;&gt;&lt;/ul&gt;';
tagItem = '&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;active&quot;&gt;all&lt;/a&gt;&lt;/li&gt;';

// loop through the list of classes &amp; add link
$.each(classList, function(index,value){
    var value = value.replace(&quot;-&quot;, &quot; &quot;);
    tagItem += '&lt;li&gt;&lt;a href=&quot;#&quot;&gt;'+value+'&lt;/a&gt;&lt;/li&gt;';
});

// add the filter links before the list of items
$(&quot;#demo-list&quot;).before($(tagList).append(tagItem));

// filter the demo list when the filter links are clicked
$('#tag-list li a').live('click',function(e){

    // allows filter categories using multiple words
    var getText = $(this).text().replace(&quot; &quot;, &quot;-&quot;);
    if(getText == 'all'){
        $(&quot;#demo-list li a&quot;).fadeIn();
    } else {
        $(&quot;#demo-list li a&quot;).fadeOut();
        $(&quot;#demo-list li a.&quot;+getText).fadeIn();
    }

    // add class &quot;active&quot; to current filter item
    $('#tag-list li a').removeClass('active');
    $(this).addClass('active');

    // prevent the page scrolling to the top of the screen
    e.preventDefault();
});
});

// Function to create a distinct list from array
function distinctList(inputArray){
	var i;
	var length = inputArray.length;
	var outputArray = [];
	var temp = {};
	for (i = 0; i &lt; length; i++) {
		temp[inputArray[i]] = 0;
    }
    for (i in temp) {
        outputArray.push(i);
	}
	return outputArray;
}
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_create_class_filter.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-create-class-filter.zip" class="demo">Download Source Files</a></p>
<div class="clear"></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=YCBDG1oHTrI:UH2VeCAWlAM:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=YCBDG1oHTrI:UH2VeCAWlAM:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/YCBDG1oHTrI" height="1" width="1"/>";}i:9;a:14:{s:5:"title";s:47:"Adding a WordPress Menu To a Non-WordPress Page";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/P6idvHO1UCs/";s:8:"comments";s:117:"http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/#comments";s:7:"pubdate";s:31:"Sat, 14 May 2011 23:25:04 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:67:"Website CodingWordpress Tipsfunctionmenunavigationtutorialwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1881";s:11:"description";s:820:"<a href="http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>If you are developing a site that uses WordPress as a CMS for part of the website and custom php pages for other sections it can be useful to utilise the functions built into WordPress on non-Wordpress pages.</p>
<p>One useful example is to use the WordPress menu system to manage the site&#8217;s menus. With its ability to add custom links, &#8230; <a href="http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:3324:"<p>If you are developing a site that uses WordPress as a CMS for part of the website and custom php pages for other sections it can be useful to utilise the functions built into WordPress on non-Wordpress pages.</p>
<p>One useful example is to use the WordPress menu system to manage the site&#8217;s menus. With its ability to add custom links, this offers a powerful solution to handling the complete website&#8217;s navigation.</p>
<h3>Adding The WordPress Functions</h3>
<p>Setting this up is actually very simple and just requires a few lines of code in the head of the page to add the WordPress functions:</p>
<pre class="brush: plain; title: ; notranslate">
require('blog/wp-config.php');
$wp-&gt;init();
$wp-&gt;parse_request();
$wp-&gt;query_posts();
$wp-&gt;register_globals();
</pre>
<p>Obviously you need to change the path to the wp-config file to be the same as the directory for your WordPress installlation.</p>
<h3>The WordPress Menu Function</h3>
<p>To add a WordPress menu to our page we then just use the wp_nav_menu() function as we would do in our WordPress theme files. The function accepts all of the same parameters, which allows you to customise various aspects.</p>
<p>For our tutorial demo we are going to add the mega menu, which is set up for the <a href="/lab/demo-wordpress-jquery-mega-menu-plugin/">WordPress mega menu plugin demo page</a>. To identify the menu we use the &#8220;menu&#8221; parameter in the wp_nav_menu function, which accepts the menu slug name &#8211; based on the name you gave your menu in the WordPress admin system &#8211; in our case it is &#8220;mega-menu&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
    wp_nav_menu( array( 'menu' =&gt; 'mega-menu' ) );
?&gt;
</pre>
<p>And that&#8217;s all there is to it &#8211; just add the function in the page where you want the menu to appear &#8211; <a href="/lab/jquery/demo/wordpress_menu_example.php">See demo using non-wordpress page</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/P6idvHO1UCs" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:113:"http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"6";}s:10:"feedburner";a:1:{s:8:"origlink";s:108:"http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/";}s:7:"summary";s:820:"<a href="http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>If you are developing a site that uses WordPress as a CMS for part of the website and custom php pages for other sections it can be useful to utilise the functions built into WordPress on non-Wordpress pages.</p>
<p>One useful example is to use the WordPress menu system to manage the site&#8217;s menus. With its ability to add custom links, &#8230; <a href="http://www.designchemical.com/blog/index.php/website-coding/adding-a-wordpress-menu-to-a-non-wordpress-page/" class="read_more">more</a></p>";s:12:"atom_content";s:3324:"<p>If you are developing a site that uses WordPress as a CMS for part of the website and custom php pages for other sections it can be useful to utilise the functions built into WordPress on non-Wordpress pages.</p>
<p>One useful example is to use the WordPress menu system to manage the site&#8217;s menus. With its ability to add custom links, this offers a powerful solution to handling the complete website&#8217;s navigation.</p>
<h3>Adding The WordPress Functions</h3>
<p>Setting this up is actually very simple and just requires a few lines of code in the head of the page to add the WordPress functions:</p>
<pre class="brush: plain; title: ; notranslate">
require('blog/wp-config.php');
$wp-&gt;init();
$wp-&gt;parse_request();
$wp-&gt;query_posts();
$wp-&gt;register_globals();
</pre>
<p>Obviously you need to change the path to the wp-config file to be the same as the directory for your WordPress installlation.</p>
<h3>The WordPress Menu Function</h3>
<p>To add a WordPress menu to our page we then just use the wp_nav_menu() function as we would do in our WordPress theme files. The function accepts all of the same parameters, which allows you to customise various aspects.</p>
<p>For our tutorial demo we are going to add the mega menu, which is set up for the <a href="/lab/demo-wordpress-jquery-mega-menu-plugin/">WordPress mega menu plugin demo page</a>. To identify the menu we use the &#8220;menu&#8221; parameter in the wp_nav_menu function, which accepts the menu slug name &#8211; based on the name you gave your menu in the WordPress admin system &#8211; in our case it is &#8220;mega-menu&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
    wp_nav_menu( array( 'menu' =&gt; 'mega-menu' ) );
?&gt;
</pre>
<p>And that&#8217;s all there is to it &#8211; just add the function in the page where you want the menu to appear &#8211; <a href="/lab/jquery/demo/wordpress_menu_example.php">See demo using non-wordpress page</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=P6idvHO1UCs:jpxygSJ5Zwk:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=P6idvHO1UCs:jpxygSJ5Zwk:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/P6idvHO1UCs" height="1" width="1"/>";}i:10;a:14:{s:5:"title";s:44:"New WordPress Plugin – Slick Contact Forms";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/H5UoupVuEmc/";s:8:"comments";s:113:"http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/#comments";s:7:"pubdate";s:31:"Mon, 09 May 2011 12:11:14 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:69:"jQueryWordpress PluginsAJAXanimationformslayoutpluginswidgetwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1845";s:11:"description";s:881:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/"><img align="left" hspace="5" width="150" src="/media/images/slick-contact-forms-plugin.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/slick-contact-forms-plugin.png" alt="" class="img-border" /></p>
<p>Slick Contact Forms is our latest WordPress plugin using jQuery. The plugin allows you to quickly and easily add contact forms to any post or page in WordPress using widget areas.</p>
<p>The plugin allows multiple forms per page, option to either use jquery sticky tabs or jquery floating tabs for the contact form and configure the form settings, &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:3120:"<p class="text-center"><img src="/media/images/slick-contact-forms-plugin.png" alt="" class="img-border" /></p>
<p>Slick Contact Forms is our latest WordPress plugin using jQuery. The plugin allows you to quickly and easily add contact forms to any post or page in WordPress using widget areas.</p>
<p>The plugin allows multiple forms per page, option to either use jquery sticky tabs or jquery floating tabs for the contact form and configure the form settings, animation and the email address of where the form details should be sent.</p>
<p class="text-center"><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/"><strong>WordPress slick contact forms plugin page</strong></a>.</p>
<p>Each contact form also includes the option to add up to 3 input text fields and one text area. Input labels can be set via the contact form control panel as well as the type of jQuery validation used &#8211; select either &#8220;no validation&#8221;, &#8220;required&#8221; or &#8220;email&#8221; for checking that entered text matches the correct email format.</p>
<p class="text-center"><img src="/media/images/slick-contact-forms-plugin-2.png" alt="" class="img-border" /></p>
<p>Validation error messages are animated along with highlighting the input field and form is submitted using AJAX.</p>
<p>The plugin is designed so that all of the forms are fully accessible and in the event that the user has javascript disabled the form will appear on the page in the designated widget area and can be submitted as normal.</p>
<p>For more information and instructions on how to install and configure the plugin and check out a demo form:</p>
<p class="text-center"><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">WordPress slick contact forms</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/H5UoupVuEmc" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:109:"http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"1";}s:10:"feedburner";a:1:{s:8:"origlink";s:104:"http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/";}s:7:"summary";s:881:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/"><img align="left" hspace="5" width="150" src="/media/images/slick-contact-forms-plugin.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/slick-contact-forms-plugin.png" alt="" class="img-border" /></p>
<p>Slick Contact Forms is our latest WordPress plugin using jQuery. The plugin allows you to quickly and easily add contact forms to any post or page in WordPress using widget areas.</p>
<p>The plugin allows multiple forms per page, option to either use jquery sticky tabs or jquery floating tabs for the contact form and configure the form settings, &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/new-wordpress-plugin-slick-contact-forms/" class="read_more">more</a></p>";s:12:"atom_content";s:3120:"<p class="text-center"><img src="/media/images/slick-contact-forms-plugin.png" alt="" class="img-border" /></p>
<p>Slick Contact Forms is our latest WordPress plugin using jQuery. The plugin allows you to quickly and easily add contact forms to any post or page in WordPress using widget areas.</p>
<p>The plugin allows multiple forms per page, option to either use jquery sticky tabs or jquery floating tabs for the contact form and configure the form settings, animation and the email address of where the form details should be sent.</p>
<p class="text-center"><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/"><strong>WordPress slick contact forms plugin page</strong></a>.</p>
<p>Each contact form also includes the option to add up to 3 input text fields and one text area. Input labels can be set via the contact form control panel as well as the type of jQuery validation used &#8211; select either &#8220;no validation&#8221;, &#8220;required&#8221; or &#8220;email&#8221; for checking that entered text matches the correct email format.</p>
<p class="text-center"><img src="/media/images/slick-contact-forms-plugin-2.png" alt="" class="img-border" /></p>
<p>Validation error messages are animated along with highlighting the input field and form is submitted using AJAX.</p>
<p>The plugin is designed so that all of the forms are fully accessible and in the event that the user has javascript disabled the form will appear on the page in the designated widget area and can be submitted as normal.</p>
<p>For more information and instructions on how to install and configure the plugin and check out a demo form:</p>
<p class="text-center"><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">WordPress slick contact forms</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=H5UoupVuEmc:INUacWXbpQ0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=H5UoupVuEmc:INUacWXbpQ0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/H5UoupVuEmc" height="1" width="1"/>";}i:11;a:14:{s:5:"title";s:41:"WordPress Plugin – jQuery Floating Menu";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/hOODd2VnsDs/";s:8:"comments";s:110:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/#comments";s:7:"pubdate";s:31:"Mon, 02 May 2011 01:46:05 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:67:"jQueryWordpress Pluginsmenunavigationpluginsverticalwidgetwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1773";s:11:"description";s:835:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/"><img align="left" hspace="5" width="150" src="/media/images/floating-menu-example-1.png" class="alignleft wp-post-image tfe" alt="Floating menu example 1" title="" /></a><p><strong>Updated 13th September 2011</strong></p>
<p>The Floating Menu plugin allows you to add a floating, sticky menu containing important or relevant links to your WordPress site. These menus can be created from any WordPress 3.0 custom menu.</p>
<p>This WordPress plugin can handle multiple floating menus on each page and has many options to customise position and features, which are easily set &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:10174:"<p><strong>Updated 13th September 2011</strong></p>
<p>The Floating Menu plugin allows you to add a floating, sticky menu containing important or relevant links to your WordPress site. These menus can be created from any WordPress 3.0 custom menu.</p>
<p>This WordPress plugin can handle multiple floating menus on each page and has many options to customise position and features, which are easily set via the widget control panel. The menu can also be toggled open/closed via external links inserted using shortcodes.</p>
<p><a href="http://downloads.wordpress.org/plugin/floating-menu.1.2.1.zip" rel="nofollow">Download Floating Menu 1.2.1 (9,310)</a></p>

<p><a href="/lab/demo-wordpress-jquery-floating-menu-plugin/">View Floating Menu Demo</a></p>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `floating-menu` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>In the widgets section, select the Floating Menu widget and add to one of your widget areas</li>
<li>Select one of the WP menus, set the required settings and save your widget</li>
</ol>
<h3>Useage</h3>
<p>In order to use the floating menu plugin you will need the following:</p>
<h4>A WordPress custom menu</h4>
<p>Either use an existing menu or set one up via the menu option in WordPress admin.</p>
<h4>Widget area</h4>
<p>Location of the actual widget is not important since the plugin automatically sets the position based on the control panel settings. You can therefore add the floating menu to an existing widget area in your WordPress theme or create a new widget area.</p>
<p>To learn more about adding widget areas to WordPress see our WordPress tutorial &#8211; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">&#8220;Adding A Widget Area To Your Theme Files&#8221;</a>.</p>
<h4>Create Your Floating Menu</h4>
<p>To create your floating menu go to the widget admin page and drag the &#8220;Floating Menu&#8221; widget to the desired widget area. Select your custom menu from the drop down list in the widget control panel.</p>
<p>Click &#8220;save&#8221; to activate the widget.</p>
<h3>Configuring Your Widget</h3>
<p>The floating menu can easily be customised using the options available in the widget control panel:</p>
<h4>Event:</h4>
<p>Open/Close the menu using either &#8216;hover&#8217; or &#8216;click&#8217;.</p>
<h4>Tab Text:</h4>
<p>Enter the text that you would like to use for the menu tab.</p>
<h4>Width:</h4>
<p>Set the width of the menu in pixels</p>
<h4>Location &#038; Aligment:</h4>
<p>The position of the menu in the browser window is determined using its location (either Top or Bottom) and aligment (left or right). The location also changes how the menu slides out:</p>
<ul class="content-list">
<li>Top Left or Top Right &#8211; menu slides down</li>
<li>Bottom Left or Bottom Right &#8211; menu slides up</li>
</ul>
<p>For each one you can also add the number of pixels that you would like to offset the menu by from either the location or alignment in the text box next to the drop down list. The default offset for both location and alignment is 10px.</p>
<p>E.g. To position a menu 50 pixels from the top and 100 pixels from the right you would use the following settings:</p>
<p class="text-center"><img src="/media/images/floating-menu-example-1.png" alt="Floating menu example 1" /></p>
<h4>Floating Speed:</h4>
<p>The speed in milliseconds for the menu floating animation (i.e. the time it takes to &#8220;catch up&#8221; when the page scrolls up or down) &#8211; e.g. to set the floating speed to 1.3 seconds use <strong>1300</strong>.</p>
<p>The default speed is set to 1.5 secs.</p>
<h4>Animation Speed:</h4>
<p>The speed in milliseconds to open and close the slide out menu.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close Menu:</h4>
<p>If checked, the menu will automatically slide closed when the user clicks anywhere in the browser</p>
<h4>Keep Open:</h4>
<p>If checked, the menu tab will remain open at all times.</p>
<h4>Skin:</h4>
<p>8 different sample skins are currently available for styling the floating menu. Since there are no essential styles required to create the floating menu, these can easily be used to create your own custom menu theme.</p>
<p>Note: If you use one of the skin CSS files to create your own style please remember to copy the CSS to your theme folder as all files in the plugin folder are automatically deleted when the plugin is updated.</p>
<h3>Shortcodes</h3>
<p>The plugin includes the feature to add text links within your site content that will open/close the floating menu tab.</p>
<p>[dcfl-link] &#8211; <br />
default link, which will toggle the floating menu open/closed with the link text &#8220;Click Here&#8221;</p>
<p>[dcfl-link text="Open Menu"] &#8211; <br />
toggle the floating menu open/closed with the link text &#8220;Open Menu&#8221;</p>
<p>[dcfl-link action="open"] &#8211; <br />open the menu with the default link text &#8220;Click Here&#8221;</p>
<p>[dcfl-link action="close"] &#8211; <br />close the floating menu tab with the default link text &#8220;Click Here&#8221;</p>
<p>[dcfl-link action="close" text="Close Floating Menu"] &#8211; <br />
close the floating menu with the link text &#8220;Close Floating Menu&#8221;</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Also please check out our <a href="/blog/index.php/frequently-asked-questions/floating-menu/">Frequently Asked Questions for the Floating Menu plugin</a>.</strong></p>
<p>Many issues that can crop up with installing and using the plugin with different themes have been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demo jQuery Floating Menu</h3>
<p><a href="/lab/demo-wordpress-jquery-floating-menu-plugin/">http://designchemical.com/lab/demo-wordpress-jquery-floating-menu-plugin/</a></p>
<h3>Download The Plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/floating-menu.1.2.1.zip" rel="nofollow">Download Floating Menu 1.2.1 (9,310)</a></p>

<p>If you liked the jQuery Floating Menu Plugin you should also try out:</p>
<h4><a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/">WordPress Slick Menu Plugin</a></h4>
<p>Sticky tabs with slide out menus.</p>
<h4><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">WordPress Slick Contact Forms Plugin</a></h4>
<p>Quickly and easily add sticky or floating, slide-out contact forms to any widget area. Fully customisable with email validation, optional required fields &#038; animated error messages.</p>
<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/floating-menu/" rel="nofollow">wordpress.org</a>.</strong></p>
<p>If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your Floating Menu let us know via comments, email or our online contact form.</p>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form-donate" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="EDWNSWDWKPVB4">
<input type="hidden" name="on0" value="Amount">
<input type="hidden" name="os0" maxlength="60">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:none" name="submit" alt="Donate" />
</form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/screenshot-1-jquery-floating-menu-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget in edit mode</strong></p>
<h3>Updates</h3>
<h4>Version 1.2.1 13th September 2011</h4>
<ul class="content-list">
<li>Fixed: validation error</li>
</ul>
<h4>Version 1.2 11th June 2011</h4>
<ul class="content-list">
<li>Added: shortcodes to create external links to open/close floating menu tab</li>
<li>Added: 4 new CSS skins</li>
</ul>
<h4>Version 1.1 16th May 2011</h4>
<ul class="content-list">
<li>Added: Option to keep menu open at all times</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/hOODd2VnsDs" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:106:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"25";}s:10:"feedburner";a:1:{s:8:"origlink";s:101:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/";}s:7:"summary";s:835:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/"><img align="left" hspace="5" width="150" src="/media/images/floating-menu-example-1.png" class="alignleft wp-post-image tfe" alt="Floating menu example 1" title="" /></a><p><strong>Updated 13th September 2011</strong></p>
<p>The Floating Menu plugin allows you to add a floating, sticky menu containing important or relevant links to your WordPress site. These menus can be created from any WordPress 3.0 custom menu.</p>
<p>This WordPress plugin can handle multiple floating menus on each page and has many options to customise position and features, which are easily set &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/" class="read_more">more</a></p>";s:12:"atom_content";s:10174:"<p><strong>Updated 13th September 2011</strong></p>
<p>The Floating Menu plugin allows you to add a floating, sticky menu containing important or relevant links to your WordPress site. These menus can be created from any WordPress 3.0 custom menu.</p>
<p>This WordPress plugin can handle multiple floating menus on each page and has many options to customise position and features, which are easily set via the widget control panel. The menu can also be toggled open/closed via external links inserted using shortcodes.</p>
<p><a href="http://downloads.wordpress.org/plugin/floating-menu.1.2.1.zip" rel="nofollow">Download Floating Menu 1.2.1 (9,310)</a></p>

<p><a href="/lab/demo-wordpress-jquery-floating-menu-plugin/">View Floating Menu Demo</a></p>
<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `floating-menu` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>In the widgets section, select the Floating Menu widget and add to one of your widget areas</li>
<li>Select one of the WP menus, set the required settings and save your widget</li>
</ol>
<h3>Useage</h3>
<p>In order to use the floating menu plugin you will need the following:</p>
<h4>A WordPress custom menu</h4>
<p>Either use an existing menu or set one up via the menu option in WordPress admin.</p>
<h4>Widget area</h4>
<p>Location of the actual widget is not important since the plugin automatically sets the position based on the control panel settings. You can therefore add the floating menu to an existing widget area in your WordPress theme or create a new widget area.</p>
<p>To learn more about adding widget areas to WordPress see our WordPress tutorial &#8211; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">&#8220;Adding A Widget Area To Your Theme Files&#8221;</a>.</p>
<h4>Create Your Floating Menu</h4>
<p>To create your floating menu go to the widget admin page and drag the &#8220;Floating Menu&#8221; widget to the desired widget area. Select your custom menu from the drop down list in the widget control panel.</p>
<p>Click &#8220;save&#8221; to activate the widget.</p>
<h3>Configuring Your Widget</h3>
<p>The floating menu can easily be customised using the options available in the widget control panel:</p>
<h4>Event:</h4>
<p>Open/Close the menu using either &#8216;hover&#8217; or &#8216;click&#8217;.</p>
<h4>Tab Text:</h4>
<p>Enter the text that you would like to use for the menu tab.</p>
<h4>Width:</h4>
<p>Set the width of the menu in pixels</p>
<h4>Location &#038; Aligment:</h4>
<p>The position of the menu in the browser window is determined using its location (either Top or Bottom) and aligment (left or right). The location also changes how the menu slides out:</p>
<ul class="content-list">
<li>Top Left or Top Right &#8211; menu slides down</li>
<li>Bottom Left or Bottom Right &#8211; menu slides up</li>
</ul>
<p>For each one you can also add the number of pixels that you would like to offset the menu by from either the location or alignment in the text box next to the drop down list. The default offset for both location and alignment is 10px.</p>
<p>E.g. To position a menu 50 pixels from the top and 100 pixels from the right you would use the following settings:</p>
<p class="text-center"><img src="/media/images/floating-menu-example-1.png" alt="Floating menu example 1" /></p>
<h4>Floating Speed:</h4>
<p>The speed in milliseconds for the menu floating animation (i.e. the time it takes to &#8220;catch up&#8221; when the page scrolls up or down) &#8211; e.g. to set the floating speed to 1.3 seconds use <strong>1300</strong>.</p>
<p>The default speed is set to 1.5 secs.</p>
<h4>Animation Speed:</h4>
<p>The speed in milliseconds to open and close the slide out menu.</p>
<p>The default speed is set to 0.6 secs.</p>
<h4>Auto-Close Menu:</h4>
<p>If checked, the menu will automatically slide closed when the user clicks anywhere in the browser</p>
<h4>Keep Open:</h4>
<p>If checked, the menu tab will remain open at all times.</p>
<h4>Skin:</h4>
<p>8 different sample skins are currently available for styling the floating menu. Since there are no essential styles required to create the floating menu, these can easily be used to create your own custom menu theme.</p>
<p>Note: If you use one of the skin CSS files to create your own style please remember to copy the CSS to your theme folder as all files in the plugin folder are automatically deleted when the plugin is updated.</p>
<h3>Shortcodes</h3>
<p>The plugin includes the feature to add text links within your site content that will open/close the floating menu tab.</p>
<p>[dcfl-link] &#8211; <br />
default link, which will toggle the floating menu open/closed with the link text &#8220;Click Here&#8221;</p>
<p>[dcfl-link text="Open Menu"] &#8211; <br />
toggle the floating menu open/closed with the link text &#8220;Open Menu&#8221;</p>
<p>[dcfl-link action="open"] &#8211; <br />open the menu with the default link text &#8220;Click Here&#8221;</p>
<p>[dcfl-link action="close"] &#8211; <br />close the floating menu tab with the default link text &#8220;Click Here&#8221;</p>
<p>[dcfl-link action="close" text="Close Floating Menu"] &#8211; <br />
close the floating menu with the link text &#8220;Close Floating Menu&#8221;</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p><strong>Also please check out our <a href="/blog/index.php/frequently-asked-questions/floating-menu/">Frequently Asked Questions for the Floating Menu plugin</a>.</strong></p>
<p>Many issues that can crop up with installing and using the plugin with different themes have been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demo jQuery Floating Menu</h3>
<p><a href="/lab/demo-wordpress-jquery-floating-menu-plugin/">http://designchemical.com/lab/demo-wordpress-jquery-floating-menu-plugin/</a></p>
<h3>Download The Plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/floating-menu.1.2.1.zip" rel="nofollow">Download Floating Menu 1.2.1 (9,310)</a></p>

<p>If you liked the jQuery Floating Menu Plugin you should also try out:</p>
<h4><a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/">WordPress Slick Menu Plugin</a></h4>
<p>Sticky tabs with slide out menus.</p>
<h4><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">WordPress Slick Contact Forms Plugin</a></h4>
<p>Quickly and easily add sticky or floating, slide-out contact forms to any widget area. Fully customisable with email validation, optional required fields &#038; animated error messages.</p>
<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/floating-menu/" rel="nofollow">wordpress.org</a>.</strong></p>
<p>If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for your Floating Menu let us know via comments, email or our online contact form.</p>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form-donate" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="EDWNSWDWKPVB4">
<input type="hidden" name="on0" value="Amount">
<input type="hidden" name="os0" maxlength="60">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:none" name="submit" alt="Donate" />
</form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/screenshot-1-jquery-floating-menu-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget in edit mode</strong></p>
<h3>Updates</h3>
<h4>Version 1.2.1 13th September 2011</h4>
<ul class="content-list">
<li>Fixed: validation error</li>
</ul>
<h4>Version 1.2 11th June 2011</h4>
<ul class="content-list">
<li>Added: shortcodes to create external links to open/close floating menu tab</li>
<li>Added: 4 new CSS skins</li>
</ul>
<h4>Version 1.1 16th May 2011</h4>
<ul class="content-list">
<li>Added: Option to keep menu open at all times</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=hOODd2VnsDs:3FmVDDQ1V-U:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=hOODd2VnsDs:3FmVDDQ1V-U:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/hOODd2VnsDs" height="1" width="1"/>";}i:12;a:14:{s:5:"title";s:36:"New jQuery Plugin – jQuery Floater";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/LOcnVhemS0s/";s:8:"comments";s:112:"http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/#comments";s:7:"pubdate";s:31:"Mon, 02 May 2011 01:19:56 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:55:"jQuery PluginsjQuerylayoutmenunavigationpluginsvertical";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1794";s:11:"description";s:880:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The new jQuery Floater plugin allows you to easily create floating tabs with slide out content from any block of HTML. Useful for adding important navigation links or even text content.</p>
<p>The plugin offers many options, which can be used to customise the floating content including:</p>
<ul class="content-list">
<li>Position the floating tabs anywhere in the browser window using a combination</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2933:"<p>The new <a href="/lab/jquery-floater-plugin/getting-started/">jQuery Floater plugin</a> allows you to easily create floating tabs with slide out content from any block of HTML. Useful for adding important navigation links or even text content.</p>
<p>The plugin offers many options, which can be used to customise the floating content including:</p>
<ul class="content-list">
<li>Position the floating tabs anywhere in the browser window using a combination of &#8220;location&#8221; and &#8220;alignment&#8221; along with offet in pixels.</li>
<li>Slide out content will automatically slide down if location is set to the top of the browser and slide up if set to the bottom</li>
<li>Option of using either &#8220;click&#8221; or &#8220;hover&#8221; to activate the slider.</li>
<li>Customise the floating and slide out animation by changing the speed settings as well as the easing for the floating.</li>
<li>Multiple floating tabs per page</li>
<li>Set the text label for the floating tabs</li>
<li>Auto-close option, which will automatically slide closed if elsewhere in the browser screen is clicked</li>
</ul>
<p>Checkout the <a href="/lab/jquery-floater-plugin/getting-started/">jQuery Floater plugin project page</a> for more information.</p>
<h3>WordPress Plugin Version</h3>
<p>The floater plugin is also available as a WordPress menu widget plugin, which allows you to create floating menus from any WordPress 3.0 custom menus &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu-widget/">WordPress Floating Menu plugin</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/LOcnVhemS0s" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:108:"http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:103:"http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/";}s:7:"summary";s:880:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The new jQuery Floater plugin allows you to easily create floating tabs with slide out content from any block of HTML. Useful for adding important navigation links or even text content.</p>
<p>The plugin offers many options, which can be used to customise the floating content including:</p>
<ul class="content-list">
<li>Position the floating tabs anywhere in the browser window using a combination</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-%e2%80%93-jquery-floater/" class="read_more">more</a></p>";s:12:"atom_content";s:2933:"<p>The new <a href="/lab/jquery-floater-plugin/getting-started/">jQuery Floater plugin</a> allows you to easily create floating tabs with slide out content from any block of HTML. Useful for adding important navigation links or even text content.</p>
<p>The plugin offers many options, which can be used to customise the floating content including:</p>
<ul class="content-list">
<li>Position the floating tabs anywhere in the browser window using a combination of &#8220;location&#8221; and &#8220;alignment&#8221; along with offet in pixels.</li>
<li>Slide out content will automatically slide down if location is set to the top of the browser and slide up if set to the bottom</li>
<li>Option of using either &#8220;click&#8221; or &#8220;hover&#8221; to activate the slider.</li>
<li>Customise the floating and slide out animation by changing the speed settings as well as the easing for the floating.</li>
<li>Multiple floating tabs per page</li>
<li>Set the text label for the floating tabs</li>
<li>Auto-close option, which will automatically slide closed if elsewhere in the browser screen is clicked</li>
</ul>
<p>Checkout the <a href="/lab/jquery-floater-plugin/getting-started/">jQuery Floater plugin project page</a> for more information.</p>
<h3>WordPress Plugin Version</h3>
<p>The floater plugin is also available as a WordPress menu widget plugin, which allows you to create floating menus from any WordPress 3.0 custom menus &#8211; <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu-widget/">WordPress Floating Menu plugin</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LOcnVhemS0s:WeleMoLYzFQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LOcnVhemS0s:WeleMoLYzFQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/LOcnVhemS0s" height="1" width="1"/>";}i:13;a:14:{s:5:"title";s:48:"jQuery Animated Error Messages & Form Validation";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/JXj0QoL9FEU/";s:8:"comments";s:108:"http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/#comments";s:7:"pubdate";s:31:"Thu, 21 Apr 2011 13:24:19 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:47:"jQueryTutorialsValidationanimationformstutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1754";s:11:"description";s:839:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>In today&#8217;s tutorial we are going to use jQuery animation to create more interesting and engaging form validation errors for a user registration form.</p>
<p>Our jQuery form submit and validation code is based on the same one we created in our &#8220;Create Your Own jQuery AJAX Form Submit With Validation&#8221; tutorial in February. The additional items that we are going &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:11367:"<p>In today&#8217;s tutorial we are going to use jQuery animation to create more interesting and engaging form validation errors for a user registration form.</p>
<p>Our jQuery form submit and validation code is based on the same one we created in our &#8220;<a href="/blog/index.php/jquery/create-your-own-jquery-ajax-form-submit-with-validation/">Create Your Own jQuery AJAX Form Submit With Validation</a>&#8221; tutorial in February. The additional items that we are going to add are:</p>
<div class="section">
<ul class="content-list">
<li>An additional code snippet to check that the user&#8217;s password re-entry matches</li>
<li>jQuery code that will create &#038; dynamically position our various validation error messages</li>
<li>jQuery animation code that will show the relevant error</li>
<li>An additional step that will fade out the error message when the input element gains focus</li>
</ul>
</div>
<p><a href="/lab/jquery/demo/jquery_animation_form_validation_errors.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-animation-form-validation-errors.zip" class="demo">Download Source Files</a></p>
<h3 class="clear">The Form HTML</h3>
<p>A standard form with the same format that we used in the earlier tutorial:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;form id=&quot;form-sign-up&quot; class=&quot;styled&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
    &lt;fieldset&gt;
        &lt;h3&gt;Register Now!&lt;/h3&gt;
        &lt;ol&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Name:&lt;/label&gt;
                &lt;input name=&quot;name&quot; type=&quot;text&quot; class=&quot;text-input required&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Email:&lt;/label&gt;
                &lt;input name=&quot;email&quot; type=&quot;text&quot; class=&quot;text-input required email&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Password:&lt;/label&gt;
                &lt;input name=&quot;password&quot; type=&quot;password&quot; id=&quot;password-1&quot; class=&quot;text-input required password&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Repeat Password:&lt;/label&gt;
                &lt;input name=&quot;password1&quot; type=&quot;password&quot; id=&quot;password-2&quot; class=&quot;text-input required password&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;button-row&quot;&gt;
                &lt;input type=&quot;image&quot; src=&quot;images/btn_sign_up_off.png&quot; alt=&quot;Sign Up&quot; value=&quot;OK&quot; class=&quot;btn-submit img-swap&quot; /&gt;
            &lt;/li&gt;
        &lt;/ol&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p>The key items here are the classes we have assigned to the text elements, which will be used by our jQuery code to identify what validation rules and error messages should apply. We have 3 different types:</p>
<ul class="content-list">
<li>Name &#8211; has class &#8220;required&#8221;, which checks that the input is not empty and is used as the basis for all of our form elements</li>
<li>Email &#8211; has class &#8220;email&#8221;, which checks the input against a regular expression for matching standard email formats</li>
<li>Password/Re-enter Password &#8211; has class &#8220;password&#8221;, which will check the 2 entries against each other to make sure they match</li>
</ul>
<h3>Our Form CSS</h3>
<p>There are a couple of CSS rules, which are required in order for our error animation to work &#8211; these are highlighted in the code below with appropriate comments:</p>
<pre class="brush: plain; title: ; notranslate">
/*Form styles*/
.styled {
font: 15px Arial, sans-serif;
width: 422px;
margin: 20px auto;
background: url(images/bg_form.png) no-repeat 0 0;
padding-top: 20px;
}
.styled fieldset {
background: url(images/bg_form.png) no-repeat 0 100%;
padding: 0 25px 20px 25px;
position: relative;
}

/* Form rows */
.styled fieldset li.form-row {
margin-bottom: 5px;
padding: 3px 0;
clear: both;
position: relative; /* Required as error messages will be absolutely positioned */
}
.styled label {
display: block;
font-weight: bold;
float: left;
width: 100px;
line-height: 24px;
padding-top: 4px;
color: #555;
}
.styled fieldset li.button-row {
margin-bottom: 0;
padding: 5px 0 0;
text-align: right;
}

/* Text input styles */
/* Default */
.styled input.text-input {
height: 22px;
width: 254px;
padding: 5px 8px;
background: url(images/bg_input.png) no-repeat 0 0;
border: none;
font: normal 15px Arial, sans-serif;
color: #333;
line-height: 1em;
}
</pre>
<h3>The Form Validation CSS</h3>
<p>The following CSS rules are for styling and setting up the form error messages:</p>
<pre class="brush: plain; title: ; notranslate">

/* Form Validation */
/* CSS code to create the error messages */
.styled span.error {
font: bold 11px Arial, sans-serif;
line-height: 1em;
color:#fff;
text-shadow: 1px 1px 1px #000;
background: url(images/arrow_error.png) no-repeat 0 center;
border-right: 1px solid #6c0202;
height: 11px;
padding: 8px 15px 11px 20px;
display: none; /* Required as we will use jQuery to fade in the error message */
position: absolute; /* Required */
top: 3px;
right: 0; /* Required - initially set all error messages to the right of the form row */
}

/* Change the input field styles when an error message is present */
.styled fieldset li.error input.text-input {
background-position: 0 -64px;
}
</pre>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>The jQuery Code</h3>
<p>The code below includes comments explaining each function in more detail:</p>
<pre class="brush: jscript; title: ; notranslate">
// Form validation and submit when button is clicked
	$('.btn-submit').click(function(e){

		// Declare the function variables:
		// Parent form, form URL, email regex and the error HTML
		var $formId = $(this).parents('form');
		var formAction = $formId.attr('action');
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
		var $error = $('&lt;span class=&quot;error&quot;&gt;&lt;/span&gt;');

		// Prepare the form for validation - remove previous errors
		$('li',$formId).removeClass('error');
		$('span.error').remove();

		// Validate all inputs with the class &quot;required&quot;
		$('.required',$formId).each(function(){
			var inputVal = $(this).val();
			var $parentTag = $(this).parent();
			if(inputVal == ''){
				$parentTag.addClass('error').append($error.clone().text('Required Field'));
			}

			// Run the email validation using the regex for those input items also having class &quot;email&quot;
			if($(this).hasClass('email') == true){
				if(!emailReg.test(inputVal)){
					$parentTag.addClass('error').append($error.clone().text('Enter valid email'));
				}
			}

			// Check passwords match for inputs with class &quot;password&quot;
			if($(this).hasClass('password') == true){
				var password1 = $('#password-1').val();
				var password2 = $('#password-2').val();
				if(password1 != password2){
				$parentTag.addClass('error').append($error.clone().text('Passwords must match'));
				}
			}
		});

		// All validation complete - Check if any errors exist
		// If has errors
		if ($('span.error').length &gt; 0) {

			$('span.error').each(function(){

				// Set the distance for the error animation
				var distance = 5;

				// Get the error dimensions
				var width = $(this).outerWidth();

				// Calculate starting position
				var start = width + distance;

				// Set the initial CSS
				$(this).show().css({
					display: 'block',
					opacity: 0,
					right: -start+'px'
				})
				// Animate the error message
				.animate({
					right: -width+'px',
					opacity: 1
				}, 'slow');

			});
		} else {
			$formId.submit();
		}
		// Prevent form submission
			e.preventDefault();
	});

	// Fade out error message when input field gains focus
	$('.required').focus(function(){
		var $parent = $(this).parent();
		$parent.removeClass('error');
		$('span.error',$parent).fadeOut();
	});
</pre>
<p>The comments are fairly self explanatory. So to briefly summarise the jQuery code:</p>
<ol>
<li>When the submit button is clicked the validation process starts by declaring all function variables, including the error message span tag</li>
<li>Clean up the form by removing any errors span tags plus the error class on the form rows from the previous click so we are starting with a clean slate</li
<li>Loop through all input fields with class &#8220;required&#8221; and first check if they contain text</li>
<li>Validate input fields with class &#8220;email&#8221; using a standard regex pattern for email address formats</li>
<li>Get the 2 password field values and check if they match</li>
<li>If any of our checks returns an error indentify that form row by adding class=&#8221;error&#8221;, clone the error span tag, append to the form row and insert the relevant error message text</li>
<li>Position each error message span tag to the right of the form row based on the total width of the message</li>
<li>Fade in each error message and alert the user by animating 5px to the left</li>
<li>Fade out and remove the errors when the user clicks on the text input field</li>
</ol>
<p>With the basic process now in place you can easily modify and expand the animation functions and try different effects to suit your users and website.</p>
<p><a href="/lab/jquery/demo/jquery_animation_form_validation_errors.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-animation-form-validation-errors.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/JXj0QoL9FEU" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:104:"http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"11";}s:10:"feedburner";a:1:{s:8:"origlink";s:99:"http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/";}s:7:"summary";s:839:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>In today&#8217;s tutorial we are going to use jQuery animation to create more interesting and engaging form validation errors for a user registration form.</p>
<p>Our jQuery form submit and validation code is based on the same one we created in our &#8220;Create Your Own jQuery AJAX Form Submit With Validation&#8221; tutorial in February. The additional items that we are going &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-animated-error-messages-form-validation/" class="read_more">more</a></p>";s:12:"atom_content";s:11367:"<p>In today&#8217;s tutorial we are going to use jQuery animation to create more interesting and engaging form validation errors for a user registration form.</p>
<p>Our jQuery form submit and validation code is based on the same one we created in our &#8220;<a href="/blog/index.php/jquery/create-your-own-jquery-ajax-form-submit-with-validation/">Create Your Own jQuery AJAX Form Submit With Validation</a>&#8221; tutorial in February. The additional items that we are going to add are:</p>
<div class="section">
<ul class="content-list">
<li>An additional code snippet to check that the user&#8217;s password re-entry matches</li>
<li>jQuery code that will create &#038; dynamically position our various validation error messages</li>
<li>jQuery animation code that will show the relevant error</li>
<li>An additional step that will fade out the error message when the input element gains focus</li>
</ul>
</div>
<p><a href="/lab/jquery/demo/jquery_animation_form_validation_errors.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-animation-form-validation-errors.zip" class="demo">Download Source Files</a></p>
<h3 class="clear">The Form HTML</h3>
<p>A standard form with the same format that we used in the earlier tutorial:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;form id=&quot;form-sign-up&quot; class=&quot;styled&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
    &lt;fieldset&gt;
        &lt;h3&gt;Register Now!&lt;/h3&gt;
        &lt;ol&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Name:&lt;/label&gt;
                &lt;input name=&quot;name&quot; type=&quot;text&quot; class=&quot;text-input required&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Email:&lt;/label&gt;
                &lt;input name=&quot;email&quot; type=&quot;text&quot; class=&quot;text-input required email&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Password:&lt;/label&gt;
                &lt;input name=&quot;password&quot; type=&quot;password&quot; id=&quot;password-1&quot; class=&quot;text-input required password&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;form-row&quot;&gt;
                &lt;label&gt;Repeat Password:&lt;/label&gt;
                &lt;input name=&quot;password1&quot; type=&quot;password&quot; id=&quot;password-2&quot; class=&quot;text-input required password&quot; /&gt;
            &lt;/li&gt;
            &lt;li class=&quot;button-row&quot;&gt;
                &lt;input type=&quot;image&quot; src=&quot;images/btn_sign_up_off.png&quot; alt=&quot;Sign Up&quot; value=&quot;OK&quot; class=&quot;btn-submit img-swap&quot; /&gt;
            &lt;/li&gt;
        &lt;/ol&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p>The key items here are the classes we have assigned to the text elements, which will be used by our jQuery code to identify what validation rules and error messages should apply. We have 3 different types:</p>
<ul class="content-list">
<li>Name &#8211; has class &#8220;required&#8221;, which checks that the input is not empty and is used as the basis for all of our form elements</li>
<li>Email &#8211; has class &#8220;email&#8221;, which checks the input against a regular expression for matching standard email formats</li>
<li>Password/Re-enter Password &#8211; has class &#8220;password&#8221;, which will check the 2 entries against each other to make sure they match</li>
</ul>
<h3>Our Form CSS</h3>
<p>There are a couple of CSS rules, which are required in order for our error animation to work &#8211; these are highlighted in the code below with appropriate comments:</p>
<pre class="brush: plain; title: ; notranslate">
/*Form styles*/
.styled {
font: 15px Arial, sans-serif;
width: 422px;
margin: 20px auto;
background: url(images/bg_form.png) no-repeat 0 0;
padding-top: 20px;
}
.styled fieldset {
background: url(images/bg_form.png) no-repeat 0 100%;
padding: 0 25px 20px 25px;
position: relative;
}

/* Form rows */
.styled fieldset li.form-row {
margin-bottom: 5px;
padding: 3px 0;
clear: both;
position: relative; /* Required as error messages will be absolutely positioned */
}
.styled label {
display: block;
font-weight: bold;
float: left;
width: 100px;
line-height: 24px;
padding-top: 4px;
color: #555;
}
.styled fieldset li.button-row {
margin-bottom: 0;
padding: 5px 0 0;
text-align: right;
}

/* Text input styles */
/* Default */
.styled input.text-input {
height: 22px;
width: 254px;
padding: 5px 8px;
background: url(images/bg_input.png) no-repeat 0 0;
border: none;
font: normal 15px Arial, sans-serif;
color: #333;
line-height: 1em;
}
</pre>
<h3>The Form Validation CSS</h3>
<p>The following CSS rules are for styling and setting up the form error messages:</p>
<pre class="brush: plain; title: ; notranslate">

/* Form Validation */
/* CSS code to create the error messages */
.styled span.error {
font: bold 11px Arial, sans-serif;
line-height: 1em;
color:#fff;
text-shadow: 1px 1px 1px #000;
background: url(images/arrow_error.png) no-repeat 0 center;
border-right: 1px solid #6c0202;
height: 11px;
padding: 8px 15px 11px 20px;
display: none; /* Required as we will use jQuery to fade in the error message */
position: absolute; /* Required */
top: 3px;
right: 0; /* Required - initially set all error messages to the right of the form row */
}

/* Change the input field styles when an error message is present */
.styled fieldset li.error input.text-input {
background-position: 0 -64px;
}
</pre>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>The jQuery Code</h3>
<p>The code below includes comments explaining each function in more detail:</p>
<pre class="brush: jscript; title: ; notranslate">
// Form validation and submit when button is clicked
	$('.btn-submit').click(function(e){

		// Declare the function variables:
		// Parent form, form URL, email regex and the error HTML
		var $formId = $(this).parents('form');
		var formAction = $formId.attr('action');
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
		var $error = $('&lt;span class=&quot;error&quot;&gt;&lt;/span&gt;');

		// Prepare the form for validation - remove previous errors
		$('li',$formId).removeClass('error');
		$('span.error').remove();

		// Validate all inputs with the class &quot;required&quot;
		$('.required',$formId).each(function(){
			var inputVal = $(this).val();
			var $parentTag = $(this).parent();
			if(inputVal == ''){
				$parentTag.addClass('error').append($error.clone().text('Required Field'));
			}

			// Run the email validation using the regex for those input items also having class &quot;email&quot;
			if($(this).hasClass('email') == true){
				if(!emailReg.test(inputVal)){
					$parentTag.addClass('error').append($error.clone().text('Enter valid email'));
				}
			}

			// Check passwords match for inputs with class &quot;password&quot;
			if($(this).hasClass('password') == true){
				var password1 = $('#password-1').val();
				var password2 = $('#password-2').val();
				if(password1 != password2){
				$parentTag.addClass('error').append($error.clone().text('Passwords must match'));
				}
			}
		});

		// All validation complete - Check if any errors exist
		// If has errors
		if ($('span.error').length &gt; 0) {

			$('span.error').each(function(){

				// Set the distance for the error animation
				var distance = 5;

				// Get the error dimensions
				var width = $(this).outerWidth();

				// Calculate starting position
				var start = width + distance;

				// Set the initial CSS
				$(this).show().css({
					display: 'block',
					opacity: 0,
					right: -start+'px'
				})
				// Animate the error message
				.animate({
					right: -width+'px',
					opacity: 1
				}, 'slow');

			});
		} else {
			$formId.submit();
		}
		// Prevent form submission
			e.preventDefault();
	});

	// Fade out error message when input field gains focus
	$('.required').focus(function(){
		var $parent = $(this).parent();
		$parent.removeClass('error');
		$('span.error',$parent).fadeOut();
	});
</pre>
<p>The comments are fairly self explanatory. So to briefly summarise the jQuery code:</p>
<ol>
<li>When the submit button is clicked the validation process starts by declaring all function variables, including the error message span tag</li>
<li>Clean up the form by removing any errors span tags plus the error class on the form rows from the previous click so we are starting with a clean slate</li
<li>Loop through all input fields with class &#8220;required&#8221; and first check if they contain text</li>
<li>Validate input fields with class &#8220;email&#8221; using a standard regex pattern for email address formats</li>
<li>Get the 2 password field values and check if they match</li>
<li>If any of our checks returns an error indentify that form row by adding class=&#8221;error&#8221;, clone the error span tag, append to the form row and insert the relevant error message text</li>
<li>Position each error message span tag to the right of the form row based on the total width of the message</li>
<li>Fade in each error message and alert the user by animating 5px to the left</li>
<li>Fade out and remove the errors when the user clicks on the text input field</li>
</ol>
<p>With the basic process now in place you can easily modify and expand the animation functions and try different effects to suit your users and website.</p>
<p><a href="/lab/jquery/demo/jquery_animation_form_validation_errors.htm" class="demo">View Demo</a><a href="/lab/jquery/demo/download/jquery-animation-form-validation-errors.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=JXj0QoL9FEU:kZS2ehStd74:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=JXj0QoL9FEU:kZS2ehStd74:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/JXj0QoL9FEU" height="1" width="1"/>";}i:14;a:14:{s:5:"title";s:52:"Form Validation Using jQuery and Regular Expressions";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/juoVpvarhyo/";s:8:"comments";s:114:"http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/#comments";s:7:"pubdate";s:31:"Mon, 18 Apr 2011 02:00:09 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:57:"jQueryTutorialsValidationWebsite Codingformsregextutorial";s:4:"guid";s:41:"http://www.designchemical.com/blog/?p=952";s:11:"description";s:892:"<a href="http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/thumb_jquery_code.png" class="alignleft tfe wp-post-image" alt="thumb_jquery_code" title="thumb_jquery_code" /></a><h4>Updated 18th April 2011</h4>
<p>Regular expressions offer an extremely flexible and powerful way of adding validation to your website forms. Combined with jQuery, it allows you to ensure that data sent to the server matches all of your requirements.</p>
<p>In this post I have included several example regular expressions that we have used in our web design projects for validating &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:9883:"<h4>Updated 18th April 2011</h4>
<p>Regular expressions offer an extremely flexible and powerful way of adding validation to your website forms. Combined with jQuery, it allows you to ensure that data sent to the server matches all of your requirements.</p>
<p>In this post I have included several example regular expressions that we have used in our web design projects for validating form input.</p>
<p>For this tutorial we assume you know how to create the HTML form and add jQuery to your site. For samples you can refer to previous posts &#8211; <a href="http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/">check passwords using jQuery</a>, <a href="http://www.designchemical.com/blog/index.php/jquery/email-validation-using-jquery/">email validation using jQuery</a> or view the demo form.</p>
<p class="clear-float"><a href="http://www.designchemical.com/lab/jquery/demo/jquery_regular_expression_validation_samples.htm" class="demo">View Demo</a></p>
<p class="clear">For each example we have created a css class, which can then be assigned to the relevant form element. If you are creating your own validation code/plugin there are obviously more efficient ways of creating a complete validation system but for the tutorial we have kept each regular expression sample separate and also use the &#8220;keyup&#8221; event.</p>
<h3>jQuery To Handle the Submit Button</h3>
<p>In order to use these validation functions in a form we need to add jQuery that will check for the presence of any span elements with the class &#8220;error&#8221;. We do this by using the length property. If the length is > 0 the form submit can be stopped and the user alerted:</p>
<pre class="brush: jscript; title: ; notranslate">
$('#btn-submit').click(function() {
  if($('span.error').length &amp;gt; 0){
    alert('Errors!');
    return false;
  } else {
    $('#btn-submit').after('&lt;span class=&quot;error&quot;&gt;Form Accepted.&lt;/span&gt;');
    return false;
  }
});
</pre>
<p>Now that we have this code to check for errors, we can add any of the examples below to the form.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Example 1 &#8211; Validates Numeric Characters Only</h3>
<p>Accepts only 0 &#8211; 9</p>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-numeric').keyup(function() {
    $('span.error-keyup-1').hide();
    var inputVal = $(this).val();
    var numericReg = /^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$/;
    if(!numericReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-1&quot;&gt;Numeric characters only.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 2 &#8211; No Special Characters</h3>
<p>Allows only letters, numbers and spaces. All other characters will return an error.</p>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-characters').keyup(function() {
    $('span.error-keyup-2').remove();
    var inputVal = $(this).val();
    var characterReg = /^\s*[a-zA-Z0-9,\s]+\s*$/;
    if(!characterReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-2&quot;&gt;No special characters allowed.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 3 &#8211; Maximum of 8 Characters</h3>
<p>Allows all characters up to a maximum of 8. Useful for passwords, etc. The value can easily be increased/descreased by changing the {0,8}</p>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-limit-8').keyup(function() {
    $('span.error-keyup-3').remove();
    var inputVal = $(this).val();
    var characterReg = /^([a-zA-Z0-9]{0,8})$/;
    if(!characterReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-3&quot;&gt;Maximum 8 characters.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 4 &#8211; US Phone Number</h3>
<p>Allows numbers 2-9 for the first and second group of 3 followed by 0-9 for the last 4 with the groups separated by &#8220;-&#8221; e.g:</p>
<ul>
<li>234-234-1234 = OK</li>
<li>134-234-1234 = Error</li>
<li>234-134-1234 = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-phone').keyup(function() {
    $('span.error-keyup-4').remove();
    var inputVal = $(this).val();
    var characterReg = /^[2-9]\d{2}-\d{3}-\d{4}$/;
    if(!characterReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-4&quot;&gt;Format xxx-xxx-xxxx&lt;/span&gt;');
    }
});
</pre>
<h3>Example 5 &#8211; Validate Date Format</h3>
<p>Allows date format &#8211; mm/dd/yyyy &#8211; including &#8220;/&#8221;. All other combinations will return errors e.g:</p>
<ul>
<li>01/31/2001 = OK</li>
<li>31/01/2001 = Error</li>
<li>1/01/2001 = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-date').keyup(function() {
    $('span.error-keyup-5').remove();
    var inputVal = $(this).val();
    var dateReg = /^[0,1]?\d{1}\/(([0-2]?\d{1})|([3][0,1]{1}))\/(([1]{1}[9]{1}[9]{1}\d{1})|([2-9]{1}\d{3}))$/;
    if(!dateReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-5&quot;&gt;Invalid date format.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 6 &#8211; Check For Possible Fake Text</h3>
<p>This is an interesting example, which checks for possible fake text being entered into your form. The regex looks for groups of the same letters occuring in groups of 3 or more e.g:</p>
<ul>
<li>foo = OK</li>
<li>fff = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-fake').keyup(function() {
    $('span.error-keyup-6').remove();
    var inputVal = $(this).val();
    var fakeReg = /(.)\1{2,}/;
    if(fakeReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-6&quot;&gt;Invalid text.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 7 &#8211; Check Email Address Format</h3>
<p>This is a standard regular expression, which is used to validate email addresses to ensure they follow the standard format:</p>
<ul>
<li>email@email.com = OK</li>
<li>email.email.com = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-email').keyup(function() {
    $('span.error-keyup-7').remove();
    var inputVal = $(this).val();
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    if(!emailReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-7&quot;&gt;Invalid Email Format.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 8 &#8211; No Free Email Addresses</h3>
<p>Another useful email validation regular expression checks for email addresses using free emails &#8211; in the example below we check for yahoo, gmail and hotmail:</p>
<ul>
<li>email@yahoo.com = Error</li>
<li>email@email.com = OK</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-email-2').keyup(function() {
    $('span.error-keyup-8').remove();
    var inputVal = $(this).val();
    var emailFreeReg= /^([\w-\.]+@(?!gmail.com)(?!yahoo.com)(?!hotmail.com)(?!aol.com)([\w-]+\.)+[\w-]{2,4})?$/;
    if(!emailFreeReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-8&quot;&gt;No Free Email Addresses.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 9 &#8211; Visa Card Number Format</h3>
<p>For an example of validating a credit card we can use the following regular expression, which checks the input against the standard format for Visa credit cards &#8211; All card numbers must start with a 4 &#038; cards may either have 16 digits or 13 digits for older cards:</p>
<ul>
<li>4166000000000000 = OK</li>
<li>4166000000000 = OK</li>
<li>41660000000000001 = Error</li>
<li>2166000000000000 = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-cc').keyup(function() {
    $('span.error-keyup-9').remove();
    var inputVal = $(this).val();
    var ccReg = /^4[0-9]{12}(?:[0-9]{3})?$/;
    if(!ccReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-9&quot;&gt;Invalid visa card number&lt;/span&gt;');
    }
});
</pre>
<p>Hopefully some of the above examples will be useful for your forms and also help demonstrate how powerful regular expressions can be.</p>
<p><a href="http://www.designchemical.com/lab/jquery/demo/jquery_regular_expression_validation_samples.htm" class="demo">View Demo</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/juoVpvarhyo" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:110:"http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"4";}s:10:"feedburner";a:1:{s:8:"origlink";s:105:"http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/";}s:7:"summary";s:892:"<a href="http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/"><img align="left" hspace="5" width="120" height="120" src="http://www.designchemical.com/blog/wp-content/uploads/2010/05/thumb_jquery_code.png" class="alignleft tfe wp-post-image" alt="thumb_jquery_code" title="thumb_jquery_code" /></a><h4>Updated 18th April 2011</h4>
<p>Regular expressions offer an extremely flexible and powerful way of adding validation to your website forms. Combined with jQuery, it allows you to ensure that data sent to the server matches all of your requirements.</p>
<p>In this post I have included several example regular expressions that we have used in our web design projects for validating &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/form-validation-using-jquery-and-regular-expressions/" class="read_more">more</a></p>";s:12:"atom_content";s:9883:"<h4>Updated 18th April 2011</h4>
<p>Regular expressions offer an extremely flexible and powerful way of adding validation to your website forms. Combined with jQuery, it allows you to ensure that data sent to the server matches all of your requirements.</p>
<p>In this post I have included several example regular expressions that we have used in our web design projects for validating form input.</p>
<p>For this tutorial we assume you know how to create the HTML form and add jQuery to your site. For samples you can refer to previous posts &#8211; <a href="http://www.designchemical.com/blog/index.php/jquery/check-passwords-using-jquery/">check passwords using jQuery</a>, <a href="http://www.designchemical.com/blog/index.php/jquery/email-validation-using-jquery/">email validation using jQuery</a> or view the demo form.</p>
<p class="clear-float"><a href="http://www.designchemical.com/lab/jquery/demo/jquery_regular_expression_validation_samples.htm" class="demo">View Demo</a></p>
<p class="clear">For each example we have created a css class, which can then be assigned to the relevant form element. If you are creating your own validation code/plugin there are obviously more efficient ways of creating a complete validation system but for the tutorial we have kept each regular expression sample separate and also use the &#8220;keyup&#8221; event.</p>
<h3>jQuery To Handle the Submit Button</h3>
<p>In order to use these validation functions in a form we need to add jQuery that will check for the presence of any span elements with the class &#8220;error&#8221;. We do this by using the length property. If the length is > 0 the form submit can be stopped and the user alerted:</p>
<pre class="brush: jscript; title: ; notranslate">
$('#btn-submit').click(function() {
  if($('span.error').length &amp;gt; 0){
    alert('Errors!');
    return false;
  } else {
    $('#btn-submit').after('&lt;span class=&quot;error&quot;&gt;Form Accepted.&lt;/span&gt;');
    return false;
  }
});
</pre>
<p>Now that we have this code to check for errors, we can add any of the examples below to the form.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Example 1 &#8211; Validates Numeric Characters Only</h3>
<p>Accepts only 0 &#8211; 9</p>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-numeric').keyup(function() {
    $('span.error-keyup-1').hide();
    var inputVal = $(this).val();
    var numericReg = /^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$/;
    if(!numericReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-1&quot;&gt;Numeric characters only.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 2 &#8211; No Special Characters</h3>
<p>Allows only letters, numbers and spaces. All other characters will return an error.</p>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-characters').keyup(function() {
    $('span.error-keyup-2').remove();
    var inputVal = $(this).val();
    var characterReg = /^\s*[a-zA-Z0-9,\s]+\s*$/;
    if(!characterReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-2&quot;&gt;No special characters allowed.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 3 &#8211; Maximum of 8 Characters</h3>
<p>Allows all characters up to a maximum of 8. Useful for passwords, etc. The value can easily be increased/descreased by changing the {0,8}</p>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-limit-8').keyup(function() {
    $('span.error-keyup-3').remove();
    var inputVal = $(this).val();
    var characterReg = /^([a-zA-Z0-9]{0,8})$/;
    if(!characterReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-3&quot;&gt;Maximum 8 characters.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 4 &#8211; US Phone Number</h3>
<p>Allows numbers 2-9 for the first and second group of 3 followed by 0-9 for the last 4 with the groups separated by &#8220;-&#8221; e.g:</p>
<ul>
<li>234-234-1234 = OK</li>
<li>134-234-1234 = Error</li>
<li>234-134-1234 = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-phone').keyup(function() {
    $('span.error-keyup-4').remove();
    var inputVal = $(this).val();
    var characterReg = /^[2-9]\d{2}-\d{3}-\d{4}$/;
    if(!characterReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-4&quot;&gt;Format xxx-xxx-xxxx&lt;/span&gt;');
    }
});
</pre>
<h3>Example 5 &#8211; Validate Date Format</h3>
<p>Allows date format &#8211; mm/dd/yyyy &#8211; including &#8220;/&#8221;. All other combinations will return errors e.g:</p>
<ul>
<li>01/31/2001 = OK</li>
<li>31/01/2001 = Error</li>
<li>1/01/2001 = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-date').keyup(function() {
    $('span.error-keyup-5').remove();
    var inputVal = $(this).val();
    var dateReg = /^[0,1]?\d{1}\/(([0-2]?\d{1})|([3][0,1]{1}))\/(([1]{1}[9]{1}[9]{1}\d{1})|([2-9]{1}\d{3}))$/;
    if(!dateReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-5&quot;&gt;Invalid date format.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 6 &#8211; Check For Possible Fake Text</h3>
<p>This is an interesting example, which checks for possible fake text being entered into your form. The regex looks for groups of the same letters occuring in groups of 3 or more e.g:</p>
<ul>
<li>foo = OK</li>
<li>fff = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-fake').keyup(function() {
    $('span.error-keyup-6').remove();
    var inputVal = $(this).val();
    var fakeReg = /(.)\1{2,}/;
    if(fakeReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-6&quot;&gt;Invalid text.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 7 &#8211; Check Email Address Format</h3>
<p>This is a standard regular expression, which is used to validate email addresses to ensure they follow the standard format:</p>
<ul>
<li>email@email.com = OK</li>
<li>email.email.com = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-email').keyup(function() {
    $('span.error-keyup-7').remove();
    var inputVal = $(this).val();
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    if(!emailReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-7&quot;&gt;Invalid Email Format.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 8 &#8211; No Free Email Addresses</h3>
<p>Another useful email validation regular expression checks for email addresses using free emails &#8211; in the example below we check for yahoo, gmail and hotmail:</p>
<ul>
<li>email@yahoo.com = Error</li>
<li>email@email.com = OK</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-email-2').keyup(function() {
    $('span.error-keyup-8').remove();
    var inputVal = $(this).val();
    var emailFreeReg= /^([\w-\.]+@(?!gmail.com)(?!yahoo.com)(?!hotmail.com)(?!aol.com)([\w-]+\.)+[\w-]{2,4})?$/;
    if(!emailFreeReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-8&quot;&gt;No Free Email Addresses.&lt;/span&gt;');
    }
});
</pre>
<h3>Example 9 &#8211; Visa Card Number Format</h3>
<p>For an example of validating a credit card we can use the following regular expression, which checks the input against the standard format for Visa credit cards &#8211; All card numbers must start with a 4 &#038; cards may either have 16 digits or 13 digits for older cards:</p>
<ul>
<li>4166000000000000 = OK</li>
<li>4166000000000 = OK</li>
<li>41660000000000001 = Error</li>
<li>2166000000000000 = Error</li>
</ul>
<pre class="brush: jscript; title: ; notranslate">
$('.keyup-cc').keyup(function() {
    $('span.error-keyup-9').remove();
    var inputVal = $(this).val();
    var ccReg = /^4[0-9]{12}(?:[0-9]{3})?$/;
    if(!ccReg.test(inputVal)) {
        $(this).after('&lt;span class=&quot;error error-keyup-9&quot;&gt;Invalid visa card number&lt;/span&gt;');
    }
});
</pre>
<p>Hopefully some of the above examples will be useful for your forms and also help demonstrate how powerful regular expressions can be.</p>
<p><a href="http://www.designchemical.com/lab/jquery/demo/jquery_regular_expression_validation_samples.htm" class="demo">View Demo</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=juoVpvarhyo:hVQdUSogSfA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=juoVpvarhyo:hVQdUSogSfA:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/juoVpvarhyo" height="1" width="1"/>";}i:15;a:14:{s:5:"title";s:50:"jQuery Tooltips – Create Your Own Tooltip Plugin";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/eU2tc65Y0h4/";s:8:"comments";s:108:"http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/#comments";s:7:"pubdate";s:31:"Sun, 17 Apr 2011 17:06:01 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:48:"jQueryjQuery PluginsTutorialsdemopluginstutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1662";s:11:"description";s:870:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/"><img align="left" hspace="5" width="150" src="/media/images/jquery_tooltips_tutorial.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/jquery_tooltips_tutorial.jpg" alt="" /></p>
<p>In today&#8217;s jQuery tutorial we are going to look at creating your own jQuery tooltip plugin!</p>
<p>Whilst there are many great tooltip plugins available out there, creating your own provides a nice and relatively easy opportunity to try your hand at jquery plugins as well as some basic jquery code.</p>
<p>View jQuery Tooltips Plugin DemoDownload Source Files &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/" class="read_more">more</a></p>
<p";s:7:"content";a:1:{s:7:"encoded";s:17423:"<p class="text-center"><img src="/media/images/jquery_tooltips_tutorial.jpg" alt="" /></p>
<p>In today&#8217;s jQuery tutorial we are going to look at creating your own jQuery tooltip plugin!</p>
<p>Whilst there are many great tooltip plugins available out there, creating your own provides a nice and relatively easy opportunity to try your hand at jquery plugins as well as some basic jquery code.</p>
<p><a href="/lab/jquery/demo/jquery_tooltips_plugin_demo.htm" class="demo">View jQuery Tooltips Plugin Demo</a><a href="/lab/jquery/demo/download/jquery-tooltips-plugin.zip" class="demo">Download Source Files</a></p>
<p class="clear">By creating a plugin version of the code you are making it portable and easily applied to any html element in your website. The objective of the final plugin will be to be able to create a custom tooltip of our own design on any element, using the title attribute as the source for the tooltip content.</p>
<p>Creating a jQuery plugin version makes you think a little more about the various requirements of the code to ensure that all possible variations of where/how it may be used are covered. Since you also may have less control over the CSS of where it may be used you usually need to add a little extra jQuery to set the conditions. Generally this requires adding code that gets the objects dimensions, position or content.</p>
<h3>The Tooltip Plugin Components</h3>
<p>If we look then at the various stages/components required for creating a jquery tooltips plugin that must be able to function anywhere we can break it down into the following basic components:</p>
<ul class="content-list">
<li>Dynamically generating the tooltip &#8211; this involves both the html &#8220;container&#8221; and the text content</li>
<li>The event that will trigger the tooltip to appear</li>
<li>The animation that will present the tooltip on screen</li>
<li>The animation to remove the tooltip once no longer required.</li>
</ul>
<h3>The Plugin Code</h3>
<p>Plugins basically follow the same pattern so once you have created your first jQuery plugin things get much easier. We wont go into too much detail on how plugins are constructed since there are a lot of good resources already out there on writing jQuery plugins. A good starting place is &#8211; <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">Plugins/Authoring on the jQuery website</a>.</p>
<p>The basic standard format we use is as follows:</p>
<pre class="brush: jscript; title: ; notranslate">
(function( $ ){

  $.fn.yourpluginname= function( options ) {  

    var defaults = {
      'youroption': 'default setting'
    };

    //call in the default otions
    var options = $.extend(defaults, options);

    return this.each(function() {

      // Here you add your jQuery plugin code

    });

  };
})( jQuery );
</pre>
<h4>1. Set Up The Plugin &#038; Add Our Default Options</h4>
<p>The first thing we need to do is set up the namespacing. This is an important step when developing a jQuery plugin and you need to set up the namespacing to ensure that your plugin will have a very low chance of being overwritten by another plugin using the same name.</p>
<p>We always prefix our plugins with &#8220;dc&#8221; so for our jQuery tooltips we are going to use &#8220;dcTooltip&#8221;.</p>
<p>Options allow you to add variables, which the plugin user can set themselves when the plugin initialises. This makes the plugin more flexible. For our tooltips we have determined that we would like to set up 5 different options, which all therefore need default settings:</p>
<pre class="brush: jscript; title: ; notranslate">
(function($){

    $.fn.dcTooltip = function(options) {

        //set default options
        var defaults = {
            classWrapper: 'tooltip',    // Class of tooltip container
            hoverDelay: 300,    // Delay in milliseconds before tooltip activates
            speed: 'fast',    // Speed of tooltip animation
            distance: 20,    // Distance for tooltip animation
            padLeft: 0    // Setting allowing user to manually shift the tooltip position
        };

        //call in the default otions
        var options = $.extend(defaults, options);

})(jQuery);
</pre>
<p>Now that we have the basic plugin structure in place we can get down to the jQuery code that will generate the tooltip feature.</p>
<h4>2. Dynamically Generating The Tooltip</h4>
<p>As we mentioned above we are going to get the tooltip text from the item&#8217;s &#8220;title&#8221; attribute. The text then needs to be inserted into our tooltip container, ready for the animation.</p>
<p>The HTML for the tooltip container is very simple:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;div class=&quot;tooltip&quot;&gt;
    &lt;div class=&quot;top&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;text&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>We have added the additional div tag (class = &#8220;top&#8221;) so the user can add more advanced styling.</p>
<p>In this first section of our jquery tooltips code we are going to do a number of things:</p>
<ol>
<li>Get the title attribute text insert into the tooltip container and append the tooltip HTML to the item.</li>
<li>Get the tooltip dimensions</li>
<li>Get the dimensions of the element</li>
<li>Position the tooltip by setting it&#8217;s margins. We want our tooltip to be positioned at the top and center of each element. The left margin will be based on the width of the element and the top margin based on the tooltip&#8217;s height and distance we want it to travel during the animation.</li>
<li>Set up CSS &#8211; Since our tooltips are positioned absolutely we need to make sure that the tooltip item has relative positioning. Plus we need to set our tooltip opacity to zero for the animation effect.</li>
<li>Finally &#8211; lets empty the element&#8217;s title attribute to prevent the default browser tooltip appearing.</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
    // 1. Get the text, create the tooltip and append
    var getText = $(this).attr('title');
    var $wrapper = '&lt;div class=&quot;'+defaults.classWrapper+'&quot;&gt;&lt;div class=&quot;top&quot;&gt;&lt;/div&gt;&lt;div class=&quot;text&quot;&gt;'+getText+'&lt;/div&gt;&lt;/div&gt;';
    $(this).append($wrapper);

    // 2. Get the dimensions of the tooltip
    var $tooltip = $('.'+defaults.classWrapper,this);
    var widthP = $tooltip.width();

    // 3. Get the dimensions of the element
    var widthT = $(this).width();
    var heightT = $(this).height();

    // 4. Set margins based on element dimensions and distance for animation
    var marginTop = heightT - defaults.distance;
    var marginLeft = (widthP - widthT)/2;
    marginLeft = -marginLeft + defaults.padLeft;
    $tooltip.css({marginLeft: marginLeft+'px', bottom: marginTop+'px'});

    // 5. Set the element position to relative &amp; tooltip opacity to 0
    $(this).css('position','relative');
    $tooltip.css('opacity',0);

    // 6. Remove the element's title text
    $(this).removeAttr('title');
</pre>
<p>That&#8217;s basically it for the code, which will create and set up each element&#8217;s tooltip. Each tooltip is now ready for us to add the animation effects.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h4>3. Setting Up The Hover Event</h4>
<p>Our jQuery tooltips are going to be triggered using the &#8220;hover&#8221; event. To minimise tooltips appearing when users are just moving their mouse across the screen and becoming an annoying effect, we are going to use the <a href="http://cherne.net/brian/resources/jquery.hoverIntent.html" rel="nofollow">HoverIntent plugin</a>.</p>
<p>We set up the hover event using the following code, which includes the settings required for HoverIntent:</p>
<pre class="brush: jscript; title: ; notranslate">
// Configuration settings for HoverIntent plugin
var config = {
    sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
    interval: defaults.hoverDelay, // number = milliseconds for onMouseOver polling interval
    over: linkOver, // function = onMouseOver callback (REQUIRED)
    timeout: defaults.hoverDelay, // number = milliseconds delay before onMouseOut
    out: linkOut // function = onMouseOut callback (REQUIRED)
    };

// Initialise HoverIntent
$(this).hoverIntent(config);
</pre>
<p>The above code sets the timeout and interval to be the same as our initial option settings with a default of 300 milliseconds. Users can therefore increase this by passing a higher value when the plugin is initialised.</p>
<p>Notice in the configuration settings we have declared 2 functions &#8211; &#8220;linkOver&#8221; and &#8220;linkOut&#8221;. This is where we will add out animation code, which shows/hides the tooltip HTML.</p>
<h4>4. linkOver Function To Display Tooltip</h4>
<p>Now comes the fun part where we get to add the animation code that will display our tooltip. Our animation, which shows the tooltip has 3 basic steps:</p>
<ol>
<li>First we need to &#8220;show&#8221; the tooltip since it is currently hidden using CSS.</li>
<li>Set the &#8220;bottom&#8221; position of the tooltip to the same as our marginTop variable, which we got earlier in the code.</li>
<li>Animate the plugin by moving it up &#8211; the distance is set according to our &#8220;distance&#8221; option. The speed for the animation is also set using our plugin options, which has a default value of &#8220;fast&#8221;.</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
function linkOver(){
    $tooltip.show().css({
        bottom: marginTop+'px'
    }).animate({
        bottom: defaults.distance+marginTop,
        opacity: 1
    }, defaults.speed);
}
</pre>
<h4>5. linkOut Function To Hide Tooltip</h4>
<p>Our animation for hiding the jquery tooltip only has two basic steps:</p>
<ol>
<li>Move the tooltip upwards a distance of 1.5 x our &#8220;distance&#8221; option, at the same time fading out the tooltip. Again our speed is set according to the &#8220;speed&#8221; option.</li>
<li>When the first step is complete we need to &#8220;hide&#8221; the tooltip again.</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
function linkOut(){
    $('.'+defaults.classWrapper,this).animate({
        bottom: (defaults.distance*1.5)+marginTop,
        opacity: 0
    }, defaults.speed, function() {
        $(this).hide();
    });
}
</pre>
<h3>The Complete jQuery Tooltip Plugin Code</h3>
<p>Putting all of our above components together the complete plugin code is:</p>
<pre class="brush: jscript; title: ; notranslate">
(function($){

	//define the new for the plugin ans how to call it
	$.fn.dcTooltip = function(options) {

		//set default options
		var defaults = {
			classWrapper	: 'tooltip',
			hoverDelay		: 300,
			speed       	: 'fast',
			distance		: 20,
			padLeft			: 0
		};

		//call in the default otions
		var options = $.extend(defaults, options);

		//act upon the element that is passed into the design
		return this.each(function(options){

			// 1. Get the text, create the tooltip and append
			var getText = $(this).attr('title');
			var $wrapper = '&lt;div class=&quot;'+defaults.classWrapper+'&quot;&gt;&lt;div class=&quot;top&quot;&gt;&lt;/div&gt;&lt;div class=&quot;text&quot;&gt;'+getText+'&lt;/div&gt;&lt;/div&gt;';
			$(this).append($wrapper);
			// 2. Get the dimensions of the tooltip
			var $tooltip = $('.'+defaults.classWrapper,this);
			var widthP = $tooltip.width();
			// 3. Get the dimensions of the element
			var widthT = $(this).width();
			var heightT = $(this).height();
			// 4. Set margins based on element dimensions and distance for animation
			var marginTop = heightT - defaults.distance;
			var marginLeft = (widthP - widthT)/2;
			marginLeft = -marginLeft + defaults.padLeft;
			$tooltip.css({marginLeft: marginLeft+'px', bottom: marginTop+'px'});
			// 5. Set the element position to relative &amp; tooltip opacity to 0
			$(this).css('position','relative');
			$tooltip.css('opacity',0);
			// 6. Remove the element's title text
			$(this).removeAttr(&quot;title&quot;);

                       // Configuration settings for HoverIntent plugin
			var config = {
				sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
				interval: defaults.hoverDelay, // number = milliseconds for onMouseOver polling interval
				over: linkOver, // function = onMouseOver callback (REQUIRED)
				timeout: defaults.hoverDelay, // number = milliseconds delay before onMouseOut
				out: linkOut // function = onMouseOut callback (REQUIRED)
			};

			// Initialise HoverIntent
			$(this).hoverIntent(config);

			// Hover link over
			function linkOver(){

				$tooltip.show().css({
					bottom: marginTop+'px'
                }).animate({
                    bottom: defaults.distance+marginTop,
                 opacity: 1
                }, defaults.speed);
			}

			// Hover link over
			function linkOut(){

				$('.'+defaults.classWrapper,this).animate({
                    bottom: (defaults.distance*1.5)+marginTop,
                    opacity: 0
			    }, defaults.speed, function() {
					$(this).hide();
				});
			}
		});
	};
})(jQuery);
</pre>
<p>Save your plugin file &#8211; in our case we are going to use &#8211; jquery.dctooltip.1.0.js</p>
<h3>Using Your jQuery Tooltips Plugin</h3>
<p>To use your jQuery tooltips now becomes very easy since it&#8217;s wrapped up as a plugin.</p>
<h4>1. Add the Plugin</h4>
<p>Add the plugin link to the document head as you would do with any other plugin. Don&#8217;t forget to also include the HoverIntent plugin:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.hoverIntent.minified.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.dctooltip.1.0.js&quot;&gt;&lt;/script&gt;
</pre>
<h4>2. Initialise the jQuery Tooltip Plugin</h4>
<p>To use the plugin with it&#8217;s default options you can use the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#demo-list li a').dcTooltip();
});
</pre>
<p>To change any of the default options:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#demo-list li a').dcTooltip({
        classWrapper: 'another-tooltip',
	hoverDelay: 600,
	speed: 'slow',
	distance: 40
    });
});
</pre>
<h4>3. The Tooltip CSS</h4>
<p>Our tooltip CSS is fortunately very easy. As we mentioned at the start, if you are developing a jQuery plugin for general release you want to make it easy to use and wherever possible try to avoid very specific custom styling requirements &#8211; or at least make it easy to customise.</p>
<p>In our plugin options we have allowed the user to specify the tooltip container class, which therefore enables them to have multiple styles. For our demo we will use the default class &#8211; &#8220;tooltip&#8221;.</p>
<p>There are only a few &#8220;required&#8221; CSS rules for the tooltip container, which are identified below:</p>
<pre class="brush: plain; title: ; notranslate">
.tooltip {
width: 249px;
position: absolute; /* Required */
bottom: 0; /* Required */
left: 0; /* Required */
display: none; /* Required */
font-weight: normal;
font-size: 12px;
line-height: 1.5em;
color: #000;
z-index: 50;
}
.tooltip .text {
padding: 5px 15px 35px 15px;
background: url(images/tooltip.png) no-repeat 100% 100%;
}
.tooltip .top {
height: 10px;
background: url(images/tooltip_top.png) no-repeat 100% 100%;
}
</pre>
<p><a href="/lab/jquery/demo/jquery_tooltips_plugin_demo.htm" class="demo">View jQuery Tooltips Plugin Demo</a><a href="/lab/jquery/demo/download/jquery-tooltips-plugin.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/eU2tc65Y0h4" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:104:"http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:99:"http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/";}s:7:"summary";s:870:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/"><img align="left" hspace="5" width="150" src="/media/images/jquery_tooltips_tutorial.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/jquery_tooltips_tutorial.jpg" alt="" /></p>
<p>In today&#8217;s jQuery tutorial we are going to look at creating your own jQuery tooltip plugin!</p>
<p>Whilst there are many great tooltip plugins available out there, creating your own provides a nice and relatively easy opportunity to try your hand at jquery plugins as well as some basic jquery code.</p>
<p>View jQuery Tooltips Plugin DemoDownload Source Files &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-tooltips-create-your-own-tooltip-plugin/" class="read_more">more</a></p>
<p";s:12:"atom_content";s:17423:"<p class="text-center"><img src="/media/images/jquery_tooltips_tutorial.jpg" alt="" /></p>
<p>In today&#8217;s jQuery tutorial we are going to look at creating your own jQuery tooltip plugin!</p>
<p>Whilst there are many great tooltip plugins available out there, creating your own provides a nice and relatively easy opportunity to try your hand at jquery plugins as well as some basic jquery code.</p>
<p><a href="/lab/jquery/demo/jquery_tooltips_plugin_demo.htm" class="demo">View jQuery Tooltips Plugin Demo</a><a href="/lab/jquery/demo/download/jquery-tooltips-plugin.zip" class="demo">Download Source Files</a></p>
<p class="clear">By creating a plugin version of the code you are making it portable and easily applied to any html element in your website. The objective of the final plugin will be to be able to create a custom tooltip of our own design on any element, using the title attribute as the source for the tooltip content.</p>
<p>Creating a jQuery plugin version makes you think a little more about the various requirements of the code to ensure that all possible variations of where/how it may be used are covered. Since you also may have less control over the CSS of where it may be used you usually need to add a little extra jQuery to set the conditions. Generally this requires adding code that gets the objects dimensions, position or content.</p>
<h3>The Tooltip Plugin Components</h3>
<p>If we look then at the various stages/components required for creating a jquery tooltips plugin that must be able to function anywhere we can break it down into the following basic components:</p>
<ul class="content-list">
<li>Dynamically generating the tooltip &#8211; this involves both the html &#8220;container&#8221; and the text content</li>
<li>The event that will trigger the tooltip to appear</li>
<li>The animation that will present the tooltip on screen</li>
<li>The animation to remove the tooltip once no longer required.</li>
</ul>
<h3>The Plugin Code</h3>
<p>Plugins basically follow the same pattern so once you have created your first jQuery plugin things get much easier. We wont go into too much detail on how plugins are constructed since there are a lot of good resources already out there on writing jQuery plugins. A good starting place is &#8211; <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">Plugins/Authoring on the jQuery website</a>.</p>
<p>The basic standard format we use is as follows:</p>
<pre class="brush: jscript; title: ; notranslate">
(function( $ ){

  $.fn.yourpluginname= function( options ) {  

    var defaults = {
      'youroption': 'default setting'
    };

    //call in the default otions
    var options = $.extend(defaults, options);

    return this.each(function() {

      // Here you add your jQuery plugin code

    });

  };
})( jQuery );
</pre>
<h4>1. Set Up The Plugin &#038; Add Our Default Options</h4>
<p>The first thing we need to do is set up the namespacing. This is an important step when developing a jQuery plugin and you need to set up the namespacing to ensure that your plugin will have a very low chance of being overwritten by another plugin using the same name.</p>
<p>We always prefix our plugins with &#8220;dc&#8221; so for our jQuery tooltips we are going to use &#8220;dcTooltip&#8221;.</p>
<p>Options allow you to add variables, which the plugin user can set themselves when the plugin initialises. This makes the plugin more flexible. For our tooltips we have determined that we would like to set up 5 different options, which all therefore need default settings:</p>
<pre class="brush: jscript; title: ; notranslate">
(function($){

    $.fn.dcTooltip = function(options) {

        //set default options
        var defaults = {
            classWrapper: 'tooltip',    // Class of tooltip container
            hoverDelay: 300,    // Delay in milliseconds before tooltip activates
            speed: 'fast',    // Speed of tooltip animation
            distance: 20,    // Distance for tooltip animation
            padLeft: 0    // Setting allowing user to manually shift the tooltip position
        };

        //call in the default otions
        var options = $.extend(defaults, options);

})(jQuery);
</pre>
<p>Now that we have the basic plugin structure in place we can get down to the jQuery code that will generate the tooltip feature.</p>
<h4>2. Dynamically Generating The Tooltip</h4>
<p>As we mentioned above we are going to get the tooltip text from the item&#8217;s &#8220;title&#8221; attribute. The text then needs to be inserted into our tooltip container, ready for the animation.</p>
<p>The HTML for the tooltip container is very simple:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;div class=&quot;tooltip&quot;&gt;
    &lt;div class=&quot;top&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;text&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>We have added the additional div tag (class = &#8220;top&#8221;) so the user can add more advanced styling.</p>
<p>In this first section of our jquery tooltips code we are going to do a number of things:</p>
<ol>
<li>Get the title attribute text insert into the tooltip container and append the tooltip HTML to the item.</li>
<li>Get the tooltip dimensions</li>
<li>Get the dimensions of the element</li>
<li>Position the tooltip by setting it&#8217;s margins. We want our tooltip to be positioned at the top and center of each element. The left margin will be based on the width of the element and the top margin based on the tooltip&#8217;s height and distance we want it to travel during the animation.</li>
<li>Set up CSS &#8211; Since our tooltips are positioned absolutely we need to make sure that the tooltip item has relative positioning. Plus we need to set our tooltip opacity to zero for the animation effect.</li>
<li>Finally &#8211; lets empty the element&#8217;s title attribute to prevent the default browser tooltip appearing.</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
    // 1. Get the text, create the tooltip and append
    var getText = $(this).attr('title');
    var $wrapper = '&lt;div class=&quot;'+defaults.classWrapper+'&quot;&gt;&lt;div class=&quot;top&quot;&gt;&lt;/div&gt;&lt;div class=&quot;text&quot;&gt;'+getText+'&lt;/div&gt;&lt;/div&gt;';
    $(this).append($wrapper);

    // 2. Get the dimensions of the tooltip
    var $tooltip = $('.'+defaults.classWrapper,this);
    var widthP = $tooltip.width();

    // 3. Get the dimensions of the element
    var widthT = $(this).width();
    var heightT = $(this).height();

    // 4. Set margins based on element dimensions and distance for animation
    var marginTop = heightT - defaults.distance;
    var marginLeft = (widthP - widthT)/2;
    marginLeft = -marginLeft + defaults.padLeft;
    $tooltip.css({marginLeft: marginLeft+'px', bottom: marginTop+'px'});

    // 5. Set the element position to relative &amp; tooltip opacity to 0
    $(this).css('position','relative');
    $tooltip.css('opacity',0);

    // 6. Remove the element's title text
    $(this).removeAttr('title');
</pre>
<p>That&#8217;s basically it for the code, which will create and set up each element&#8217;s tooltip. Each tooltip is now ready for us to add the animation effects.</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h4>3. Setting Up The Hover Event</h4>
<p>Our jQuery tooltips are going to be triggered using the &#8220;hover&#8221; event. To minimise tooltips appearing when users are just moving their mouse across the screen and becoming an annoying effect, we are going to use the <a href="http://cherne.net/brian/resources/jquery.hoverIntent.html" rel="nofollow">HoverIntent plugin</a>.</p>
<p>We set up the hover event using the following code, which includes the settings required for HoverIntent:</p>
<pre class="brush: jscript; title: ; notranslate">
// Configuration settings for HoverIntent plugin
var config = {
    sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
    interval: defaults.hoverDelay, // number = milliseconds for onMouseOver polling interval
    over: linkOver, // function = onMouseOver callback (REQUIRED)
    timeout: defaults.hoverDelay, // number = milliseconds delay before onMouseOut
    out: linkOut // function = onMouseOut callback (REQUIRED)
    };

// Initialise HoverIntent
$(this).hoverIntent(config);
</pre>
<p>The above code sets the timeout and interval to be the same as our initial option settings with a default of 300 milliseconds. Users can therefore increase this by passing a higher value when the plugin is initialised.</p>
<p>Notice in the configuration settings we have declared 2 functions &#8211; &#8220;linkOver&#8221; and &#8220;linkOut&#8221;. This is where we will add out animation code, which shows/hides the tooltip HTML.</p>
<h4>4. linkOver Function To Display Tooltip</h4>
<p>Now comes the fun part where we get to add the animation code that will display our tooltip. Our animation, which shows the tooltip has 3 basic steps:</p>
<ol>
<li>First we need to &#8220;show&#8221; the tooltip since it is currently hidden using CSS.</li>
<li>Set the &#8220;bottom&#8221; position of the tooltip to the same as our marginTop variable, which we got earlier in the code.</li>
<li>Animate the plugin by moving it up &#8211; the distance is set according to our &#8220;distance&#8221; option. The speed for the animation is also set using our plugin options, which has a default value of &#8220;fast&#8221;.</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
function linkOver(){
    $tooltip.show().css({
        bottom: marginTop+'px'
    }).animate({
        bottom: defaults.distance+marginTop,
        opacity: 1
    }, defaults.speed);
}
</pre>
<h4>5. linkOut Function To Hide Tooltip</h4>
<p>Our animation for hiding the jquery tooltip only has two basic steps:</p>
<ol>
<li>Move the tooltip upwards a distance of 1.5 x our &#8220;distance&#8221; option, at the same time fading out the tooltip. Again our speed is set according to the &#8220;speed&#8221; option.</li>
<li>When the first step is complete we need to &#8220;hide&#8221; the tooltip again.</li>
</ol>
<pre class="brush: jscript; title: ; notranslate">
function linkOut(){
    $('.'+defaults.classWrapper,this).animate({
        bottom: (defaults.distance*1.5)+marginTop,
        opacity: 0
    }, defaults.speed, function() {
        $(this).hide();
    });
}
</pre>
<h3>The Complete jQuery Tooltip Plugin Code</h3>
<p>Putting all of our above components together the complete plugin code is:</p>
<pre class="brush: jscript; title: ; notranslate">
(function($){

	//define the new for the plugin ans how to call it
	$.fn.dcTooltip = function(options) {

		//set default options
		var defaults = {
			classWrapper	: 'tooltip',
			hoverDelay		: 300,
			speed       	: 'fast',
			distance		: 20,
			padLeft			: 0
		};

		//call in the default otions
		var options = $.extend(defaults, options);

		//act upon the element that is passed into the design
		return this.each(function(options){

			// 1. Get the text, create the tooltip and append
			var getText = $(this).attr('title');
			var $wrapper = '&lt;div class=&quot;'+defaults.classWrapper+'&quot;&gt;&lt;div class=&quot;top&quot;&gt;&lt;/div&gt;&lt;div class=&quot;text&quot;&gt;'+getText+'&lt;/div&gt;&lt;/div&gt;';
			$(this).append($wrapper);
			// 2. Get the dimensions of the tooltip
			var $tooltip = $('.'+defaults.classWrapper,this);
			var widthP = $tooltip.width();
			// 3. Get the dimensions of the element
			var widthT = $(this).width();
			var heightT = $(this).height();
			// 4. Set margins based on element dimensions and distance for animation
			var marginTop = heightT - defaults.distance;
			var marginLeft = (widthP - widthT)/2;
			marginLeft = -marginLeft + defaults.padLeft;
			$tooltip.css({marginLeft: marginLeft+'px', bottom: marginTop+'px'});
			// 5. Set the element position to relative &amp; tooltip opacity to 0
			$(this).css('position','relative');
			$tooltip.css('opacity',0);
			// 6. Remove the element's title text
			$(this).removeAttr(&quot;title&quot;);

                       // Configuration settings for HoverIntent plugin
			var config = {
				sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
				interval: defaults.hoverDelay, // number = milliseconds for onMouseOver polling interval
				over: linkOver, // function = onMouseOver callback (REQUIRED)
				timeout: defaults.hoverDelay, // number = milliseconds delay before onMouseOut
				out: linkOut // function = onMouseOut callback (REQUIRED)
			};

			// Initialise HoverIntent
			$(this).hoverIntent(config);

			// Hover link over
			function linkOver(){

				$tooltip.show().css({
					bottom: marginTop+'px'
                }).animate({
                    bottom: defaults.distance+marginTop,
                 opacity: 1
                }, defaults.speed);
			}

			// Hover link over
			function linkOut(){

				$('.'+defaults.classWrapper,this).animate({
                    bottom: (defaults.distance*1.5)+marginTop,
                    opacity: 0
			    }, defaults.speed, function() {
					$(this).hide();
				});
			}
		});
	};
})(jQuery);
</pre>
<p>Save your plugin file &#8211; in our case we are going to use &#8211; jquery.dctooltip.1.0.js</p>
<h3>Using Your jQuery Tooltips Plugin</h3>
<p>To use your jQuery tooltips now becomes very easy since it&#8217;s wrapped up as a plugin.</p>
<h4>1. Add the Plugin</h4>
<p>Add the plugin link to the document head as you would do with any other plugin. Don&#8217;t forget to also include the HoverIntent plugin:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.hoverIntent.minified.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.dctooltip.1.0.js&quot;&gt;&lt;/script&gt;
</pre>
<h4>2. Initialise the jQuery Tooltip Plugin</h4>
<p>To use the plugin with it&#8217;s default options you can use the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#demo-list li a').dcTooltip();
});
</pre>
<p>To change any of the default options:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#demo-list li a').dcTooltip({
        classWrapper: 'another-tooltip',
	hoverDelay: 600,
	speed: 'slow',
	distance: 40
    });
});
</pre>
<h4>3. The Tooltip CSS</h4>
<p>Our tooltip CSS is fortunately very easy. As we mentioned at the start, if you are developing a jQuery plugin for general release you want to make it easy to use and wherever possible try to avoid very specific custom styling requirements &#8211; or at least make it easy to customise.</p>
<p>In our plugin options we have allowed the user to specify the tooltip container class, which therefore enables them to have multiple styles. For our demo we will use the default class &#8211; &#8220;tooltip&#8221;.</p>
<p>There are only a few &#8220;required&#8221; CSS rules for the tooltip container, which are identified below:</p>
<pre class="brush: plain; title: ; notranslate">
.tooltip {
width: 249px;
position: absolute; /* Required */
bottom: 0; /* Required */
left: 0; /* Required */
display: none; /* Required */
font-weight: normal;
font-size: 12px;
line-height: 1.5em;
color: #000;
z-index: 50;
}
.tooltip .text {
padding: 5px 15px 35px 15px;
background: url(images/tooltip.png) no-repeat 100% 100%;
}
.tooltip .top {
height: 10px;
background: url(images/tooltip_top.png) no-repeat 100% 100%;
}
</pre>
<p><a href="/lab/jquery/demo/jquery_tooltips_plugin_demo.htm" class="demo">View jQuery Tooltips Plugin Demo</a><a href="/lab/jquery/demo/download/jquery-tooltips-plugin.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=eU2tc65Y0h4:abG2Q2dGdPQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=eU2tc65Y0h4:abG2Q2dGdPQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/eU2tc65Y0h4" height="1" width="1"/>";}i:16;a:14:{s:5:"title";s:55:"WordPress Plugin Update – Vertical Accordion Menu 2.5";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/pOUsj154N7k/";s:8:"comments";s:124:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/#comments";s:7:"pubdate";s:31:"Thu, 07 Apr 2011 17:24:01 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:75:"Wordpress PluginsaccordionjQuerymega menusnavigationpluginsupdateswordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1639";s:11:"description";s:903:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest update to our WordPress plugin &#8211; jQuery vertical accordion menu version 2.5, now allows the auto-expand feature without having to use the &#8220;Save State&#8221; option.</p>
<p>Auto-expand will automatically expand sub-menus on page load using the inherent CSS classes allocated by the WordPress custom menu system. This will synchronise the accordion menu with the current page for users that &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2198:"<p>The latest update to our WordPress plugin &#8211; jQuery vertical accordion menu version 2.5, now allows the auto-expand feature without having to use the &#8220;Save State&#8221; option.</p>
<p>Auto-expand will automatically expand sub-menus on page load using the inherent CSS classes allocated by the WordPress custom menu system. This will synchronise the accordion menu with the current page for users that navigate to the page from other non-accordion links.</p>
<p>For more detailed information see the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">jQuery Vertical Accordion Menu plugin page</a> or download the plugin from WordPress &#8211; <a href="http://downloads.wordpress.org/plugin/jquery-vertical-accordion-menu.2.5.zip">jQuery Vertical Accordion Menu Widget 2.5</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/pOUsj154N7k" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:120:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"2";}s:10:"feedburner";a:1:{s:8:"origlink";s:115:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/";}s:7:"summary";s:903:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest update to our WordPress plugin &#8211; jQuery vertical accordion menu version 2.5, now allows the auto-expand feature without having to use the &#8220;Save State&#8221; option.</p>
<p>Auto-expand will automatically expand sub-menus on page load using the inherent CSS classes allocated by the WordPress custom menu system. This will synchronise the accordion menu with the current page for users that &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu-2-5/" class="read_more">more</a></p>";s:12:"atom_content";s:2198:"<p>The latest update to our WordPress plugin &#8211; jQuery vertical accordion menu version 2.5, now allows the auto-expand feature without having to use the &#8220;Save State&#8221; option.</p>
<p>Auto-expand will automatically expand sub-menus on page load using the inherent CSS classes allocated by the WordPress custom menu system. This will synchronise the accordion menu with the current page for users that navigate to the page from other non-accordion links.</p>
<p>For more detailed information see the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">jQuery Vertical Accordion Menu plugin page</a> or download the plugin from WordPress &#8211; <a href="http://downloads.wordpress.org/plugin/jquery-vertical-accordion-menu.2.5.zip">jQuery Vertical Accordion Menu Widget 2.5</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=pOUsj154N7k:SUi2H9mS8RI:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=pOUsj154N7k:SUi2H9mS8RI:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/pOUsj154N7k" height="1" width="1"/>";}i:17;a:14:{s:5:"title";s:27:"Slick jQuery Image Captions";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/7WW4PENY4tw/";s:8:"comments";s:89:"http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/#comments";s:7:"pubdate";s:31:"Thu, 07 Apr 2011 05:53:25 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:29:"jQueryanimationimagestutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1629";s:11:"description";s:779:"<a href="http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/"><img align="left" hspace="5" width="150" src="/media/images/jquery_image_captions.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/jquery_image_captions.jpg" alt="" /></p>
<p>In today&#8217;s tutorial we are going to show how you can add slick image captions to an image gallery using just a few lines of jQuery and CSS.</p>
1. Gallery HTML
<p>Our image gallery is going to just be a simple unordered list containing our image thumbnails. For the captions we will use span tags, which will contain &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:5951:"<p class="text-center"><img src="/media/images/jquery_image_captions.jpg" alt="" /></p>
<p>In today&#8217;s tutorial we are going to show how you can add slick image captions to an image gallery using just a few lines of jQuery and CSS.</p>
<h3>1. Gallery HTML</h3>
<p>Our image gallery is going to just be a simple unordered list containing our image thumbnails. For the captions we will use span tags, which will contain a header tag and our main caption text.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ul id=&quot;gallery&quot;&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_1a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 1&lt;/h3&gt;
		  This is the caption for the first image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_2a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 2&lt;/h3&gt;
		  This is the caption for the second image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_3a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 3&lt;/h3&gt;
		  This is the caption for the third image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_4a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 4&lt;/h3&gt;
		  This is the caption for the fourth image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_5a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 5&lt;/h3&gt;
		  This is the caption for the fifth image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_6a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 6&lt;/h3&gt;
		  This is the caption for the last image
		&lt;/span&gt;
	  &lt;/li&gt;
	&lt;/ul&gt;
</pre>
<h3>2. The CSS</h3>
<p>Most of our CSS is just for styling the gallery thumbnails. For our captions we are going to use absolutely positioned span tags so there are a couple of important CSS rules required to make our jquery captions work.</p>
<p>The CSS below contains some notes to identify which ones we need:</p>
<pre class="brush: plain; title: ; notranslate">
#gallery {
margin-bottom: 20px;
width: 100%;  /* Use this &amp; the overflow: hidden to clear the floated list items */
overflow: hidden;
}
#gallery li {
float: left;
margin: 0 3px 3px 0;
width: 214px;
height: 131px;
position: relative; /* Required for positioning of span tags */
color: #000;
}
#gallery li img {
padding: 6px;
background: #ececec;
border: 1px solid #ccc;
}
#gallery li h3 {
font: bold 11px Helvetica,Arial,sans-serif;
padding: 0;
margin: 0;
}
#gallery li span {
display: none;  /* Required to hide the captions */
font-size: 11px;
position: absolute; /* Required for positioning to overlay over image */
bottom: 7px;
left: 7px;
padding: 5px;
background: url(images/bg_white_trans.png) repeat;
width: 190px; /* Since we are using absolute positioning we need to set the width */
line-height: 1.2em;
}
</pre>
<p>With the above CSS we are hiding the span tags using display: none &#8211; this means that if the user does not have javascript enabled they will be unable to see the captions. If you want to change this you can set the span tags to not display using jQuery instead.</p>
<h3>3. The jQuery Code &#8211; Fading Captions</h3>
<p>Our jQuery is very simple and we can use the hover event, which allows us to add effects for both mouseover and mouseout:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#gallery li').hover(
        function(){$('span',this).fadeIn('slow');},
        function(){$('span',this).fadeOut('slow');
    });
});
</pre>
<h3>4. The jQuery Code &#8211; Sliding Captions</h3>
<p>One of the great things about jQuery is its built-in effects, so if we want to change the caption animation from fade in/out to sliding we just change the code as follows:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#gallery li').hover(
        function(){$('span',this).slideToggle('slow');},
        function(){$('span',this).slideToggle('slow');
    });
});
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_slick_jquery_captions.htm" class="demo">View jQuery Fading Caption Demo</a><a href="/lab/jquery/demo/jquery_demo_slick_jquery_sliding_captions.htm" class="demo">View jQuery Sliding Caption Demo</a><a href="/lab/jquery/demo/download/jquery-slick-image-captions.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/7WW4PENY4tw" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:85:"http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:80:"http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/";}s:7:"summary";s:779:"<a href="http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/"><img align="left" hspace="5" width="150" src="/media/images/jquery_image_captions.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/jquery_image_captions.jpg" alt="" /></p>
<p>In today&#8217;s tutorial we are going to show how you can add slick image captions to an image gallery using just a few lines of jQuery and CSS.</p>
1. Gallery HTML
<p>Our image gallery is going to just be a simple unordered list containing our image thumbnails. For the captions we will use span tags, which will contain &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/slick-jquery-image-captions/" class="read_more">more</a></p>";s:12:"atom_content";s:5951:"<p class="text-center"><img src="/media/images/jquery_image_captions.jpg" alt="" /></p>
<p>In today&#8217;s tutorial we are going to show how you can add slick image captions to an image gallery using just a few lines of jQuery and CSS.</p>
<h3>1. Gallery HTML</h3>
<p>Our image gallery is going to just be a simple unordered list containing our image thumbnails. For the captions we will use span tags, which will contain a header tag and our main caption text.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ul id=&quot;gallery&quot;&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_1a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 1&lt;/h3&gt;
		  This is the caption for the first image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_2a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 2&lt;/h3&gt;
		  This is the caption for the second image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_3a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 3&lt;/h3&gt;
		  This is the caption for the third image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_4a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 4&lt;/h3&gt;
		  This is the caption for the fourth image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_5a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 5&lt;/h3&gt;
		  This is the caption for the fifth image
		&lt;/span&gt;
	  &lt;/li&gt;
	  &lt;li&gt;
	    &lt;img src=&quot;images/gallery/thumb/img_6a.jpg&quot; alt=&quot;&quot; /&gt;
		&lt;span&gt;
		  &lt;h3&gt;Image 6&lt;/h3&gt;
		  This is the caption for the last image
		&lt;/span&gt;
	  &lt;/li&gt;
	&lt;/ul&gt;
</pre>
<h3>2. The CSS</h3>
<p>Most of our CSS is just for styling the gallery thumbnails. For our captions we are going to use absolutely positioned span tags so there are a couple of important CSS rules required to make our jquery captions work.</p>
<p>The CSS below contains some notes to identify which ones we need:</p>
<pre class="brush: plain; title: ; notranslate">
#gallery {
margin-bottom: 20px;
width: 100%;  /* Use this &amp; the overflow: hidden to clear the floated list items */
overflow: hidden;
}
#gallery li {
float: left;
margin: 0 3px 3px 0;
width: 214px;
height: 131px;
position: relative; /* Required for positioning of span tags */
color: #000;
}
#gallery li img {
padding: 6px;
background: #ececec;
border: 1px solid #ccc;
}
#gallery li h3 {
font: bold 11px Helvetica,Arial,sans-serif;
padding: 0;
margin: 0;
}
#gallery li span {
display: none;  /* Required to hide the captions */
font-size: 11px;
position: absolute; /* Required for positioning to overlay over image */
bottom: 7px;
left: 7px;
padding: 5px;
background: url(images/bg_white_trans.png) repeat;
width: 190px; /* Since we are using absolute positioning we need to set the width */
line-height: 1.2em;
}
</pre>
<p>With the above CSS we are hiding the span tags using display: none &#8211; this means that if the user does not have javascript enabled they will be unable to see the captions. If you want to change this you can set the span tags to not display using jQuery instead.</p>
<h3>3. The jQuery Code &#8211; Fading Captions</h3>
<p>Our jQuery is very simple and we can use the hover event, which allows us to add effects for both mouseover and mouseout:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#gallery li').hover(
        function(){$('span',this).fadeIn('slow');},
        function(){$('span',this).fadeOut('slow');
    });
});
</pre>
<h3>4. The jQuery Code &#8211; Sliding Captions</h3>
<p>One of the great things about jQuery is its built-in effects, so if we want to change the caption animation from fade in/out to sliding we just change the code as follows:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
    $('#gallery li').hover(
        function(){$('span',this).slideToggle('slow');},
        function(){$('span',this).slideToggle('slow');
    });
});
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_slick_jquery_captions.htm" class="demo">View jQuery Fading Caption Demo</a><a href="/lab/jquery/demo/jquery_demo_slick_jquery_sliding_captions.htm" class="demo">View jQuery Sliding Caption Demo</a><a href="/lab/jquery/demo/download/jquery-slick-image-captions.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=7WW4PENY4tw:Ar1YQfnQ244:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=7WW4PENY4tw:Ar1YQfnQ244:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/7WW4PENY4tw" height="1" width="1"/>";}i:18;a:14:{s:5:"title";s:54:"Open External Links In New Browser Window Using jQuery";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/nAETgXpvz4Y/";s:8:"comments";s:116:"http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/#comments";s:7:"pubdate";s:31:"Wed, 06 Apr 2011 03:16:29 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:47:"jQueryTutorialsWebsite Codingnavigationtutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1623";s:11:"description";s:799:"<a href="http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Since one of our earlier posts &#8211; How To Open Links In a New Browser Window we have had requests at how this can be automated so that only external links are opened in a new window without having to add class &#8220;external&#8221; to every link.</p>
<p>This can be done in a couple of ways depending on how your links &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:3224:"<p>Since one of our earlier posts &#8211; <a href="/blog/index.php/jquery/open-links-in-new-browser-window-using-jquery/">How To Open Links In a New Browser Window</a> we have had requests at how this can be automated so that only external links are opened in a new window without having to add class &#8220;external&#8221; to every link.</p>
<p>This can be done in a couple of ways depending on how your links are structured. As well as giving the code for external links, this tutorial also shows a good example of how to combine and use jQuery selectors to filter:</p>
<h3>Method 1 &#8211; Links With Complete URLs</h3>
<p>If your site uses complete URLs, including the domain name, for all links we can identify the external links by selecting those that do not contain your domain name. For this we use a combination of both the not() and :contains() selectors:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function($){
    $('a').not(':contains(http://www.designchemical.com)').click(function(){
        this.target = &quot;_blank&quot;;
    });
});
</pre>
<p>The above code will therefore identify any link that does not contain http://www.designchemical.com and open this in a new browser window.</p>
<p><a href="/lab/jquery/demo/jquery_demo_open_external_links_new_browser_window_1.htm" class="demo">View Demo 1</a></p>
<h3 class="clear">Method 2 &#8211; Only External Links Use Complete URLs</h3>
<p>If only external links use complete URLs we can just use contains() selector to identify those links with http or https:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function($){
    $('a:contains(http)').click(function(){
        this.target = &quot;_blank&quot;;
    });
});
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_open_external_links_new_browser_window_2.htm" class="demo">View Demo 2</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/nAETgXpvz4Y" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:112:"http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:107:"http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/";}s:7:"summary";s:799:"<a href="http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Since one of our earlier posts &#8211; How To Open Links In a New Browser Window we have had requests at how this can be automated so that only external links are opened in a new window without having to add class &#8220;external&#8221; to every link.</p>
<p>This can be done in a couple of ways depending on how your links &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/open-external-links-in-new-browser-window-using-jquery/" class="read_more">more</a></p>";s:12:"atom_content";s:3224:"<p>Since one of our earlier posts &#8211; <a href="/blog/index.php/jquery/open-links-in-new-browser-window-using-jquery/">How To Open Links In a New Browser Window</a> we have had requests at how this can be automated so that only external links are opened in a new window without having to add class &#8220;external&#8221; to every link.</p>
<p>This can be done in a couple of ways depending on how your links are structured. As well as giving the code for external links, this tutorial also shows a good example of how to combine and use jQuery selectors to filter:</p>
<h3>Method 1 &#8211; Links With Complete URLs</h3>
<p>If your site uses complete URLs, including the domain name, for all links we can identify the external links by selecting those that do not contain your domain name. For this we use a combination of both the not() and :contains() selectors:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function($){
    $('a').not(':contains(http://www.designchemical.com)').click(function(){
        this.target = &quot;_blank&quot;;
    });
});
</pre>
<p>The above code will therefore identify any link that does not contain http://www.designchemical.com and open this in a new browser window.</p>
<p><a href="/lab/jquery/demo/jquery_demo_open_external_links_new_browser_window_1.htm" class="demo">View Demo 1</a></p>
<h3 class="clear">Method 2 &#8211; Only External Links Use Complete URLs</h3>
<p>If only external links use complete URLs we can just use contains() selector to identify those links with http or https:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function($){
    $('a:contains(http)').click(function(){
        this.target = &quot;_blank&quot;;
    });
});
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_open_external_links_new_browser_window_2.htm" class="demo">View Demo 2</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=nAETgXpvz4Y:It2kE6lTWkA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=nAETgXpvz4Y:It2kE6lTWkA:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/nAETgXpvz4Y" height="1" width="1"/>";}i:19;a:14:{s:5:"title";s:34:"New jQuery Plugin – jQuery Slick";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/-8gjzf_TIsM/";s:8:"comments";s:100:"http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/#comments";s:7:"pubdate";s:31:"Mon, 04 Apr 2011 09:10:16 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:68:"jQuery PluginsjQuerylayoutmenunavigationpluginssliderwidgetwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1619";s:11:"description";s:823:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The new jQuery Slick plugin creates sticky, slide out tabs from any HTML content. Great for adding sticky navigation or forms to any website.</p>
<p>Very quick and easy to use &#8211; just wrap the sticky content with a div tag with an ID and initialise the plugin. Features of the plugin include:</p>
<ul class="content-list">
<li>The ability to position the sticky</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2313:"<p>The new jQuery Slick plugin creates sticky, slide out tabs from any HTML content. Great for adding sticky navigation or forms to any website.</p>
<p>Very quick and easy to use &#8211; just wrap the sticky content with a div tag with an ID and initialise the plugin. Features of the plugin include:</p>
<ul class="content-list">
<li>The ability to position the sticky tab anywhere using a combination of &#8220;location&#8221; and &#8220;offset&#8221; settings</li>
<li>Set animation speed</li>
<li>Set the tab text</li>
<li>Auto-close option, which will automatically slide closed if elsewhere in the browser screen is clicked</li>
<li>Multiple slick tabs per page.</li>
</ul>
<p>Checkout the <a href="/lab/jquery-slick-plugin/getting-started/">jQuery Slick plugin project page</a> for more information.</p>
<p>Also see our <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/">WordPress Slick Menu plugin version</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/-8gjzf_TIsM" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:96:"http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"6";}s:10:"feedburner";a:1:{s:8:"origlink";s:91:"http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/";}s:7:"summary";s:823:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The new jQuery Slick plugin creates sticky, slide out tabs from any HTML content. Great for adding sticky navigation or forms to any website.</p>
<p>Very quick and easy to use &#8211; just wrap the sticky content with a div tag with an ID and initialise the plugin. Features of the plugin include:</p>
<ul class="content-list">
<li>The ability to position the sticky</li></ul><p> &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/new-jquery-plugin-jquery-slick/" class="read_more">more</a></p>";s:12:"atom_content";s:2313:"<p>The new jQuery Slick plugin creates sticky, slide out tabs from any HTML content. Great for adding sticky navigation or forms to any website.</p>
<p>Very quick and easy to use &#8211; just wrap the sticky content with a div tag with an ID and initialise the plugin. Features of the plugin include:</p>
<ul class="content-list">
<li>The ability to position the sticky tab anywhere using a combination of &#8220;location&#8221; and &#8220;offset&#8221; settings</li>
<li>Set animation speed</li>
<li>Set the tab text</li>
<li>Auto-close option, which will automatically slide closed if elsewhere in the browser screen is clicked</li>
<li>Multiple slick tabs per page.</li>
</ul>
<p>Checkout the <a href="/lab/jquery-slick-plugin/getting-started/">jQuery Slick plugin project page</a> for more information.</p>
<p>Also see our <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/">WordPress Slick Menu plugin version</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=-8gjzf_TIsM:dwOzWVtNb90:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=-8gjzf_TIsM:dwOzWVtNb90:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/-8gjzf_TIsM" height="1" width="1"/>";}i:20;a:14:{s:5:"title";s:52:"jQuery Plugin Update – Vertical Accordion Menu 2.5";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/9gpFoeJ-apk/";s:8:"comments";s:118:"http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/#comments";s:7:"pubdate";s:31:"Tue, 29 Mar 2011 07:20:19 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:57:"jQuery PluginsaccordionjQuerymenunavigationpluginsupdates";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1610";s:11:"description";s:861:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest version of the jQuery vertical accordion menu plugin now includes the added option to auto-expand selected sub-menus on page load based on their parent li tag CSS class.</p>
<p>This enhanced feature allows you to synchronise the accordion menu with the page for users that navigate to the page from other non-accordion links.</p>
<p>For more detailed information see the &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2186:"<p>The latest version of the jQuery vertical accordion menu plugin now includes the added option to auto-expand selected sub-menus on page load based on their parent li tag CSS class.</p>
<p>This enhanced feature allows you to synchronise the accordion menu with the page for users that navigate to the page from other non-accordion links.</p>
<p>For more detailed information see the <a href="/lab/jquery-vertical-accordion-menu-plugin/getting-started/">jQuery Vertical Accordion Menu plugin page</a> or checkout the <a href="/lab/jquery-vertical-accordion-menu-plugin/examples/">accordion menu demos</a>.</p>
<p>If you are looking for the WordPress plugin version please refer to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress Accordion Menu Plugin</a> page.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/9gpFoeJ-apk" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:114:"http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"13";}s:10:"feedburner";a:1:{s:8:"origlink";s:109:"http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/";}s:7:"summary";s:861:"<a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest version of the jQuery vertical accordion menu plugin now includes the added option to auto-expand selected sub-menus on page load based on their parent li tag CSS class.</p>
<p>This enhanced feature allows you to synchronise the accordion menu with the page for users that navigate to the page from other non-accordion links.</p>
<p>For more detailed information see the &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery-plugins/jquery-plugin-update-vertical-accordion-menu-2-5/" class="read_more">more</a></p>";s:12:"atom_content";s:2186:"<p>The latest version of the jQuery vertical accordion menu plugin now includes the added option to auto-expand selected sub-menus on page load based on their parent li tag CSS class.</p>
<p>This enhanced feature allows you to synchronise the accordion menu with the page for users that navigate to the page from other non-accordion links.</p>
<p>For more detailed information see the <a href="/lab/jquery-vertical-accordion-menu-plugin/getting-started/">jQuery Vertical Accordion Menu plugin page</a> or checkout the <a href="/lab/jquery-vertical-accordion-menu-plugin/examples/">accordion menu demos</a>.</p>
<p>If you are looking for the WordPress plugin version please refer to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress Accordion Menu Plugin</a> page.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=9gpFoeJ-apk:JGatVHFs_3k:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=9gpFoeJ-apk:JGatVHFs_3k:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/9gpFoeJ-apk" height="1" width="1"/>";}i:21;a:14:{s:5:"title";s:46:"jQuery & WordPress Plugin Update – Mega Menu";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/x3sst8dZfgk/";s:8:"comments";s:113:"http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/#comments";s:7:"pubdate";s:31:"Sun, 27 Mar 2011 08:40:20 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:94:"jQuery PluginsWordpress PluginshorizontaljQuerymega menusmenunavigationpluginsupdateswordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1606";s:11:"description";s:835:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest version of the mega drop down menu plugin for both jQuery and WordPress now includes the option to use either &#8220;click&#8221; or &#8220;hover&#8221; to activate the sub-menus. With the new click option the menu now stays open until the user either clicks on a link or clicks elsewhere on the screen outside of the sub-menu, offers greater useability. &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2628:"<p>The latest version of the mega drop down menu plugin for both jQuery and WordPress now includes the option to use either &#8220;click&#8221; or &#8220;hover&#8221; to activate the sub-menus. With the new click option the menu now stays open until the user either clicks on a link or clicks elsewhere on the screen outside of the sub-menu, offers greater useability.</p>
<h3 class="margin-bottom">jQuery Plugin</h3>
<h4>Plugin Project Page</h4>
<p><a href="/lab/jquery-mega-drop-down-menu-plugin/getting-started/">http://www.designchemical.com/lab/jquery-mega-drop-down-menu-plugin/getting-started/</a></p>
<h4>Demo Page</h4>
<p><a href="/lab/jquery-mega-drop-down-menu-plugin/examples/">http://www.designchemical.com/lab/jquery-mega-drop-down-menu-plugin/examples/</a></p>
<h3 class="margin-bottom">WordPress Plugin jQuery Drop Down Mega Menu Widget</h3>
<h4>Plugin Project Page</h4>
<p><a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/">http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/</a></p>
<h4>WordPress Demos</h4>
<p><a href="/lab/demo-wordpress-jquery-mega-menu-plugin/">http://www.designchemical.com/lab/demo-wordpress-jquery-mega-menu-plugin/</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/x3sst8dZfgk" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:109:"http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:104:"http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/";}s:7:"summary";s:835:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest version of the mega drop down menu plugin for both jQuery and WordPress now includes the option to use either &#8220;click&#8221; or &#8220;hover&#8221; to activate the sub-menus. With the new click option the menu now stays open until the user either clicks on a link or clicks elsewhere on the screen outside of the sub-menu, offers greater useability. &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/jquery-wordpress-plugin-update-mega-menu/" class="read_more">more</a></p>";s:12:"atom_content";s:2628:"<p>The latest version of the mega drop down menu plugin for both jQuery and WordPress now includes the option to use either &#8220;click&#8221; or &#8220;hover&#8221; to activate the sub-menus. With the new click option the menu now stays open until the user either clicks on a link or clicks elsewhere on the screen outside of the sub-menu, offers greater useability.</p>
<h3 class="margin-bottom">jQuery Plugin</h3>
<h4>Plugin Project Page</h4>
<p><a href="/lab/jquery-mega-drop-down-menu-plugin/getting-started/">http://www.designchemical.com/lab/jquery-mega-drop-down-menu-plugin/getting-started/</a></p>
<h4>Demo Page</h4>
<p><a href="/lab/jquery-mega-drop-down-menu-plugin/examples/">http://www.designchemical.com/lab/jquery-mega-drop-down-menu-plugin/examples/</a></p>
<h3 class="margin-bottom">WordPress Plugin jQuery Drop Down Mega Menu Widget</h3>
<h4>Plugin Project Page</h4>
<p><a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/">http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-drop-down-mega-menu-widget/</a></p>
<h4>WordPress Demos</h4>
<p><a href="/lab/demo-wordpress-jquery-mega-menu-plugin/">http://www.designchemical.com/lab/demo-wordpress-jquery-mega-menu-plugin/</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=x3sst8dZfgk:MNVMD8Xx3Jc:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=x3sst8dZfgk:MNVMD8Xx3Jc:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/x3sst8dZfgk" height="1" width="1"/>";}i:22;a:14:{s:5:"title";s:52:"jQuery Image Swap Gallery with Just 3 Lines of Code!";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/B6SbVZKVHio/";s:8:"comments";s:87:"http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/#comments";s:7:"pubdate";s:31:"Sat, 26 Mar 2011 08:34:10 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:35:"jQueryTutorialsWebsite Codingimages";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1571";s:11:"description";s:792:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/"><img align="left" hspace="5" width="150" src="/media/images/jquery_image_swap_gallery.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/jquery_image_swap_gallery.jpg" alt="" /></p>
<p>Our earlier post, Quick and Easy jQuery Image Swap has always been popular, so today we are going to use this code to create the ultimate jQuery image swap gallery with just 3 lines of code and 2 lines of CSS.</p>
<p>And here is the jQuery code:</p>
<p>View The DemoDownload Source Files</p>
<p class="clear">A great example of how &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:5449:"<p class="text-center"><img src="/media/images/jquery_image_swap_gallery.jpg" alt="" /></p>
<p>Our earlier post, <a href="/blog/index.php/jquery/quick-and-easy-jquery-image-swap/">Quick and Easy jQuery Image Swap</a> has always been popular, so today we are going to use this code to create the ultimate jQuery image swap gallery with just 3 lines of code and 2 lines of CSS.</p>
<p>And here is the jQuery code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;#gallery li img&quot;).hover(function(){
	$('#main-img').attr('src',$(this).attr('src').replace('thumb/', ''));
});
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_image_swap_gallery.htm" class="demo">View The Demo</a><a href="/lab/jquery/demo/download/ultimate-jquery-image-swap-gallery.zip" class="demo">Download Source Files</a></p>
<p class="clear">A great example of how jQuery can be extremely simple and effective.</p>
<h3>The Gallery HTML</h3>
<p>All we need for the gallery is the initial, main image and an unordered list holding the image thumbnails.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;div id=&quot;gallery&quot;&gt;
	&lt;img src=&quot;images/gallery/img_1.jpg&quot; alt=&quot;&quot; id=&quot;main-img&quot; /&gt;
	&lt;ul&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_3.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_4.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_5.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_6.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_7.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;
</pre>
<p>Our thumbnail images have the same file name as the larger versions and these are put into a folder called &#8220;thumb&#8221;, which is in the same directory as the main images &#8211; this is important for our gallery code to work as the image URL is obtained by getting the thumbnail URL and removing the &#8220;/thumb&#8221;.</p>
<h3>Styling The Gallery</h3>
<p>Definitely not rocket science here &#8211; a total of 2 CSS rules:</p>
<pre class="brush: plain; title: ; notranslate">
#gallery li {
display: inline;
margin-right: 3px;
}
#gallery #main-img {
background: url(images/bg_img.png) no-repeat 0 0;
padding: 26px;
}
</pre>
<h3>Adding Image Preload Function</h3>
<p>Although the 3 lines of jQuery will work, we can make the gallery far better if we use our <a href="/blog/index.php/jquery/create-image-preloader-image-swap-function-jquery/">image preload function</a>, from our previous tutorial.</p>
<p>The complete jQuery for the gallery plus preload:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
	// Image swap on hover
	$(&quot;#gallery li img&quot;).hover(function(){
		$('#main-img').attr('src',$(this).attr('src').replace('thumb/', ''));
	});
	// Image preload
	var imgSwap = [];
	 $(&quot;#gallery li img&quot;).each(function(){
		imgUrl = this.src.replace('thumb/', '');
		imgSwap.push(imgUrl);
	});
	$(imgSwap).preload();
});
$.fn.preload = function() {
    this.each(function(){
        $('&lt;img/&gt;')[0].src = this;
    });
}
</pre>
<p>And that&#8217;s basically all there is to it.</p>
<p>Although it may not have fancy fade/zoom/slide/etc effects and look particularly slick, it is a nice and easy example of how to apply the jQuery image swap on hover function.</p>
<p>You can obviously improve on the features but if you are looking for a simple solution without having to understand setting up and styling a complicated gallery plugin (and lets face it some of them are complicated!), then this is about as simple as it gets!</p>
<p><a href="/lab/jquery/demo/jquery_demo_image_swap_gallery.htm" class="demo">View The Demo</a><a href="/lab/jquery/demo/download/ultimate-jquery-image-swap-gallery.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/B6SbVZKVHio" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:83:"http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"26";}s:10:"feedburner";a:1:{s:8:"origlink";s:78:"http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/";}s:7:"summary";s:792:"<a href="http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/"><img align="left" hspace="5" width="150" src="/media/images/jquery_image_swap_gallery.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a><p class="text-center"><img src="/media/images/jquery_image_swap_gallery.jpg" alt="" /></p>
<p>Our earlier post, Quick and Easy jQuery Image Swap has always been popular, so today we are going to use this code to create the ultimate jQuery image swap gallery with just 3 lines of code and 2 lines of CSS.</p>
<p>And here is the jQuery code:</p>
<p>View The DemoDownload Source Files</p>
<p class="clear">A great example of how &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/" class="read_more">more</a></p>";s:12:"atom_content";s:5449:"<p class="text-center"><img src="/media/images/jquery_image_swap_gallery.jpg" alt="" /></p>
<p>Our earlier post, <a href="/blog/index.php/jquery/quick-and-easy-jquery-image-swap/">Quick and Easy jQuery Image Swap</a> has always been popular, so today we are going to use this code to create the ultimate jQuery image swap gallery with just 3 lines of code and 2 lines of CSS.</p>
<p>And here is the jQuery code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;#gallery li img&quot;).hover(function(){
	$('#main-img').attr('src',$(this).attr('src').replace('thumb/', ''));
});
</pre>
<p><a href="/lab/jquery/demo/jquery_demo_image_swap_gallery.htm" class="demo">View The Demo</a><a href="/lab/jquery/demo/download/ultimate-jquery-image-swap-gallery.zip" class="demo">Download Source Files</a></p>
<p class="clear">A great example of how jQuery can be extremely simple and effective.</p>
<h3>The Gallery HTML</h3>
<p>All we need for the gallery is the initial, main image and an unordered list holding the image thumbnails.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;div id=&quot;gallery&quot;&gt;
	&lt;img src=&quot;images/gallery/img_1.jpg&quot; alt=&quot;&quot; id=&quot;main-img&quot; /&gt;
	&lt;ul&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_3.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_4.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_5.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_6.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;img src=&quot;images/gallery/thumb/img_7.jpg&quot; alt=&quot;&quot; /&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;
</pre>
<p>Our thumbnail images have the same file name as the larger versions and these are put into a folder called &#8220;thumb&#8221;, which is in the same directory as the main images &#8211; this is important for our gallery code to work as the image URL is obtained by getting the thumbnail URL and removing the &#8220;/thumb&#8221;.</p>
<h3>Styling The Gallery</h3>
<p>Definitely not rocket science here &#8211; a total of 2 CSS rules:</p>
<pre class="brush: plain; title: ; notranslate">
#gallery li {
display: inline;
margin-right: 3px;
}
#gallery #main-img {
background: url(images/bg_img.png) no-repeat 0 0;
padding: 26px;
}
</pre>
<h3>Adding Image Preload Function</h3>
<p>Although the 3 lines of jQuery will work, we can make the gallery far better if we use our <a href="/blog/index.php/jquery/create-image-preloader-image-swap-function-jquery/">image preload function</a>, from our previous tutorial.</p>
<p>The complete jQuery for the gallery plus preload:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
	// Image swap on hover
	$(&quot;#gallery li img&quot;).hover(function(){
		$('#main-img').attr('src',$(this).attr('src').replace('thumb/', ''));
	});
	// Image preload
	var imgSwap = [];
	 $(&quot;#gallery li img&quot;).each(function(){
		imgUrl = this.src.replace('thumb/', '');
		imgSwap.push(imgUrl);
	});
	$(imgSwap).preload();
});
$.fn.preload = function() {
    this.each(function(){
        $('&lt;img/&gt;')[0].src = this;
    });
}
</pre>
<p>And that&#8217;s basically all there is to it.</p>
<p>Although it may not have fancy fade/zoom/slide/etc effects and look particularly slick, it is a nice and easy example of how to apply the jQuery image swap on hover function.</p>
<p>You can obviously improve on the features but if you are looking for a simple solution without having to understand setting up and styling a complicated gallery plugin (and lets face it some of them are complicated!), then this is about as simple as it gets!</p>
<p><a href="/lab/jquery/demo/jquery_demo_image_swap_gallery.htm" class="demo">View The Demo</a><a href="/lab/jquery/demo/download/ultimate-jquery-image-swap-gallery.zip" class="demo">Download Source Files</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=B6SbVZKVHio:gSnsGrSNyu0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=B6SbVZKVHio:gSnsGrSNyu0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/B6SbVZKVHio" height="1" width="1"/>";}i:23;a:14:{s:5:"title";s:64:"WordPress Tutorial – Create Your own Custom Vertical Mega Menu";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/RVZT9Vb6w20/";s:8:"comments";s:133:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/#comments";s:7:"pubdate";s:31:"Fri, 25 Mar 2011 17:21:39 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:133:"jQuery PluginsTutorialsWebsite CodingWordpress PluginsWordpress TipsCSSjQuerymega menusmenunavigationpluginstutorialverticalwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1546";s:11:"description";s:924:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/"><img align="left" hspace="5" width="150" src="/media/images/custom_vertical_mega_menu.jpg" class="alignleft wp-post-image tfe" alt="Custom Vertical Mega Menu" title="" /></a><p><img src="/media/images/custom_vertical_mega_menu.jpg" alt="Custom Vertical Mega Menu" /></p>
<p>In our last menu tutorial we looked at creating a custom style sheet for the mega drop down menu plugin. Today we are going to go through the jQuery Vertical Mega Menu Plugin and how we can use the plugin&#8217;s built in CSS classes combined with the inherent WordPress menu classes to create a completely customised menu.</p>
<p>The sample &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:12395:"<p><img src="/media/images/custom_vertical_mega_menu.jpg" alt="Custom Vertical Mega Menu" /></p>
<p>In our last menu tutorial we looked at <a href="/blog/index.php/tutorials/wordpress-tutorial-create-your-own-custom-mega-menu-styles/">creating a custom style sheet for the mega drop down menu</a> plugin. Today we are going to go through the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu/">jQuery Vertical Mega Menu Plugin</a> and how we can use the plugin&#8217;s built in CSS classes combined with the inherent WordPress menu classes to create a completely customised menu.</p>
<p>The sample CSS file in the demo can also be used as a template for your own WordPress vertical mega menu styles:</p>
<p><a href="/lab/demo-custom-vertical-mega-menu-styling/" class="demo">View Final Menu Demo</a><a href="/lab/jquery/demo/download/custom-vertical-mega-menu-1.zip" class="demo">Download source code</a></p>
<p class="clear">This tutorial assumes that you understand at least the basics of CSS and HTML, know how to create a custom menu using the admin system in WordPress 3.0 and, of course, use our Vertical Mega menu plugin as some of the CSS selectors are specific to this plugin.</p>
<h3>The Objectives</h3>
<p>For the tutorial we will create a mega menu for a store selling sports clothing/equipment. In addition to the basic minimum styles required to create the vertical mega menu we will add a drop-shadow to the menu container and also customise all 3 of the sub-menus.</p>
<h4>Footwear Custom Menu</h4>
<p>For this menu we will customise each row to add labels showing Mens/Ladies as well as add background images for each of the product groups.</p>
<p class="text-center"><img src="/media/images/custom_vertical_mega_menu_1.jpg" alt="Footwear Custom Menu" /></p>
<h4>Jackets Sub-Menu</h4>
<p>Usually the mega menu works best with 3 levels of navigation. The jackets sub-menu gives an example of how you can still customise the mega menu with only 2 menu levels.</p>
<p class="text-center"><img src="/media/images/custom_vertical_mega_menu_2.jpg" alt="Jackets Custom Menu" /></p>
<h4>Sports Bags Sub-Menu</h4>
<p>Add background images to each sub-menu.</p>
<p class="text-center"><img src="/media/images/custom_vertical_mega_menu_3.jpg" alt="Sports Bags Custom Menu" /></p>
<h3>Creating The Vertical Mega Menu</h3>
<h4>The Basic Mega Menu CSS</h4>
<p>The following CSS code gives the minimum styling required to create the standard mega menu structure without any specifc styles for the menu options. Using this code our menu looks like this:</p>
<p class="text-center"><img src="/media/images/basic_vertical_mega_menu_1.jpg" alt="Basic Mega Menu" /></p>
<p><a href="/lab/demo-basic-vertical-mega-menu-styling/" class="demo">View Basic Mega Menu Demo</a></p>
<p class="clear">Still mega but definitely not as pretty!</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>The CSS contains notes on any essential styles</p>
<pre class="brush: plain; title: ; notranslate">
/* Main menu styling */
.dcjq-vertical-mega-menu .menu li a {
display: block;
color: #000;
padding: 11px 38px 11px 25px;
text-shadow: 1px 1px 1px #fff;
text-decoration: none;
border-bottom: 1px solid #999;
background: url(images/bg_nav.png) repeat-x 0 0;
}
.dcjq-vertical-mega-menu .menu li a:hover, .dcjq-vertical-mega-menu .menu li.mega-hover a {
background-position: 0 -40px;
color: #fff;
text-shadow: 1px 1px 1px #000;
}

/* Add arrow icon to parent links */
.dcjq-vertical-mega-menu .menu li a.dc-mega {
position: relative; /* Required since icons are positioned absolutely */
}
.dcjq-vertical-mega-menu .menu li a .dc-mega-icon {
display: block;
position: absolute;
top: 14px;
right: 15px;
width: 6px;
height: 8px;
background: url(images/arrow_right.png) no-repeat -6px 0;
}
.dcjq-vertical-mega-menu .menu li a:hover .dc-mega-icon, .dcjq-vertical-mega-menu .menu li.mega-hover a .dc-mega-icon {
background-position: 0 0;
}

/* Mega menu container */
.dcjq-vertical-mega-menu .menu li .sub-container {
position: absolute; /* Required */
overflow: hidden;
background: url(images/bg_menu.png) no-repeat 100% 100%; /* Add the drop shadow image */
padding: 0 13px 17px 0; /* Padding for drop shadow */
}
.dcjq-vertical-mega-menu .menu li .sub-container .sub {
border: none;
padding: 15px 15px 5px 15px;
background: #fff url(images/bg_grad_top.png) repeat-x 0 0;
border-top: 1px solid #ccc;
border-right: 1px solid #bbb;
border-bottom: 1px solid #bbb;
border-left: 1px solid #ccc;
}
.dcjq-vertical-mega-menu .menu li .sub .row {
width: 100%; overflow: hidden; /* Required to clear floats for each row */
}
.dcjq-vertical-mega-menu .menu li .sub li {
float: none;
width: 160px; /* Set sub-menu width */
font-weight: normal;
}
.dcjq-vertical-mega-menu .menu li .sub li.mega-hdr {
float: left; /* Required */
margin: 0 5px 10px 5px;
}
.dcjq-vertical-mega-menu .menu li .sub a, .dcjq-vertical-mega-menu .menu.left li .sub a {
background: none;
border: none;
text-shadow: none;
float: none;
color: #000;
display: block;
text-decoration: none;
font-size: 0.9em;
margin-bottom: 0;
}
.dcjq-vertical-mega-menu .menu li .sub li.mega-hdr a.mega-hdr-a { /* Sub-menu headings */
background: url(images/bg_nav.png) repeat-x 0 -40px;
padding: 5px;
margin-bottom: 5px;
text-transform: uppercase;
font-weight: bold;
color: #fff;
text-shadow: 1px 1px 1px #000;
text-align: center;
}
.dcjq-vertical-mega-menu .menu li .sub li.mega-hdr a.mega-hdr-a:hover {
color: #000;
text-shadow: none;
}
.dcjq-vertical-mega-menu .menu .sub li.mega-hdr li {
margin-bottom: 3px;
}
.dcjq-vertical-mega-menu .menu .sub li a {
padding: 3px 3px 3px 15px;
background: url(images/bullet.png) no-repeat 3px 8px;
font-weight: normal;
text-transform: capitalize; font-size: 12px;
}
.dcjq-vertical-mega-menu .menu .sub li a:hover {
color: #fff;
background: #000 url(images/bullet_white.png) no-repeat 5px 8px;
}
.dcjq-vertical-mega-menu .menu .sub ul li {
padding-right: 0;
}

/* Styling for menu items with only 2 levels */
.dcjq-vertical-mega-menu .menu li .sub-container.non-mega .sub {
padding: 10px;
background: #fff;
}
.dcjq-vertical-mega-menu .menu li .sub-container.non-mega li {
padding: 0;
margin: 0;
width: 150px;
float: none;
}
</pre>
<h4>Custom Styling</h4>
<p>In order to customise the menu you will need the menu item ID&#8217;s that WordPress automatically assigns to the HTML list items. To get these you can view the source code for the menu in your own site. The ID follows the format &#8220;menu-item-#&#8221;, where # is a unique number assigned by WordPress.</p>
<p>It can get a little confusing wading through the source code so it&#8217;s best to work out first which items need to have additional CSS rules. The list items that will be customised and their ID&#8217;s in our demo are:</p>
<ul class="content-list">
<li>Footwear (ID menu-item-1) &#8211; For adding the &#8220;Mens&#8221; &amp; &#8220;Ladies&#8221; labels to the rows</li>
<li>Nike Mens (ID menu-item-4)</li>
<li>Adidas Mens (ID menu-item-6)</li>
<li>Gola Mens (ID menu-item-7)</li>
<li>Nike Ladies (ID menu-item-8)</li>
<li>Adidas Ladies (ID menu-item-10)</li>
<li>Gola Ladies (ID menu-item-11)</li>
</ul>
<ul class="content-list">
<li>Jackets (ID menu-item-2) &#8211; Overide the standard styling for only 2 levels of navigation</li>
<li>Jacket 1 (ID menu-item-12)</li>
<li>Jacket 2 (ID menu-item-13)</li>
<li>Jacket 3 (ID menu-item-14)</li>
</ul>
<ul class="content-list">
<li>Sports Bags (ID menu-item-3) &#8211; Add padding to top of all bag sub-menus</li>
<li>Golf Bags (ID menu-item-15)</li>
<li>Sports Bags (ID menu-item-17)</li>
<li>Tennis Bags (ID menu-item-18)</li>
</ul>
<h4>Custom CSS For Footwear</h4>
<pre class="brush: plain; title: ; notranslate">
/* Footwear */
.dcjq-vertical-mega-menu .menu li#menu-item-1 .sub .row {
padding: 10px 10px 0 40px; /* Pad the rows to add the background labels */
margin-bottom: 10px;
border: 1px solid #ccc;
background: url(images/mens.png) no-repeat 0 center; /* Mens row background image */
}
.dcjq-vertical-mega-menu .menu li#menu-item-1 .sub .row.last {
background-image: url(images/ladies.png); /* Ladies row background image */
}
.dcjq-vertical-mega-menu .menu li#menu-item-1 .sub li.mega-hdr {
padding: 75px 0 0; /* Padding for top of each sub-menu for background images */
}

/* Add the background images */
li#menu-item-4.mega-hdr {background: url(images/nike.png) no-repeat center 0;}
li#menu-item-6.mega-hdr {background: url(images/adidas_1.jpg) no-repeat center 0;}
li#menu-item-7.mega-hdr {background: url(images/gola_1.jpg) no-repeat center 0;}
li#menu-item-8.mega-hdr {background: url(images/nike_2.jpg) no-repeat center 0;}
li#menu-item-10.mega-hdr {background: url(images/adidas_2.jpg) no-repeat center 0;}
li#menu-item-11.mega-hdr {background: url(images/gola_2.jpg) no-repeat center 0;}
</pre>
<h4>Custom CSS For Jackets</h4>
<p>The jackets are slightly different to the other 2 since the menu only have 2 levels of navigation. The CSS below will float each item and create a larger menu container.</p>
<pre class="brush: plain; title: ; notranslate">
/* Jackets */
.dcjq-vertical-mega-menu .menu li#menu-item-2 .sub-container.non-mega .sub {
width: 480px; /* Required to overide styling for 2-levels */
height: 180px; /* Required */
padding: 20px 10px 10px;
}
.dcjq-vertical-mega-menu .menu li#menu-item-2 .sub-container.non-mega li {
float: left;
}
li#menu-item-12, li#menu-item-13, li#menu-item-14{
padding: 150px 0 0; /* Padding for top of each sub-menu for background images */
margin-right: 10px;
}

/* Add the background images */
li#menu-item-12 {background: url(images/jacket_1.jpg) no-repeat center 0;}
li#menu-item-13 {background: url(images/jacket_2.jpg) no-repeat center 0;}
li#menu-item-14 {background: url(images/jacket_3.jpg) no-repeat center 0;}
</pre>
<h4>Custom CSS For Sports Bags</h4>
<pre class="brush: plain; title: ; notranslate">
/* Sports Bags */
li#menu-item-3 li.mega-hdr {
padding: 120px 0 0; /* Padding for top of each sub-menu for background images */
}

/* Add the background images */
li#menu-item-15.mega-hdr {background: url(images/bag_1.jpg) no-repeat center 0;}
li#menu-item-17.mega-hdr {background: url(images/bag_3.jpg) no-repeat center 0;}
li#menu-item-18.mega-hdr {background: url(images/bag_4.jpg) no-repeat center 0;}
</pre>
<p>That&#8217;s basically it! Using the above techniques you can pretty much customise the menu to suite most requirements.</p>
<p>Download the source code below for a complete working copies of both the basic and customised menus.</p>
<p><a href="/lab/demo-custom-vertical-mega-menu-styling/" class="demo">View Final Menu Demo</a><a href="/lab/jquery/demo/download/custom-vertical-mega-menu-1.zip" class="demo">Download source code</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/RVZT9Vb6w20" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:129:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"4";}s:10:"feedburner";a:1:{s:8:"origlink";s:124:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/";}s:7:"summary";s:924:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/"><img align="left" hspace="5" width="150" src="/media/images/custom_vertical_mega_menu.jpg" class="alignleft wp-post-image tfe" alt="Custom Vertical Mega Menu" title="" /></a><p><img src="/media/images/custom_vertical_mega_menu.jpg" alt="Custom Vertical Mega Menu" /></p>
<p>In our last menu tutorial we looked at creating a custom style sheet for the mega drop down menu plugin. Today we are going to go through the jQuery Vertical Mega Menu Plugin and how we can use the plugin&#8217;s built in CSS classes combined with the inherent WordPress menu classes to create a completely customised menu.</p>
<p>The sample &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-tutorial-create-your-own-custom-vertical-mega-menu/" class="read_more">more</a></p>";s:12:"atom_content";s:12395:"<p><img src="/media/images/custom_vertical_mega_menu.jpg" alt="Custom Vertical Mega Menu" /></p>
<p>In our last menu tutorial we looked at <a href="/blog/index.php/tutorials/wordpress-tutorial-create-your-own-custom-mega-menu-styles/">creating a custom style sheet for the mega drop down menu</a> plugin. Today we are going to go through the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-mega-menu/">jQuery Vertical Mega Menu Plugin</a> and how we can use the plugin&#8217;s built in CSS classes combined with the inherent WordPress menu classes to create a completely customised menu.</p>
<p>The sample CSS file in the demo can also be used as a template for your own WordPress vertical mega menu styles:</p>
<p><a href="/lab/demo-custom-vertical-mega-menu-styling/" class="demo">View Final Menu Demo</a><a href="/lab/jquery/demo/download/custom-vertical-mega-menu-1.zip" class="demo">Download source code</a></p>
<p class="clear">This tutorial assumes that you understand at least the basics of CSS and HTML, know how to create a custom menu using the admin system in WordPress 3.0 and, of course, use our Vertical Mega menu plugin as some of the CSS selectors are specific to this plugin.</p>
<h3>The Objectives</h3>
<p>For the tutorial we will create a mega menu for a store selling sports clothing/equipment. In addition to the basic minimum styles required to create the vertical mega menu we will add a drop-shadow to the menu container and also customise all 3 of the sub-menus.</p>
<h4>Footwear Custom Menu</h4>
<p>For this menu we will customise each row to add labels showing Mens/Ladies as well as add background images for each of the product groups.</p>
<p class="text-center"><img src="/media/images/custom_vertical_mega_menu_1.jpg" alt="Footwear Custom Menu" /></p>
<h4>Jackets Sub-Menu</h4>
<p>Usually the mega menu works best with 3 levels of navigation. The jackets sub-menu gives an example of how you can still customise the mega menu with only 2 menu levels.</p>
<p class="text-center"><img src="/media/images/custom_vertical_mega_menu_2.jpg" alt="Jackets Custom Menu" /></p>
<h4>Sports Bags Sub-Menu</h4>
<p>Add background images to each sub-menu.</p>
<p class="text-center"><img src="/media/images/custom_vertical_mega_menu_3.jpg" alt="Sports Bags Custom Menu" /></p>
<h3>Creating The Vertical Mega Menu</h3>
<h4>The Basic Mega Menu CSS</h4>
<p>The following CSS code gives the minimum styling required to create the standard mega menu structure without any specifc styles for the menu options. Using this code our menu looks like this:</p>
<p class="text-center"><img src="/media/images/basic_vertical_mega_menu_1.jpg" alt="Basic Mega Menu" /></p>
<p><a href="/lab/demo-basic-vertical-mega-menu-styling/" class="demo">View Basic Mega Menu Demo</a></p>
<p class="clear">Still mega but definitely not as pretty!</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>The CSS contains notes on any essential styles</p>
<pre class="brush: plain; title: ; notranslate">
/* Main menu styling */
.dcjq-vertical-mega-menu .menu li a {
display: block;
color: #000;
padding: 11px 38px 11px 25px;
text-shadow: 1px 1px 1px #fff;
text-decoration: none;
border-bottom: 1px solid #999;
background: url(images/bg_nav.png) repeat-x 0 0;
}
.dcjq-vertical-mega-menu .menu li a:hover, .dcjq-vertical-mega-menu .menu li.mega-hover a {
background-position: 0 -40px;
color: #fff;
text-shadow: 1px 1px 1px #000;
}

/* Add arrow icon to parent links */
.dcjq-vertical-mega-menu .menu li a.dc-mega {
position: relative; /* Required since icons are positioned absolutely */
}
.dcjq-vertical-mega-menu .menu li a .dc-mega-icon {
display: block;
position: absolute;
top: 14px;
right: 15px;
width: 6px;
height: 8px;
background: url(images/arrow_right.png) no-repeat -6px 0;
}
.dcjq-vertical-mega-menu .menu li a:hover .dc-mega-icon, .dcjq-vertical-mega-menu .menu li.mega-hover a .dc-mega-icon {
background-position: 0 0;
}

/* Mega menu container */
.dcjq-vertical-mega-menu .menu li .sub-container {
position: absolute; /* Required */
overflow: hidden;
background: url(images/bg_menu.png) no-repeat 100% 100%; /* Add the drop shadow image */
padding: 0 13px 17px 0; /* Padding for drop shadow */
}
.dcjq-vertical-mega-menu .menu li .sub-container .sub {
border: none;
padding: 15px 15px 5px 15px;
background: #fff url(images/bg_grad_top.png) repeat-x 0 0;
border-top: 1px solid #ccc;
border-right: 1px solid #bbb;
border-bottom: 1px solid #bbb;
border-left: 1px solid #ccc;
}
.dcjq-vertical-mega-menu .menu li .sub .row {
width: 100%; overflow: hidden; /* Required to clear floats for each row */
}
.dcjq-vertical-mega-menu .menu li .sub li {
float: none;
width: 160px; /* Set sub-menu width */
font-weight: normal;
}
.dcjq-vertical-mega-menu .menu li .sub li.mega-hdr {
float: left; /* Required */
margin: 0 5px 10px 5px;
}
.dcjq-vertical-mega-menu .menu li .sub a, .dcjq-vertical-mega-menu .menu.left li .sub a {
background: none;
border: none;
text-shadow: none;
float: none;
color: #000;
display: block;
text-decoration: none;
font-size: 0.9em;
margin-bottom: 0;
}
.dcjq-vertical-mega-menu .menu li .sub li.mega-hdr a.mega-hdr-a { /* Sub-menu headings */
background: url(images/bg_nav.png) repeat-x 0 -40px;
padding: 5px;
margin-bottom: 5px;
text-transform: uppercase;
font-weight: bold;
color: #fff;
text-shadow: 1px 1px 1px #000;
text-align: center;
}
.dcjq-vertical-mega-menu .menu li .sub li.mega-hdr a.mega-hdr-a:hover {
color: #000;
text-shadow: none;
}
.dcjq-vertical-mega-menu .menu .sub li.mega-hdr li {
margin-bottom: 3px;
}
.dcjq-vertical-mega-menu .menu .sub li a {
padding: 3px 3px 3px 15px;
background: url(images/bullet.png) no-repeat 3px 8px;
font-weight: normal;
text-transform: capitalize; font-size: 12px;
}
.dcjq-vertical-mega-menu .menu .sub li a:hover {
color: #fff;
background: #000 url(images/bullet_white.png) no-repeat 5px 8px;
}
.dcjq-vertical-mega-menu .menu .sub ul li {
padding-right: 0;
}

/* Styling for menu items with only 2 levels */
.dcjq-vertical-mega-menu .menu li .sub-container.non-mega .sub {
padding: 10px;
background: #fff;
}
.dcjq-vertical-mega-menu .menu li .sub-container.non-mega li {
padding: 0;
margin: 0;
width: 150px;
float: none;
}
</pre>
<h4>Custom Styling</h4>
<p>In order to customise the menu you will need the menu item ID&#8217;s that WordPress automatically assigns to the HTML list items. To get these you can view the source code for the menu in your own site. The ID follows the format &#8220;menu-item-#&#8221;, where # is a unique number assigned by WordPress.</p>
<p>It can get a little confusing wading through the source code so it&#8217;s best to work out first which items need to have additional CSS rules. The list items that will be customised and their ID&#8217;s in our demo are:</p>
<ul class="content-list">
<li>Footwear (ID menu-item-1) &#8211; For adding the &#8220;Mens&#8221; &amp; &#8220;Ladies&#8221; labels to the rows</li>
<li>Nike Mens (ID menu-item-4)</li>
<li>Adidas Mens (ID menu-item-6)</li>
<li>Gola Mens (ID menu-item-7)</li>
<li>Nike Ladies (ID menu-item-8)</li>
<li>Adidas Ladies (ID menu-item-10)</li>
<li>Gola Ladies (ID menu-item-11)</li>
</ul>
<ul class="content-list">
<li>Jackets (ID menu-item-2) &#8211; Overide the standard styling for only 2 levels of navigation</li>
<li>Jacket 1 (ID menu-item-12)</li>
<li>Jacket 2 (ID menu-item-13)</li>
<li>Jacket 3 (ID menu-item-14)</li>
</ul>
<ul class="content-list">
<li>Sports Bags (ID menu-item-3) &#8211; Add padding to top of all bag sub-menus</li>
<li>Golf Bags (ID menu-item-15)</li>
<li>Sports Bags (ID menu-item-17)</li>
<li>Tennis Bags (ID menu-item-18)</li>
</ul>
<h4>Custom CSS For Footwear</h4>
<pre class="brush: plain; title: ; notranslate">
/* Footwear */
.dcjq-vertical-mega-menu .menu li#menu-item-1 .sub .row {
padding: 10px 10px 0 40px; /* Pad the rows to add the background labels */
margin-bottom: 10px;
border: 1px solid #ccc;
background: url(images/mens.png) no-repeat 0 center; /* Mens row background image */
}
.dcjq-vertical-mega-menu .menu li#menu-item-1 .sub .row.last {
background-image: url(images/ladies.png); /* Ladies row background image */
}
.dcjq-vertical-mega-menu .menu li#menu-item-1 .sub li.mega-hdr {
padding: 75px 0 0; /* Padding for top of each sub-menu for background images */
}

/* Add the background images */
li#menu-item-4.mega-hdr {background: url(images/nike.png) no-repeat center 0;}
li#menu-item-6.mega-hdr {background: url(images/adidas_1.jpg) no-repeat center 0;}
li#menu-item-7.mega-hdr {background: url(images/gola_1.jpg) no-repeat center 0;}
li#menu-item-8.mega-hdr {background: url(images/nike_2.jpg) no-repeat center 0;}
li#menu-item-10.mega-hdr {background: url(images/adidas_2.jpg) no-repeat center 0;}
li#menu-item-11.mega-hdr {background: url(images/gola_2.jpg) no-repeat center 0;}
</pre>
<h4>Custom CSS For Jackets</h4>
<p>The jackets are slightly different to the other 2 since the menu only have 2 levels of navigation. The CSS below will float each item and create a larger menu container.</p>
<pre class="brush: plain; title: ; notranslate">
/* Jackets */
.dcjq-vertical-mega-menu .menu li#menu-item-2 .sub-container.non-mega .sub {
width: 480px; /* Required to overide styling for 2-levels */
height: 180px; /* Required */
padding: 20px 10px 10px;
}
.dcjq-vertical-mega-menu .menu li#menu-item-2 .sub-container.non-mega li {
float: left;
}
li#menu-item-12, li#menu-item-13, li#menu-item-14{
padding: 150px 0 0; /* Padding for top of each sub-menu for background images */
margin-right: 10px;
}

/* Add the background images */
li#menu-item-12 {background: url(images/jacket_1.jpg) no-repeat center 0;}
li#menu-item-13 {background: url(images/jacket_2.jpg) no-repeat center 0;}
li#menu-item-14 {background: url(images/jacket_3.jpg) no-repeat center 0;}
</pre>
<h4>Custom CSS For Sports Bags</h4>
<pre class="brush: plain; title: ; notranslate">
/* Sports Bags */
li#menu-item-3 li.mega-hdr {
padding: 120px 0 0; /* Padding for top of each sub-menu for background images */
}

/* Add the background images */
li#menu-item-15.mega-hdr {background: url(images/bag_1.jpg) no-repeat center 0;}
li#menu-item-17.mega-hdr {background: url(images/bag_3.jpg) no-repeat center 0;}
li#menu-item-18.mega-hdr {background: url(images/bag_4.jpg) no-repeat center 0;}
</pre>
<p>That&#8217;s basically it! Using the above techniques you can pretty much customise the menu to suite most requirements.</p>
<p>Download the source code below for a complete working copies of both the basic and customised menus.</p>
<p><a href="/lab/demo-custom-vertical-mega-menu-styling/" class="demo">View Final Menu Demo</a><a href="/lab/jquery/demo/download/custom-vertical-mega-menu-1.zip" class="demo">Download source code</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=RVZT9Vb6w20:Bq2bczCbj24:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=RVZT9Vb6w20:Bq2bczCbj24:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/RVZT9Vb6w20" height="1" width="1"/>";}i:24;a:14:{s:5:"title";s:53:"WordPress Plugin Update – jQuery Accordion Menu 2.4";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/6ctzEaJc77M/";s:8:"comments";s:122:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/#comments";s:7:"pubdate";s:31:"Wed, 23 Mar 2011 22:24:23 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:77:"Wordpress PluginsaccordionjQuerymenunavigationpluginsupdatesverticalwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1541";s:11:"description";s:888:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Based on recent feedback we have decided to launch the latest update to our jQuery vertical accordion menu plugin for WordPress. The latest version (2.4) now includes the option to auto-expand the accordion menu according to the users current page/post.</p>
<p>This now greatly enhances the WordPress accordion menu by automatically following the inherent WordPress menu system for tracking the users &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2523:"<p>Based on recent feedback we have decided to launch the latest update to our jQuery vertical accordion menu plugin for WordPress. The latest version (2.4) now includes the option to auto-expand the accordion menu according to the users current page/post.</p>
<p>This now greatly enhances the WordPress accordion menu by automatically following the inherent WordPress menu system for tracking the users location, using the &#8220;current-menu-ancestor&#8221; CSS class to identify which sub-menus should be open. Very useful for keeping the menu in sync with users who browse to pages via other links.</p>
<p>To use this new feature check the &#8220;Auto Expand Based on Current Page/Item&#8221; box in the accordion menu widget control panel. The feature requires the &#8220;Save Menu State&#8221; option to be checked in order to work.</p>
<p>See the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress Plugin &#8211; jQuery Vertical Accordion Menu</a> project page for more information, or <a href="http://downloads.wordpress.org/plugin/jquery-vertical-accordion-menu.2.4.zip">Download Version 2.4</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/6ctzEaJc77M" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:118:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"2";}s:10:"feedburner";a:1:{s:8:"origlink";s:113:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/";}s:7:"summary";s:888:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Based on recent feedback we have decided to launch the latest update to our jQuery vertical accordion menu plugin for WordPress. The latest version (2.4) now includes the option to auto-expand the accordion menu according to the users current page/post.</p>
<p>This now greatly enhances the WordPress accordion menu by automatically following the inherent WordPress menu system for tracking the users &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-jquery-accordion-menu-2-4/" class="read_more">more</a></p>";s:12:"atom_content";s:2523:"<p>Based on recent feedback we have decided to launch the latest update to our jQuery vertical accordion menu plugin for WordPress. The latest version (2.4) now includes the option to auto-expand the accordion menu according to the users current page/post.</p>
<p>This now greatly enhances the WordPress accordion menu by automatically following the inherent WordPress menu system for tracking the users location, using the &#8220;current-menu-ancestor&#8221; CSS class to identify which sub-menus should be open. Very useful for keeping the menu in sync with users who browse to pages via other links.</p>
<p>To use this new feature check the &#8220;Auto Expand Based on Current Page/Item&#8221; box in the accordion menu widget control panel. The feature requires the &#8220;Save Menu State&#8221; option to be checked in order to work.</p>
<p>See the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">WordPress Plugin &#8211; jQuery Vertical Accordion Menu</a> project page for more information, or <a href="http://downloads.wordpress.org/plugin/jquery-vertical-accordion-menu.2.4.zip">Download Version 2.4</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=6ctzEaJc77M:TC7oK9LR-kI:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=6ctzEaJc77M:TC7oK9LR-kI:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/6ctzEaJc77M" height="1" width="1"/>";}i:25;a:14:{s:5:"title";s:55:"WordPress Plugin Update – Vertical Accordion Menu 2.3";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/DYBo8CF4Ong/";s:8:"comments";s:134:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-%e2%80%93-vertical-accordion-menu-2-3/#comments";s:7:"pubdate";s:31:"Mon, 21 Mar 2011 05:41:11 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:77:"jQueryWordpress Pluginsaccordionmenunavigationpluginsupdatesverticalwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1533";s:11:"description";s:671:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-%e2%80%93-vertical-accordion-menu-2-3/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>We have had several comments regarding problems using Cufon text with the jQuery Vertical Acccordion Menu plugin. This latest update to the plugin now allows you to use Cufon fonts with the accordion menu, starting with version 2.3.</p>
<p>Update the accordion plugin via your plugin admin panel or click to download version 2.3.</p>
";s:7:"content";a:1:{s:7:"encoded";s:1782:"<p>We have had several comments regarding problems using Cufon text with the jQuery Vertical Acccordion Menu plugin. This latest update to the plugin now allows you to use Cufon fonts with the accordion menu, starting with version 2.3.</p>
<p>Update the accordion plugin via your plugin admin panel or <a href="http://downloads.wordpress.org/plugin/jquery-vertical-accordion-menu.2.3.zip">click to download version 2.3</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/DYBo8CF4Ong" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:130:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-%e2%80%93-vertical-accordion-menu-2-3/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"0";}s:10:"feedburner";a:1:{s:8:"origlink";s:125:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-%e2%80%93-vertical-accordion-menu-2-3/";}s:7:"summary";s:671:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-%e2%80%93-vertical-accordion-menu-2-3/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>We have had several comments regarding problems using Cufon text with the jQuery Vertical Acccordion Menu plugin. This latest update to the plugin now allows you to use Cufon fonts with the accordion menu, starting with version 2.3.</p>
<p>Update the accordion plugin via your plugin admin panel or click to download version 2.3.</p>
";s:12:"atom_content";s:1782:"<p>We have had several comments regarding problems using Cufon text with the jQuery Vertical Acccordion Menu plugin. This latest update to the plugin now allows you to use Cufon fonts with the accordion menu, starting with version 2.3.</p>
<p>Update the accordion plugin via your plugin admin panel or <a href="http://downloads.wordpress.org/plugin/jquery-vertical-accordion-menu.2.3.zip">click to download version 2.3</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=DYBo8CF4Ong:65v6pFlPa54:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=DYBo8CF4Ong:65v6pFlPa54:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/DYBo8CF4Ong" height="1" width="1"/>";}i:26;a:14:{s:5:"title";s:45:"WordPress Plugin – jQuery Slick Menu Widget";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/gRbtqtIPGp0/";s:8:"comments";s:114:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/#comments";s:7:"pubdate";s:31:"Sat, 19 Mar 2011 18:40:10 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:89:"jQueryWordpress Pluginshorizontallayoutmenunavigationpluginssliderverticalwidgetwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1526";s:11:"description";s:825:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/"><img align="left" hspace="5" width="150" src="/media/images/screenshot-1-jquery-slick-menu-plugin.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p><strong>Updated September 13th 2011</strong></p>
<p>The jQuery Slick Menu plugin creates sticky, sliding menus from any custom WordPress menu available with WordPress 3.0. Using this plugin you can add links/menus for items that you want to highlight and always be available for your users.</p>
<p>The plugin can handle multiple slick menus on each page and the location of each widget menu &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:10533:"<p><strong>Updated September 13th 2011</strong></p>
<p>The jQuery Slick Menu plugin creates sticky, sliding menus from any custom WordPress menu available with WordPress 3.0. Using this plugin you can add links/menus for items that you want to highlight and always be available for your users.</p>
<p>The plugin can handle multiple slick menus on each page and the location of each widget menu can be easily configured using a combination of the &#8220;location&#8221; and &#8220;offset&#8221; options available in each slick menu&#8217;s widget control panel.</p>
<p>The menu plugin also includes the feature to open/close the sliding menu panel using external text links, which can be added to the content using shortcodes.</p>
<p><a href="/lab/demo-wordpress-jquery-slick-menu-plugin/">View JQuery Slick Menu Demo</a></p>
<p><a href="http://downloads.wordpress.org/plugin/jquery-slick-menu.1.3.1.zip" rel="nofollow">Download JQuery Slick Menu Widget 1.3.1 (7,259)</a></p>

<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `jquery-vertical-mega-menu` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>In the widgets section, select the jQuery Slick Menu widget and add to one of your widget areas</li>
<li>Select one of the WP menus, set the required settings and save your widget</li>
</ol>
<h3>Useage</h3>
<p>In order to use the slick menu plugin you will need the following:</p>
<h4>A WordPress custom menu</h4>
<p>Either use an existing menu or set one up via the menu option in WordPress admin.</p>
<h4>Widget area</h4>
<p>Either use an existing widget area in your WordPress theme or create a new widget area. The location is not critical since the plugin automatically removes the menu from the widget location in the page and sets it according to the location and offset settings.</p>
<p>For more information on how to add a new widget to your WordPress theme see our follow up WordPress tutorial &#8211; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">&#8220;Adding A Widget Area To Your Theme Files&#8221;</a>.</p>
<h4>Create Your Slick Menu</h4>
<p>To create your sticky sliding menu go to the widget admin page and drag the &#8220;jQuery Slick Menu&#8221; widget to the desired widget area. Then select your custom menu from the drop down list in the widget control panel.</p>
<p>Click &#8220;save&#8221; to activate the widget.</p>
<h3>Configuring Your Widget</h3>
<p>The widget has several settings, which can be used to customise your slick menu:</p>
<h4>Tab Text</h4>
<p>Enter the text that you would like to use for the jquery slick menu tab.</p>
<h4>Location</h4>
<p>This is the location of where you want the slide out menu to appear in the browser window. There are 6 different locations to choose from:</p>
<ul class="content-list">
<li>Top Left &#8211; menu slides down from the top of the browser window</li>
<li>Top Right</li>
<li>Bottom Left &#8211; menu slides up from the bottom of the browser window</li>
<li>Bottom Right</li>
<li>Left &#8211; menu slides out from the left of the browser window</li>
<li>Right &#8211; menu slides out from the right of the browser window</li>
</ul>
<p>See the <a href="/lab/demo-wordpress-jquery-slick-menu-plugin/">jquery slick menu demo page</a> for examples.</p>
<h4>Offset</h4>
<p>The number of pixels that the slick menu is positioned from the edge of the browser window &#8211; .e.g if location is &#8220;Top-Left&#8221; and offset is 50 the menu will be positioned along the top, 50 pixels from the left of the browser edge.</p>
<h4>Auto-Close Menu</h4>
<p>Check this option to automatically close any open menus when the user clicks anywhere in the browser</p>
<h4>Animation Speed</h4>
<p>The speed at which the sliding menu will open/close</p>
<h4>Skin</h4>
<p>12 different sample skins are available to either use &#8220;out of the box&#8221; or to use as examples of css for styling your own slick menu. 4 of the skins match those used in the <a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">Slick Contact Forms Plugin</a>.</p>
<p>Note: For the actual menu styling inside the slick box the menu will follow your theme file styles. The skins will style the slider tab and the slick box.</p>
<h3>Shortcodes</h3>
<p>The plugin also includes the ability to open and close the sliding menu using external links, embedded in your website content. These can be added to the page using shortcodes:</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link]
</pre>
<p>Default link, which will toggle the sliding menu open/closed with the link text &#8220;Click Here&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link text=&quot;Open Menu&quot;]
</pre>
<p>Toggle the sliding menu open/closed with the link text &#8220;Open Menu&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link action=&quot;open&quot;]
</pre>
<p>Open the menu with the default link text &#8220;Click Here&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link action=&quot;close&quot;]
</pre>
<p>Close the sliding menu tab with the default link text &#8220;Click Here&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link action=&quot;close&quot; text=&quot;Close Sliding Menu&quot;]
</pre>
<p>Close the menu tab with the link text &#8220;Close Sliding Menu&#8221;</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p>For a complete list of questions and answers please check out our <a href="/blog/index.php/frequently-asked-questions/jquery-slick-menu/">jQuery Slick Menu Frequently Asked Questions</a> section.</p>
<p>Many issues that can crop up with installing and using the plugin with different themes have been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demo jQuery Slick Menu</h3>
<p><a href="/lab/demo-wordpress-jquery-slick-menu-plugin/">http://designchemical.com/lab/demo-wordpress-jquery-slick-menu-plugin/</a></p>
<h3>Download The Plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/jquery-slick-menu.1.3.1.zip" rel="nofollow">Download JQuery Slick Menu Widget 1.3.1 (7,259)</a></p>

<p>If you liked the slick menu widget you may also like:</p>
<h4><a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/">WordPress Floating Menu Plugin</a></h4>
<p>Create floating, sticky tabs with slide out menus.</p>
<h4><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">WordPress Slick Contact Forms Plugin</a></h4>
<p>Add sticky or floating, slide-out, customisable contact forms to any widget area.</p>
<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/jquery-slick-menu/" rel="nofollow">wordpress.org</a>.</strong></p>
<p>
If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for the slick menu let us know via comments, email or our online contact form.</p>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form-donate" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="EDWNSWDWKPVB4">
<input type="hidden" name="on0" value="Amount">
<input type="hidden" name="os0" maxlength="60">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:none" name="submit" alt="Donate" />
</form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Updates</h3>
<h4>Version 1.3.1 &#8211; 13th September 2011</h4>
<ul class="content-list">
<li>Fixed: Validation error</li>
</ul>
<h4>Version 1.3 &#8211; 15th June 2011</h4>
<ul class="content-list">
<li>Added: Shortcodes for adding external text links to open and close the sliding menu panel</li>
<li>Added: 4 additional skins to match the <a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">Slick Contact Forms WordPress Plugin</a>.</li>
</ul>
<h4>Version 1.2 &#8211; 31st May 2011</h4>
<ul class="content-list">
<li>Fixed: Bug with positioning left/right in Safari</li>
</ul>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/screenshot-1-jquery-slick-menu-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget in edit mode</strong></p>
<p class="text-center"><img src="/media/images/screenshot-2-jquery-slick-menu-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget Options For Locations of Slick Menu Tab</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/gRbtqtIPGp0" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:110:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"37";}s:10:"feedburner";a:1:{s:8:"origlink";s:105:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/";}s:7:"summary";s:825:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/"><img align="left" hspace="5" width="150" src="/media/images/screenshot-1-jquery-slick-menu-plugin.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p><strong>Updated September 13th 2011</strong></p>
<p>The jQuery Slick Menu plugin creates sticky, sliding menus from any custom WordPress menu available with WordPress 3.0. Using this plugin you can add links/menus for items that you want to highlight and always be available for your users.</p>
<p>The plugin can handle multiple slick menus on each page and the location of each widget menu &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-slick-menu-widget/" class="read_more">more</a></p>";s:12:"atom_content";s:10533:"<p><strong>Updated September 13th 2011</strong></p>
<p>The jQuery Slick Menu plugin creates sticky, sliding menus from any custom WordPress menu available with WordPress 3.0. Using this plugin you can add links/menus for items that you want to highlight and always be available for your users.</p>
<p>The plugin can handle multiple slick menus on each page and the location of each widget menu can be easily configured using a combination of the &#8220;location&#8221; and &#8220;offset&#8221; options available in each slick menu&#8217;s widget control panel.</p>
<p>The menu plugin also includes the feature to open/close the sliding menu panel using external text links, which can be added to the content using shortcodes.</p>
<p><a href="/lab/demo-wordpress-jquery-slick-menu-plugin/">View JQuery Slick Menu Demo</a></p>
<p><a href="http://downloads.wordpress.org/plugin/jquery-slick-menu.1.3.1.zip" rel="nofollow">Download JQuery Slick Menu Widget 1.3.1 (7,259)</a></p>

<h3>Installation</h3>
<ol>
<li>Upload the plugin through `Plugins > Add New > Upload` interface or upload `jquery-vertical-mega-menu` folder to the `/wp-content/plugins/` directory</li>
<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress</li>
<li>In the widgets section, select the jQuery Slick Menu widget and add to one of your widget areas</li>
<li>Select one of the WP menus, set the required settings and save your widget</li>
</ol>
<h3>Useage</h3>
<p>In order to use the slick menu plugin you will need the following:</p>
<h4>A WordPress custom menu</h4>
<p>Either use an existing menu or set one up via the menu option in WordPress admin.</p>
<h4>Widget area</h4>
<p>Either use an existing widget area in your WordPress theme or create a new widget area. The location is not critical since the plugin automatically removes the menu from the widget location in the page and sets it according to the location and offset settings.</p>
<p>For more information on how to add a new widget to your WordPress theme see our follow up WordPress tutorial &#8211; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-adding-a-widget-area-to-your-theme-files/">&#8220;Adding A Widget Area To Your Theme Files&#8221;</a>.</p>
<h4>Create Your Slick Menu</h4>
<p>To create your sticky sliding menu go to the widget admin page and drag the &#8220;jQuery Slick Menu&#8221; widget to the desired widget area. Then select your custom menu from the drop down list in the widget control panel.</p>
<p>Click &#8220;save&#8221; to activate the widget.</p>
<h3>Configuring Your Widget</h3>
<p>The widget has several settings, which can be used to customise your slick menu:</p>
<h4>Tab Text</h4>
<p>Enter the text that you would like to use for the jquery slick menu tab.</p>
<h4>Location</h4>
<p>This is the location of where you want the slide out menu to appear in the browser window. There are 6 different locations to choose from:</p>
<ul class="content-list">
<li>Top Left &#8211; menu slides down from the top of the browser window</li>
<li>Top Right</li>
<li>Bottom Left &#8211; menu slides up from the bottom of the browser window</li>
<li>Bottom Right</li>
<li>Left &#8211; menu slides out from the left of the browser window</li>
<li>Right &#8211; menu slides out from the right of the browser window</li>
</ul>
<p>See the <a href="/lab/demo-wordpress-jquery-slick-menu-plugin/">jquery slick menu demo page</a> for examples.</p>
<h4>Offset</h4>
<p>The number of pixels that the slick menu is positioned from the edge of the browser window &#8211; .e.g if location is &#8220;Top-Left&#8221; and offset is 50 the menu will be positioned along the top, 50 pixels from the left of the browser edge.</p>
<h4>Auto-Close Menu</h4>
<p>Check this option to automatically close any open menus when the user clicks anywhere in the browser</p>
<h4>Animation Speed</h4>
<p>The speed at which the sliding menu will open/close</p>
<h4>Skin</h4>
<p>12 different sample skins are available to either use &#8220;out of the box&#8221; or to use as examples of css for styling your own slick menu. 4 of the skins match those used in the <a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">Slick Contact Forms Plugin</a>.</p>
<p>Note: For the actual menu styling inside the slick box the menu will follow your theme file styles. The skins will style the slider tab and the slick box.</p>
<h3>Shortcodes</h3>
<p>The plugin also includes the ability to open and close the sliding menu using external links, embedded in your website content. These can be added to the page using shortcodes:</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link]
</pre>
<p>Default link, which will toggle the sliding menu open/closed with the link text &#8220;Click Here&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link text=&quot;Open Menu&quot;]
</pre>
<p>Toggle the sliding menu open/closed with the link text &#8220;Open Menu&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link action=&quot;open&quot;]
</pre>
<p>Open the menu with the default link text &#8220;Click Here&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link action=&quot;close&quot;]
</pre>
<p>Close the sliding menu tab with the default link text &#8220;Click Here&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
[dcsl-link action=&quot;close&quot; text=&quot;Close Sliding Menu&quot;]
</pre>
<p>Close the menu tab with the link text &#8220;Close Sliding Menu&#8221;</p>
<div class="banner-horizontal">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7740611438413740";
/* Banner Mid Post */
google_ad_slot = "8625321051";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<h3>Frequently Asked Questions</h3>
<p>For a complete list of questions and answers please check out our <a href="/blog/index.php/frequently-asked-questions/jquery-slick-menu/">jQuery Slick Menu Frequently Asked Questions</a> section.</p>
<p>Many issues that can crop up with installing and using the plugin with different themes have been covered in our comments section. Please check previous comments for further information/tips.</p>
<h3>Demo jQuery Slick Menu</h3>
<p><a href="/lab/demo-wordpress-jquery-slick-menu-plugin/">http://designchemical.com/lab/demo-wordpress-jquery-slick-menu-plugin/</a></p>
<h3>Download The Plugin</h3>
<p><a href="http://downloads.wordpress.org/plugin/jquery-slick-menu.1.3.1.zip" rel="nofollow">Download JQuery Slick Menu Widget 1.3.1 (7,259)</a></p>

<p>If you liked the slick menu widget you may also like:</p>
<h4><a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-floating-menu/">WordPress Floating Menu Plugin</a></h4>
<p>Create floating, sticky tabs with slide out menus.</p>
<h4><a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">WordPress Slick Contact Forms Plugin</a></h4>
<p>Add sticky or floating, slide-out, customisable contact forms to any widget area.</p>
<h3>Feedback</h3>
<p><strong>If you find this plugin useful please take the time to rate it at <a href="http://wordpress.org/extend/plugins/jquery-slick-menu/" rel="nofollow">wordpress.org</a>.</strong></p>
<p>
If you have any problems, suggestions on how we can make the plugin better or would like help creating a new skin for the slick menu let us know via comments, email or our online contact form.</p>
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form-donate" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="EDWNSWDWKPVB4">
<input type="hidden" name="on0" value="Amount">
<input type="hidden" name="os0" maxlength="60">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:none" name="submit" alt="Donate" />
</form>
<p>All of our WordPress and Jquery plugins are created and supported for free. However &#8230; we are always happy to receive any donations if you do find the plugins useful!</p>
<div class="clear"></div>
</div>
<h3>Updates</h3>
<h4>Version 1.3.1 &#8211; 13th September 2011</h4>
<ul class="content-list">
<li>Fixed: Validation error</li>
</ul>
<h4>Version 1.3 &#8211; 15th June 2011</h4>
<ul class="content-list">
<li>Added: Shortcodes for adding external text links to open and close the sliding menu panel</li>
<li>Added: 4 additional skins to match the <a href="/blog/index.php/wordpress-plugin-slick-contact-forms/">Slick Contact Forms WordPress Plugin</a>.</li>
</ul>
<h4>Version 1.2 &#8211; 31st May 2011</h4>
<ul class="content-list">
<li>Fixed: Bug with positioning left/right in Safari</li>
</ul>
<h3>Screenshots</h3>
<p class="text-center"><img src="/media/images/screenshot-1-jquery-slick-menu-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget in edit mode</strong></p>
<p class="text-center"><img src="/media/images/screenshot-2-jquery-slick-menu-plugin.png" alt="" /></p>
<p class="text-center"><strong>Widget Options For Locations of Slick Menu Tab</strong></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=gRbtqtIPGp0:Y37flc9ETP0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=gRbtqtIPGp0:Y37flc9ETP0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/gRbtqtIPGp0" height="1" width="1"/>";}i:27;a:14:{s:5:"title";s:66:"WordPress Tutorial – Current & Parent Menu Items In Custom Menus";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/0DftD6zsWY0/";s:8:"comments";s:130:"http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/#comments";s:7:"pubdate";s:31:"Thu, 17 Mar 2011 16:56:32 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:67:"TutorialsWordpress TipsCSSHTMLlayoutmenunavigationtutorialwordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1512";s:11:"description";s:828:"<a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/"><img align="left" hspace="5" width="150" src="/media/images/demo_wp_menu_css.png" class="alignleft wp-post-image tfe" alt="Menu Structure" title="" /></a><p>With the custom WordPress menus available with WordPress 3.0 there are inherent systems that allow us to identify which is the current menu item and it&#8217;s parent links. Unfortunately these aren&#8217;t very obvious and going through the source code to pick them out can be a nightmare.</p>
<p>Today we are going to highlight a few of these classes and demonstrate &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:5548:"<p>With the custom WordPress menus available with WordPress 3.0 there are inherent systems that allow us to identify which is the current menu item and it&#8217;s parent links. Unfortunately these aren&#8217;t very obvious and going through the source code to pick them out can be a nightmare.</p>
<p>Today we are going to highlight a few of these classes and demonstrate how they can be used to create a simple but effective menu system using only CSS. The same principles can then be applied to your own menus/themes to add custom styling to active menu items or parent links.</p>
<p>For the demonstration we will create a simple 2-tier horizontal menu. The 2nd level sub-menus are only visible when the user browses to the parent menu page.</p>
<p><a href="http://www.designchemical.com/lab/demo-wp-menu-css/parent-a/" class="demo">View Demo Menu</a></p>
<h3 class="clear">The Menu Structure</h3>
<p>In the WordPress custom menu admin panel our menu structure looks like this:</p>
<p class="text-center"><img src="/media/images/demo_wp_menu_css.png" alt="Menu Structure" /></p>
<p class="text-center"><strong>Very simple &#8211; 3 main menu items &#8211; 2 with sub-menus.</strong></p>
<h3>Basic Menu CSS</h3>
<p>The 2 important CSS classes that the WordPress menu system uses are:</p>
<ul class="content-list">
<li>current_menu_item &#8211; used to identify the link representing the current page</li>
<li>current-menu-parent &#8211; the class given to the parent li tag of the current_menu_item</li>
</ul>
<p>We are going to incorporate the above 2 classes into our menu styling so that the current menu item is styled to visually indicate that this is the active page. We are also going to use the current_menu_parent class to change the display status of the sub-menu so that the child links will be visible.</p>
<p>The following shows the complete CSS used to create the demo menu. The comments in the style sheet highlight the key rules in creating the menu structure and how it functions.</p>
<pre class="brush: plain; title: ; notranslate">
.menu {
font: normal 13px Arial, sans-serif;
background: url(../images/bg_blue_demo.png) repeat-x 0 -80px;
width: 100%;
height: 40px;
border-left: 1px solid #304B73;
position: relative; /* Required for positioning of sub-menus */
}
.menu li ul {
display: none;  /* Required to hide menu when inactive */
position: absolute;  /* Position the menu below and to the far left */
top: 40px;
left: 0;
}
/* This is the rule that displays sub-menus when a parent link is clicked */
.menu li.current-menu-parent ul, .menu li.current-menu-item ul {
display: block;
}
.menu li {
float: left;
margin: 0;
padding: 0;
font-weight: bold;
}
.menu li a {
float: left;
display: block;
color: #fff;
background: url(../images/bg_blue_demo.png) repeat-x 100% 0;
padding: 12px 25px;
text-decoration: none;
}
.menu li a:hover {
background-position: 100% -160px;
color: #fff;
}
/* Styling for current parent item */
.menu li.current-menu-item a, .menu li.current-menu-parent a{
background-position: 100% -40px;
color: #000;
}
/* Styling for sub-menus */
.menu li ul {
width: 904px;
background: url(../images/bg_blue_demo.png) repeat-x 0 -120px;
border: 1px solid #999;
border-top: none;
}
.menu li ul li {
padding: 6px 0;
}
.menu li.current-menu-item ul li a, .menu li.current-menu-parent ul li a {
background: url(../images/bg_bdr.png) repeat-y right center;
color: #666666;
padding: 6px 35px;
}
.menu li ul li a:hover {
color: #000;
}
/* Styling for current page sub-menu links */
.menu li.current-menu-parent ul li.current-menu-item a, .menu li.current-menu-parent ul li.current-menu-item a:hover {
color: #990000;
}
</pre>
<p>Although there are several other CSS classes used by the WordPress custom menus the above 2 are probably the easiest to use and apply to your own menu. Although at first it may appear a little confusing fortunately the system is fairly logical.</p>
<p>Using these classes to add visual indicators for current page and parent links improves the useability and makes navigating your site much less confusing for your users.</p>
<p><a href="http://www.designchemical.com/lab/demo-wp-menu-css/parent-a/" class="demo">View Demo Menu</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/0DftD6zsWY0" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:126:"http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/feed/";}s:5:"slash";a:1:{s:8:"comments";s:2:"20";}s:10:"feedburner";a:1:{s:8:"origlink";s:121:"http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/";}s:7:"summary";s:828:"<a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/"><img align="left" hspace="5" width="150" src="/media/images/demo_wp_menu_css.png" class="alignleft wp-post-image tfe" alt="Menu Structure" title="" /></a><p>With the custom WordPress menus available with WordPress 3.0 there are inherent systems that allow us to identify which is the current menu item and it&#8217;s parent links. Unfortunately these aren&#8217;t very obvious and going through the source code to pick them out can be a nightmare.</p>
<p>Today we are going to highlight a few of these classes and demonstrate &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-tips/wordpress-tutorial-current-parent-menu-items-in-custom-menus/" class="read_more">more</a></p>";s:12:"atom_content";s:5548:"<p>With the custom WordPress menus available with WordPress 3.0 there are inherent systems that allow us to identify which is the current menu item and it&#8217;s parent links. Unfortunately these aren&#8217;t very obvious and going through the source code to pick them out can be a nightmare.</p>
<p>Today we are going to highlight a few of these classes and demonstrate how they can be used to create a simple but effective menu system using only CSS. The same principles can then be applied to your own menus/themes to add custom styling to active menu items or parent links.</p>
<p>For the demonstration we will create a simple 2-tier horizontal menu. The 2nd level sub-menus are only visible when the user browses to the parent menu page.</p>
<p><a href="http://www.designchemical.com/lab/demo-wp-menu-css/parent-a/" class="demo">View Demo Menu</a></p>
<h3 class="clear">The Menu Structure</h3>
<p>In the WordPress custom menu admin panel our menu structure looks like this:</p>
<p class="text-center"><img src="/media/images/demo_wp_menu_css.png" alt="Menu Structure" /></p>
<p class="text-center"><strong>Very simple &#8211; 3 main menu items &#8211; 2 with sub-menus.</strong></p>
<h3>Basic Menu CSS</h3>
<p>The 2 important CSS classes that the WordPress menu system uses are:</p>
<ul class="content-list">
<li>current_menu_item &#8211; used to identify the link representing the current page</li>
<li>current-menu-parent &#8211; the class given to the parent li tag of the current_menu_item</li>
</ul>
<p>We are going to incorporate the above 2 classes into our menu styling so that the current menu item is styled to visually indicate that this is the active page. We are also going to use the current_menu_parent class to change the display status of the sub-menu so that the child links will be visible.</p>
<p>The following shows the complete CSS used to create the demo menu. The comments in the style sheet highlight the key rules in creating the menu structure and how it functions.</p>
<pre class="brush: plain; title: ; notranslate">
.menu {
font: normal 13px Arial, sans-serif;
background: url(../images/bg_blue_demo.png) repeat-x 0 -80px;
width: 100%;
height: 40px;
border-left: 1px solid #304B73;
position: relative; /* Required for positioning of sub-menus */
}
.menu li ul {
display: none;  /* Required to hide menu when inactive */
position: absolute;  /* Position the menu below and to the far left */
top: 40px;
left: 0;
}
/* This is the rule that displays sub-menus when a parent link is clicked */
.menu li.current-menu-parent ul, .menu li.current-menu-item ul {
display: block;
}
.menu li {
float: left;
margin: 0;
padding: 0;
font-weight: bold;
}
.menu li a {
float: left;
display: block;
color: #fff;
background: url(../images/bg_blue_demo.png) repeat-x 100% 0;
padding: 12px 25px;
text-decoration: none;
}
.menu li a:hover {
background-position: 100% -160px;
color: #fff;
}
/* Styling for current parent item */
.menu li.current-menu-item a, .menu li.current-menu-parent a{
background-position: 100% -40px;
color: #000;
}
/* Styling for sub-menus */
.menu li ul {
width: 904px;
background: url(../images/bg_blue_demo.png) repeat-x 0 -120px;
border: 1px solid #999;
border-top: none;
}
.menu li ul li {
padding: 6px 0;
}
.menu li.current-menu-item ul li a, .menu li.current-menu-parent ul li a {
background: url(../images/bg_bdr.png) repeat-y right center;
color: #666666;
padding: 6px 35px;
}
.menu li ul li a:hover {
color: #000;
}
/* Styling for current page sub-menu links */
.menu li.current-menu-parent ul li.current-menu-item a, .menu li.current-menu-parent ul li.current-menu-item a:hover {
color: #990000;
}
</pre>
<p>Although there are several other CSS classes used by the WordPress custom menus the above 2 are probably the easiest to use and apply to your own menu. Although at first it may appear a little confusing fortunately the system is fairly logical.</p>
<p>Using these classes to add visual indicators for current page and parent links improves the useability and makes navigating your site much less confusing for your users.</p>
<p><a href="http://www.designchemical.com/lab/demo-wp-menu-css/parent-a/" class="demo">View Demo Menu</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=0DftD6zsWY0:bawBFptsrfc:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=0DftD6zsWY0:bawBFptsrfc:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/0DftD6zsWY0" height="1" width="1"/>";}i:28;a:14:{s:5:"title";s:51:"WordPress Plugin Update – Vertical Accordion Menu";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/QmRWuy8_Qds/";s:8:"comments";s:120:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/#comments";s:7:"pubdate";s:31:"Wed, 16 Mar 2011 09:58:41 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:69:"Wordpress PluginsaccordionjQuerymenunavigationpluginsupdateswordpress";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1508";s:11:"description";s:860:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest update to the jQuery Vertical Accordion Menu plugin for WordPress now offers the option of adding a count of the number of links under each parent menu item.</p>
<p>For multi-level menus this offers improved useability and provides a visual indication of the options available to the user.</p>
<p>To enable this option just check the &#8220;Show Count&#8221; box in &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:2045:"<p>The latest update to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">jQuery Vertical Accordion Menu plugin</a> for WordPress now offers the option of adding a count of the number of links under each parent menu item.</p>
<p>For multi-level menus this offers improved useability and provides a visual indication of the options available to the user.</p>
<p>To enable this option just check the &#8220;Show Count&#8221; box in the widget control panel.</p>
<p>Check out the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/"> <strong>plugin page</strong></a> for more information.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/QmRWuy8_Qds" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:116:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"7";}s:10:"feedburner";a:1:{s:8:"origlink";s:111:"http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/";}s:7:"summary";s:860:"<a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>The latest update to the jQuery Vertical Accordion Menu plugin for WordPress now offers the option of adding a count of the number of links under each parent menu item.</p>
<p>For multi-level menus this offers improved useability and provides a visual indication of the options available to the user.</p>
<p>To enable this option just check the &#8220;Show Count&#8221; box in &#8230; <a href="http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-update-vertical-accordion-menu/" class="read_more">more</a></p>";s:12:"atom_content";s:2045:"<p>The latest update to the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/">jQuery Vertical Accordion Menu plugin</a> for WordPress now offers the option of adding a count of the number of links under each parent menu item.</p>
<p>For multi-level menus this offers improved useability and provides a visual indication of the options available to the user.</p>
<p>To enable this option just check the &#8220;Show Count&#8221; box in the widget control panel.</p>
<p>Check out the <a href="/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/"> <strong>plugin page</strong></a> for more information.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=QmRWuy8_Qds:lj-vTFfRmgg:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=QmRWuy8_Qds:lj-vTFfRmgg:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/QmRWuy8_Qds" height="1" width="1"/>";}i:29;a:14:{s:5:"title";s:38:"Live Text Search Function Using jQuery";s:4:"link";s:61:"http://feedproxy.google.com/~r/DesignChemical/~3/LkkdSA8tAkw/";s:8:"comments";s:100:"http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/#comments";s:7:"pubdate";s:31:"Mon, 14 Mar 2011 12:34:13 +0000";s:2:"dc";a:1:{s:7:"creator";s:3:"Lee";}s:8:"category";s:50:"jQueryTutorialsWebsite Codingformsfunctiontutorial";s:4:"guid";s:42:"http://www.designchemical.com/blog/?p=1495";s:11:"description";s:772:"<a href="http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Today we are going to look at using jQuery to create a &#8220;live search&#8221; feature for your website. With just a few lines of code and a single text input box you can add a text filter to any site content.</p>
<p>For the tutorial we will create a search feature for our blog comments, although the same function can easily &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/" class="read_more">more</a></p>";s:7:"content";a:1:{s:7:"encoded";s:4411:"<p>Today we are going to look at using jQuery to create a &#8220;live search&#8221; feature for your website. With just a few lines of code and a single text input box you can add a text filter to any site content.</p>
<p>For the tutorial we will create a search feature for our blog comments, although the same function can easily be applied to any elements by changing the selector.</p>
<h3>The Search Box HTML</h3>
<p>To capture the search text all we need is a simple input text field. To make the feature a little more exciting we are also going to show the number of results underneath the text input. For this we need to add a div tag with the ID &#8211; &#8220;filter-count&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
&lt;form id=&quot;live-search&quot; action=&quot;&quot; class=&quot;styled&quot; method=&quot;post&quot;&gt;
    &lt;fieldset&gt;
        &lt;input type=&quot;text&quot; class=&quot;text-input&quot; id=&quot;filter&quot; value=&quot;&quot; /&gt;
        &lt;span id=&quot;filter-count&quot;&gt;&lt;/span&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p>Give the input field a unique ID since we will need this to capture the users text.</p>
<h3>The Comments List</h3>
<p>Our comments list is structured using an ordered list &#8211; e.g.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ol class=&quot;commentlist&quot;&gt;
  &lt;li&gt;Comment #1&lt;/li&gt;
  &lt;li&gt;Comment #2&lt;/li&gt;
&lt;/ol&gt;
</pre>
<h3>The jQuery Code</h3>
<p>The jQuery for this feature is relatively easy and all we are doing is basically getting the input text value, checking this against our list of comments and hiding those that do not contain the text phrase. The count of the number of positive results is then displayed in our &#8220;filter-count&#8221; span tag.</p>
<p>Since this is a &#8220;live&#8221; search we will use the &#8220;keyup&#8221; event to initiate the function &#8211; the filtered comment list will therefore update with each character entered.</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function(){
	$(&quot;#filter&quot;).keyup(function(){

		// Retrieve the input field text and reset the count to zero
		var filter = $(this).val(), count = 0;

		// Loop through the comment list
		$(&quot;.commentlist li&quot;).each(function(){

			// If the list item does not contain the text phrase fade it out
			if ($(this).text().search(new RegExp(filter, &quot;i&quot;)) &lt; 0) {
				$(this).fadeOut();

			// Show the list item if the phrase matches and increase the count by 1
			} else {
				$(this).show();
				count++;
			}
		});

		// Update the count
		var numberItems = count;
		$(&quot;#filter-count&quot;).text(&quot;Number of Comments = &quot;+count);
	});
});
</pre>
<p>This jQuery live search can be applied to any elements by changing the &#8220;.commentlist li&#8221; selector.</p>
<p><a href="/lab/jquery/demo/jquery_demo_live_comment_search.htm" class="demo">View jQuery Demo</a></p>
<p>The live text search is also used on all of our blog comments.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/LkkdSA8tAkw" height="1" width="1"/>";}s:3:"wfw";a:1:{s:10:"commentrss";s:96:"http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/feed/";}s:5:"slash";a:1:{s:8:"comments";s:1:"7";}s:10:"feedburner";a:1:{s:8:"origlink";s:91:"http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/";}s:7:"summary";s:772:"<a href="http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/"><img align="left" hspace="5" width="150" src="http://www.designchemical.com/blog/wp-content/plugins/thumbnail-for-excerpts/jquery_code.png" class="alignleft wp-post-image tfe" alt="" title="" /></a><p>Today we are going to look at using jQuery to create a &#8220;live search&#8221; feature for your website. With just a few lines of code and a single text input box you can add a text filter to any site content.</p>
<p>For the tutorial we will create a search feature for our blog comments, although the same function can easily &#8230; <a href="http://www.designchemical.com/blog/index.php/jquery/live-text-search-function-using-jquery/" class="read_more">more</a></p>";s:12:"atom_content";s:4411:"<p>Today we are going to look at using jQuery to create a &#8220;live search&#8221; feature for your website. With just a few lines of code and a single text input box you can add a text filter to any site content.</p>
<p>For the tutorial we will create a search feature for our blog comments, although the same function can easily be applied to any elements by changing the selector.</p>
<h3>The Search Box HTML</h3>
<p>To capture the search text all we need is a simple input text field. To make the feature a little more exciting we are also going to show the number of results underneath the text input. For this we need to add a div tag with the ID &#8211; &#8220;filter-count&#8221;</p>
<pre class="brush: plain; title: ; notranslate">
&lt;form id=&quot;live-search&quot; action=&quot;&quot; class=&quot;styled&quot; method=&quot;post&quot;&gt;
    &lt;fieldset&gt;
        &lt;input type=&quot;text&quot; class=&quot;text-input&quot; id=&quot;filter&quot; value=&quot;&quot; /&gt;
        &lt;span id=&quot;filter-count&quot;&gt;&lt;/span&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p>Give the input field a unique ID since we will need this to capture the users text.</p>
<h3>The Comments List</h3>
<p>Our comments list is structured using an ordered list &#8211; e.g.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;ol class=&quot;commentlist&quot;&gt;
  &lt;li&gt;Comment #1&lt;/li&gt;
  &lt;li&gt;Comment #2&lt;/li&gt;
&lt;/ol&gt;
</pre>
<h3>The jQuery Code</h3>
<p>The jQuery for this feature is relatively easy and all we are doing is basically getting the input text value, checking this against our list of comments and hiding those that do not contain the text phrase. The count of the number of positive results is then displayed in our &#8220;filter-count&#8221; span tag.</p>
<p>Since this is a &#8220;live&#8221; search we will use the &#8220;keyup&#8221; event to initiate the function &#8211; the filtered comment list will therefore update with each character entered.</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function(){
	$(&quot;#filter&quot;).keyup(function(){

		// Retrieve the input field text and reset the count to zero
		var filter = $(this).val(), count = 0;

		// Loop through the comment list
		$(&quot;.commentlist li&quot;).each(function(){

			// If the list item does not contain the text phrase fade it out
			if ($(this).text().search(new RegExp(filter, &quot;i&quot;)) &lt; 0) {
				$(this).fadeOut();

			// Show the list item if the phrase matches and increase the count by 1
			} else {
				$(this).show();
				count++;
			}
		});

		// Update the count
		var numberItems = count;
		$(&quot;#filter-count&quot;).text(&quot;Number of Comments = &quot;+count);
	});
});
</pre>
<p>This jQuery live search can be applied to any elements by changing the &#8220;.commentlist li&#8221; selector.</p>
<p><a href="/lab/jquery/demo/jquery_demo_live_comment_search.htm" class="demo">View jQuery Demo</a></p>
<p>The live text search is also used on all of our blog comments.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/DesignChemical?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/DesignChemical?a=LkkdSA8tAkw:wYk8DHgky64:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/DesignChemical?i=LkkdSA8tAkw:wYk8DHgky64:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DesignChemical/~4/LkkdSA8tAkw" height="1" width="1"/>";}}s:7:"channel";a:9:{s:5:"title";s:56:"Design Chemical - jQuery, Wordpress, Tutorials & Plugins";s:4:"link";s:34:"http://www.designchemical.com/blog";s:11:"description";s:22:"Your Business Catalyst";s:13:"lastbuilddate";s:31:"Mon, 19 Sep 2011 02:17:36 +0000";s:8:"language";s:2:"en";s:2:"sy";a:2:{s:12:"updateperiod";s:6:"hourly";s:15:"updatefrequency";s:1:"1";}s:9:"generator";s:29:"http://wordpress.org/?v=3.1.2";s:10:"feedburner";a:2:{s:14:"emailserviceid";s:14:"DesignChemical";s:18:"feedburnerhostname";s:28:"http://feedburner.google.com";}s:7:"tagline";s:22:"Your Business Catalyst";}s:9:"textinput";a:0:{}s:5:"image";a:0:{}s:9:"feed_type";s:3:"RSS";s:12:"feed_version";s:3:"2.0";s:5:"stack";a:0:{}s:9:"inchannel";b:0;s:6:"initem";b:0;s:9:"incontent";b:0;s:11:"intextinput";b:0;s:7:"inimage";b:0;s:13:"current_field";s:0:"";s:17:"current_namespace";b:0;s:19:"_CONTENT_CONSTRUCTS";a:6:{i:0;s:7:"content";i:1;s:7:"summary";i:2;s:4:"info";i:3;s:5:"title";i:4;s:7:"tagline";i:5;s:9:"copyright";}s:4:"etag";s:27:"RoD1kbWS+ZQVerLxCs4l9gmrHak";s:13:"last_modified";s:29:"Wed, 21 Sep 2011 04:14:27 GMT";}