There are dozens of jQuery plugins on the internet to help you create beautiful galleries. Most of them are more aesthetic than functional. This script helps you create a simple and lightweight jQuery photo gallery using unobtrusive JavaScript technique which allows users who have their JavaScript off still use the gallery.

Alternate row colors (or zebra striping) is a great way to make long lists and tables easier to read. This technique is especially useful for large tables. In PHP, we can easily change the color of every other row of this table by using a ternary operator inside a while loop.

A popular question on forums is how to create random numbers in jQuery. We don't really need to use jQuery for a simple task like this. The Math.random() method in JavaScript can be used to quickly create a random number between 0 and 1

We are used to arranging our time by the days of the week. People usually use phrases like “next Friday” or “last sunday.” It's easier for us to understand rather than reading a date and having to work out that it means next Friday. In this post, we'll look at how to calculate the day of the week of a given date such as "Apr 25th 1990" in PHP.

People often ask me what the difference is between UI (user interface) and UX (user experience). Today I'm going to answer this question, and compare them with IxD (Interaction Design). When we hear the word design, we think about how something looks. On the Web, before designing a website we should consider designing how the site works, how it will be used, and how people move through it.

To check if an element is visible using jQuery, you can use .is(':visible'). If you wanted to check whether an element is hidden then you would use .is(':hidden) instead.

Alternating row colors in jQuery can be easily done using :even and :odd selectors. Let's apply these selector to a list and see the effect.

In some cases you can do things with a subquery that can't be done with join. However when using subqueries, there can be performance costs.

Using css you can improve the readability of large tables. Learn how to color alternating rows in a few lines of css code without using any server-side code or javascript.