Saturday, July 10, 2010

jQuery Plugin

jQuery Plugin - imgBox

So, a couple of weeks ago I started working on challenging project - imgBox. imgBox is a jQuery plugin that implements a smooth zoom effect on images. Download it, try it, let me know what you think.

You can see the demo at this page, and you can download the complete source code with examples from here.

What’s So Great About this Plugin?

  • Elegant looking, Mac-like effect
  • Popup blockers are no problem. The content opens within the active browser window
  • Multiple images can be opened at the same time
  • Can be customized with settings and CSS
  • It’s just 7KB (packed)
  • All modern browsers supported, including IE6

jQuery Plugin - Feature List

I love the simplicity of using (and more important re-using) jQuery plugins. So I decided to release a plugin that came from my personal need - Feature List. This jQuery plugin enables simple and easy creation of an interactive "Featured Items" widget.

You can see the demo at this page, and you can download the complete source code with examples from here.

What’s So Great About this Plugin?

  • Slick effect, no Flash needed
  • It’s just 2K
  • Reusable on multiple containers
  • Cycles items via slideshow
  • Can be styled with custom HTML/CSS

jQuery show/hide list information

Information

This version of show / hide information uses jQuery and an unordered list. The list items all have the same classname and can be used anywhere on your page. The first word in each list item has a classname that is the same as the id of the div to be shown or hidden. The div can contain any information and can be styled as you want.

Tested in IE6, IE7, IE8, Firefox, Opera, Safari (PC) and Google Chrome.

Download

All the information you need for this demo is in the page source code. You will also need a copy of jQuery.


jQuery - show me some more

Information

Yet another 'show me some more / less' routine, but this time using jQuery to add a little animation and to simplify the script.

Just click the 'more ....' to expose the extra information and the '.... less' to close it.

The jQuery is just a couple of lines long and all that is needed is to enclose the hidden information in a div with a class="hidden", then immediately after this div have an element with a classname 'show'. This demo uses an empty element into which the jQuery routine adds 'more ....' and is changed to '.... less' when displaying the extra imformation. I have used jQuery to hide the extra information and to display the 'more / less' clickable areas so that if javascript is turned off then the full text will be shown without the 'more... / .... less' text.

Tested in IE6, IE7, IE8, Firefox, Opera, Safari(PC) and Google Chrome.

Download

All the information you need for this can be found in the source code and you will also need a copy of jQuery.



jQuery - Getting the Day from a Date

Information

This is a jQuery/javascript routine which allows you to select the date and it will display the day of the week for this date.

The date picker routine will automatically alter the number of days depending on the month selected and the year. Leap years will automatically allow for February 29th.

If you select a date of the 31st for instance and then change the month to one with fewer days then the date will adjust to the last day of the new month.

You will need a copy of jQuery to be able to use this routine.

If you would like a copy of this demonstration then please email me and make a donation to support stunicholls.com.

Download

No comments:

Post a Comment