To help you improve your skills, in this article we present 50 useful new jQuery techniques and tutorials that have been created recently and that could make the development of your next website an easier and more interesting experience than the last.
50 Useful jQuery Techniques Link
Moving Boxes Carousel with jQuery2
Many of the concepts presented in classic carousel tutorials are the same, so this tutorial will not throw a lot of source code at you. The big difference here is that there are buttons to change panels and the panels zoom in and out.
Sliding Boxes and Captions with jQuery4
All of these sliding box animations work on the same basic idea. There is a div tag (.boxgrid in my css) that essentially acts as a window where two other items of your choosing “peek” through.
Accessible Charts & Graphs from Table Elements using HTML 5 Canvas and jQuery
This technique provides a simple method for generating bar, line, area, and pie charts from an HTML table, and allows you to configure them in a variety of ways.
Make a Mega Drop-Down Menu with jQuery6
So how would we go about implementing Mega drop down menus? While it’d be great to do all of this in pure HTML and CSS, it’s impossible at the moment to get those nice half-second delays — and of course there’s a pesky problem with Internet Explorer 6, which only supports :hover on anchor elements. Instead, I’ve whipped up a solution using jQuery and a very nifty plugin called hoverIntent.
Creating a Filterable Portfolio with jQuery8
If you have worked in your field for a while, there is a pretty good chance that you have a rather extensive portfolio. To make it a little easier to navigate, you will probably be tempted to break them into different categories. In this tutorial, I will show you how to make “filtering by category” a little more interesting with just a little bit of jQuery.
A fancy Apple.com-style search suggestion10
“This example makes use of several techniques: MySQL (for the database), HTML/CSS for styling, PHP for retrieving the data and jQuery for the AJAX request. How about that for some nice way of combining powerful techniques to create something nice like this. You do need some basic knowledge about these techniques to fully understand this tutorial.”
Current Field Highlighting12
As a matter of usability and aesthetics, it is a good thing to add some kind of visual feedback on web forms to indicate the currently active (or “focused“) field. In this tutorial, we’ll improve our current field highlighting, using jQuery.
Creating a Dynamic Poll with jQuery and PHP14
“When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. In this tutorial we’ll create a poll using PHP and XHTML, then make use of some jQuery Ajax effects to eliminate the need for a page refresh, and to give it a nice little bit of animation.”
jQuery Infinite Carousel
This screencast explains how you can create a simple and nice scrolling carousel and how you can also make it automatically loop round by itself. For the latter see also Automatic Infinite Carousel.
Better form submission feedback with jQuery
Browsers fail to give users effective feedback when the user submits a form. Users respond by clicking the submit button over and over. The problem compounds when users find out they’ve been charged 5 times or when you receive 5 contact submissions. The solution is to replace the submit button with a friendly message letting the user know the form is working.
How to Make a Threadless Style T-Shirt Gallery17
Here’s the gist: There’s a thumbnail which is a full sized image in a container div, which is smaller than the full sized image. The image is centered within it, but doesn’t show entirely because overflow:hidden is turned on. When the mouse hovers over the thumbnail, overflow:hidden gets turned off, and the entire image is displayed.
Create a gallery by using z-index and jQuery
In this tutorial you will learn to combine the CSS property ‘z-index’ and the power of jQuery to create a unique gallery which have a appearance of a pile of pictures. Also check out Enhancing the z-index Gallery with a Preloader.
Add a favicon near external links with jQuery19
External links should always be marked distinctly in order to make it easy for readers to see them easily. You cann add a CSS class to all outgoing links using the pseudo-class
a[href^=http]. A more dynamic solution is using the favicon.ico of the external site, if it is available of course.
Making use of the overflow and scrollLeft DOM property to scroll elements is a much more effective use of the CPU, over animating using CSS top/left. This tutorial demonstrates the same effect used in two completely different ways.
Automatically generate table of contents using jQuery20
“Some time ago, I was debating with my friends on the topic: is there any use of generating table of contents automatically. The conclusion was that it can be useful in cases when the reading material is long enough and table of contents (TOC) has a fixed position on the screen. This tutorial will show you how to create such TOC in just a few lines of code.”
Reddit-style Voting With PHP, MySQL And jQuery21
If you are a regular at Reddit, you must have noticed the way people vote there. You can either vote up or vote down. This tutorial will show you how to create such a voting system with jQuery, PHP and MySQL.
Making a Content Slider with jQuery UI23
In this tutorial we’re going to be using the jQuery UI slider widget to create an attractive and functional content slider. We’ll have a container, which has a series of elements each containing different blocks of content. There will be too many of these elements to display at once, so we can use the slider to move the different content blocks in and out of view.
BBC Radio 1 Zoom Tabs
This tutorial explains how to achieve the effect on the latest BBC Radio 1 website25, where the mouse rolls over the image block, tabs slide up and the image zooms a little to reveal more of the picture.
Creating A Slick Ajaxed Add-To-Basket With jQuery And PHP26
This is a detailed tutorial which shows creating an unobtrusive Ajaxed shopping cart using jQuery & PHP and can guide you to Ajaxify any e-commerce software you may already be using or coding.
Create a Digg-style post sharing tool with jQuery28
We are going to make a digg-style post sharing toolbox. It’s all pretty straight forward and need a little bit of planning. The way it works is different with digg’s. If you view the html source code of Digg’s, it has the sharebox html code in every single post. But, in this tutorial we have only one sharebox, and all the links are sharing the same template.
Using jQuery to play Media Files (MP3,WMA,etc,etc)
I’m going to show you the most productive way (I guess you could say that) of playing a MP3 ( You can also use WMA, and you file of choice) on your website.
Easy Retweet Button30
Create an amazing music player using mouse gestures & hotkeys in jQuery32
We will create an amazing music player coded in xHTML & jQuery that made use of mouse gestures and hotkeys. You can Click & Drag with mouse to interact with interface’s music player or use directional keys & spacebar instead of mouse.
jQuery Feed Menus
Automated image preloading for a snappy UI
Quick Tip: Resizing Images Based On Browser Window Size36
In fluid layouts it is easy to format the text to adjust nicely when the window is resized, but the images are not as fluid-friendly. This Quick Tip shows you how to swap between two image sizes based on the current size of the browser, div, or whatever you decide to make the deciding factor. For those looking for a real life example, Last.fm uses this technique on their artist pages.
Exactly Twitter like Follow and Remove buttons with jQuery and Ajax38
This post updated exactly Twitter like follow and remove buttons with fadeOut and fadeIn effect.
Using Form Labels as Input Values with jQuery and CSS39
Pretty checkboxes with jQuery
A jQuery inline form validation, because validation is a mess Të Position Absolute43
When it comes to form validation, it’s hard to have a versatile solution that works with every form. Figuring out how to display errors is not a simple task. This is something I tried to remedy with this script. When an error needs to be displayed, the script creates a div and positions it in the top right corner of the input. This way you don’t have to worry about your HTML form structure. The rounded corner and shadow are done with CSS3 and degrade well in non compliant browsers. There is no images needed.
How to create a sliding image/reveal content with jquery45
Someone asked me about this effect a while ago and i thought i should make a tutorial about this.
The youlove.us scrolling background effect explained
The technique is actually a lot simpler than it looks, it’s based around scrolling a very tall gradient image behind some transparent PNG images. The header image (with our logo, strapline and the laptop) has a transparent background and solid text, while the main page is actually an image with the heading text as transparent cut outs.
Creating a Keyboard with CSS and jQuery47
Sometimes it’s just fun to play around with the programming languages we know and see what we can create. I thought it might be nice to create a little online keyboard with CSS, and then make it work with jQuery. The keyboard includes “action” keys (caps lock, shift, and delete) which dynamically changes the keyboard when clicked. I’ll show you how to build it today.
Creating the iPhone unlock screen using xHTML, CSS and jQuery51
The iPhone: Everybody knows what it is, many people “played around” with the gadget and most people love it. I also own one of these amazing smartphones, and the looks of the software is really, really sleek and innovative (Just like we’re used from Apple). I wanted to transfer (some) of these amazing designs to a webpage to re-create the same look and feel for webbrowsers. Today, I’m going to show you how to create The iPhone unlock screen in xHTML, CSS and jQuery.
jQuery File Tree
Create an Amazon Books Widget with jQuery and XML53
Creating a table with dynamically highlighted columns like Crazy Egg’s pricing table55
Make Your Header Responses To Mouse Movements with jParallax57
jParallax turns a selected element into a window, or viewport, and all its children into absolutely positioned layers that can be seen through the viewport. These layers move in response to the mouse, and, depending on their dimensions (and options for layer initialisation), they move by different amounts, in a parallaxy kind of way.
Using jQuery To Manipulate and Filter Data61
When a webpage is designed to display large tables of data, a great amount of consideration should be dedicated to allowing the user to sort through the data in a structured manner. In this article, I will go over four techniques: hover effects, zebra rows, filtering, and sorting.
Building a jQuery Image Scroller63
In this tutorial, we’re going to be building an image scroller, making use of jQuery’s excellent animation features and generally having some fun with code. Image scrollers are of course nothing new; versions of them come out all the time. Many of them however are user-initiated; meaning that in order for the currently displayed content to change, the visitor must click a button or perform some other action. This scroller will be different in that it will be completely autonomous and will begin scrolling once the page loads.
Horizontal Scroll Menu with jQuery Tutorial65
In this tutorial you will learn how to create a scroll menu. In the final result you will be able to scroll up and down according to mouse-y axis and we’ll use jQuery.color to animate the background-color changes.
This is a method of putting together a nice-looking menu in a very quick and easy way. It uses a technique known as CSS Sprites. Instead of trying to manage huge amounts of images, everything is packed into just one file, which means the browser will only have to download one file instead of making multiple requests, and its just a lot easier to manage. The menu is displayed by manipulating the background-position property to display individual sprites in the image. There are no drop-downs attached to the menu, but it shouldn’t be hard to add them in which I may do in the future.
We’re going to tell the script to loop through all of the comments on the page. If the member link on the current comment matches the member link in the profile, then it must be an author comment. The script will then apply an additional class to the comment, allowing you to style it separately.
“Outside the Box” Navigation with jQuery73
Just about every website uses the regular navigation concepts we’re all used to. After awhile this can get pretty boring, especially for designers who thrive on creativity. While mimicking the OS X dock and stacks isn’t new, it’s certainly not common
Sexy Drop Down Menu w/ jQuery & CSS77
Studies show that top navigations tend to get the most visual attention when a user first visits a site. Having organized and intuitive navigation is key × and while most drop down menus may look aesthetically pleasing, developing them to degrade gracefully is also essential. In this tutorial I would like to go over how to create a sexy drop down menu that can also degrade gracefully.
Creating a polaroid photo viewer with CSS3 and jQuery79
Placing pictures on simple polaroids on a webpage simply didn’t do it for me. I wanted to drag them around, rotate them and still have a fun time. That’s were CSS and jQuery come in play. By combining the CSS3 Box Shadow and Rotate properties, this effect is relatively easy to create. When dragging a polaroid around, you’ll see the shadow. When it’s placed down, it’s rotated to the left or the right (random).
Use jQuery with Google Analytics to Track Clicks on Outgoing Links From Your Site.81
Add outbound link tracking to a new or existing site. Provided that your links to other sites have the REL attribute set, you can track them very easily with some help from jQuery.
Super CSS Selector Support with jQuery
CSS provides a wide array of selectors to specify which elements should be subject to a particular style. CSS 2.1 gives web designers even more granularity when targeting specific elements. This is great in theory. But browser support for these selectors has lagged behind, and IE6 support is limited to only the most basic selectors. This has led to most folks working in the real world stashing the more advanced selectors away for rainy-day experimentation, or idle dreams about the eventual time when we can use these tools.
Would you like to see more similar round-ups on SM? Link
- 1 http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html
- 2 http://css-tricks.com/moving-boxes/
- 3 http://css-tricks.com/moving-boxes/
- 4 http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/
- 5 http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/
- 6 http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/
- 7 http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/
- 10 http://www.marcofolio.net/webdesign/a_fancy_apple.com-style_search_suggestion.html
- 11 http://www.marcofolio.net/webdesign/a_fancy_apple.com-style_search_suggestion.html
- 12 http://css-tricks.com/improved-current-field-highlighting-in-forms/
- 13 http://css-tricks.com/improved-current-field-highlighting-in-forms/
- 16 http://timvandamme.com/
- 17 http://buildinternet.com/2009/06/how-to-make-a-threadless-style-t-shirt-gallery/
- 18 http://buildinternet.com/2009/06/how-to-make-a-threadless-style-t-shirt-gallery/
- 19 http://liviuholhos.com/blog/add-a-favicon-near-external-links-with-jquery
- 20 http://www.jankoatwarpspeed.com/post/2009/08/20/Table-of-contents-using-jQuery.aspx
- 21 http://ad1987.blogspot.com/2009/02/reddit-style-voting-with-php-mysql-and.html
- 22 http://ad1987.blogspot.com/2009/02/reddit-style-voting-with-php-mysql-and.html
- 25 http://www.bbc.co.uk/radio1/
- 26 http://www.webresourcesdepot.com/creating-a-slick-ajaxed-add-to-basket-with-jquery-and-php/
- 27 http://www.webresourcesdepot.com/creating-a-slick-ajaxed-add-to-basket-with-jquery-and-php/
- 28 http://www.queness.com/post/309/create-a-digg-style-post-sharing-tool-with-jquery
- 29 http://www.queness.com/post/309/create-a-digg-style-post-sharing-tool-with-jquery
- 30 http://ejohn.org/blog/retweet/
- 31 http://ejohn.org/blog/retweet/
- 32 http://yensdesign.com/2008/12/create-an-amazing-music-player-using-mouse-gestures-hotkeys-in-jquery/
- 33 http://yensdesign.com/2008/12/create-an-amazing-music-player-using-mouse-gestures-hotkeys-in-jquery/
- 34 http://designshack.co.uk/tutorials/creating-a-virtual-jquery-keyboard
- 35 http://designshack.co.uk/tutorials/creating-a-virtual-jquery-keyboard
- 36 http://buildinternet.com/2009/07/quick-tip-resizing-images-based-on-browser-window-size/
- 37 http://buildinternet.com/2009/07/quick-tip-resizing-images-based-on-browser-window-size/
- 38 http://9lessons.blogspot.com/2009/04/exactly-twitter-like-follow-and-remove.html
- 39 http://www.codetricky.com/2009/07/using-form-labels-as-input-values-with-jquery-and-css/
- 40 http://www.codetricky.com/2009/07/using-form-labels-as-input-values-with-jquery-and-css/
- 41 http://9lessons.blogspot.com/2009/06/jquery-ajax-best-demos-part-2.html
- 42 http://9lessons.blogspot.com/2009/06/jquery-ajax-best-demos-part-2.html
- 43 http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
- 44 http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
- 45 http://www.suciuvlad.com/html-and-css-tutorials/how-to-create-a-sliding-imagereveal-content-with-jquery/
- 46 http://www.suciuvlad.com/html-and-css-tutorials/how-to-create-a-sliding-imagereveal-content-with-jquery/
- 49 http://benjaminsterling.com/portolio-layout-idea-using-jquery/
- 50 http://benjaminsterling.com/portolio-layout-idea-using-jquery/
- 51 http://www.marcofolio.net/webdesign/the_iphone_unlock_screen_in_xhtml_css_and_jquery.html
- 52 http://www.marcofolio.net/webdesign/the_iphone_unlock_screen_in_xhtml_css_and_jquery.html
- 55 http://www.askthecssguy.com/2007/08/creating_a_table_with_dynamica.html
- 56 http://www.askthecssguy.com/2007/08/creating_a_table_with_dynamica.html
- 57 http://design-notes.info/tutorial/jquery-tutorial/make-your-header-responses-to-mouse-movements-with-jparallax/
- 58 http://design-notes.info/tutorial/jquery-tutorial/make-your-header-responses-to-mouse-movements-with-jparallax/
- 59 http://9lessons.blogspot.com/2009/06/submit-multiple-forms-jquery-ajax.html
- 60 http://9lessons.blogspot.com/2009/06/submit-multiple-forms-jquery-ajax.html
- 65 http://www.queness.com/post/256/horizontal-scroll-menu-with-jquery-tutorial
- 66 http://www.queness.com/post/256/horizontal-scroll-menu-with-jquery-tutorial
- 67 http://www.learningjquery.com/2006/09/slicker-show-and-hide
- 68 http://www.learningjquery.com/2006/09/slicker-show-and-hide
- 69 http://blog.jeremymartin.name/2008/02/blogger-trick-style-author-comments.html
- 70 http://blog.jeremymartin.name/2008/02/blogger-trick-style-author-comments.html
- 71 http://www.web2ajax.fr/2008/02/03/facebook-like-jquery-and-autosuggest-search-engine/
- 72 http://www.web2ajax.fr/2008/02/03/facebook-like-jquery-and-autosuggest-search-engine/
- 75 http://buildinternet.com/2009/06/animate-image-filling-up-using-jquery/
- 76 http://buildinternet.com/2009/06/animate-image-filling-up-using-jquery/
- 77 http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
- 78 http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html
- 79 http://www.marcofolio.net/webdesign/creating_a_polaroid_photo_viewer_with_css3_and_jquery.html
- 80 http://www.marcofolio.net/webdesign/creating_a_polaroid_photo_viewer_with_css3_and_jquery.html
- 81 http://think2loud.com/use-jquery-with-google-analytics-to-track-clicks-on-outgoing-links-from-your-site/
Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.