Themeforest

Archive for June, 2010

jQuery Image Swap Using Click

thumb_jquery_code

In a previous post we showed a simple piece of jQuery code, which allows you to add the ability to swap images on hover to your website. Since then we have had several requests asking how to add a similar effect using “click” instead.

The Image

Use the same naming system for the 2 images as in our previous post … more

jQuery Simple Vertical Accordion Menu

thumb_jquery_code

Today’s jQuery tutorial is a perfect example of how easy it is to add a slick vertical accordion style menu to your website with just a few lines of jQuery code!

The HTML

First we create a nested unordered list, which will include all of our links. Give the first ul tag a unique id – we use #nav:

Style

more