7 Best Javascript Practices

I decided to share some of the best practices of Javascript which I have learned from various blogs and books over the years.

Tags:

Canada Postal Code & US Zip Code Regex

I decided to write a simple Canadian Postal Code and US Zip Code Regex. There are already good ones on the web, like here and here for example. But, I decided to write my own to make it slightly more accurate.

Tags:

ezMark: jQuery Checkbox & Radiobutton Plugin

ezMark is a jQuery Plugin that allows you to stylize Radio button and Checkbox easily. Its very small (minified version is ~1.5kb) compared to other similar scripts.

Show Play Icon on Mouse over Thumbnail using CSS

I decided to share a simple trick on how to display a "Play" image when mouse is hovered over a video Thumbnail using only CSS. (Sites like Metacafe and similar ones have this feature). Its very easy to implement.

At first, lets declare a simple CSS class for a thumbnail inside an anchor Tag.

Tags:

jImdb: jQuery Imdb Grabber Plugin

This jQuery Plugin (jimdb) allows you to Grab Movie Details from an IMDB Webpage very easily.

Displaying Star Rating using CSS Sprites

Recently, I have been working on an Application which involved rating system. There are 2 cases where we would want to show the ratings of a content to the viewer. On 1st case, we would just want to display the list of contents (videos, blogs etc.) with its rating (just displayed) to the viewer. On another case, we would show the rating and also allow viewer to interact and rate the content. There are already several blogs relating to 2nd case (CSS Star Rating), so, I will only discuss the 1st case.

Tags:
Syndicate content