testimonials

Hover Effect Using JavaScript

August 10, 2009 at 9:36 pm | JavaScript, JavaScript Tutorials, Programming, Tutorials | No comments

Here’s a pretty simple JavaScript tutorial. This script will allow us to change images on mouse over and mouse out, letting us create a nice hover effect. I’ve used this technique on several sites that I’ve designed. We’ll also take a look at how we can pre-load the images to reduce lag time in the hover. Here’s the end result. Let’s get started.

(more…)

Using JavaScript’s Random Function

May 17, 2009 at 9:10 pm | JavaScript, Programming | No comments

In this post I’ll talk about using JavaScript’s Math.random() function in combination with arrays (or arraylists). Math.random is a very useful tool whenever you need to do something randomly (big surprise?). In fact, I recently used it for a random testimonial display system I coded for Clarion Media. Math.random() was perfect for this because it allowed us to display a random testimonial from a pool of testimonials on the Clarion Media website. So, how do we use the random function in conjunction with arrays? First we need to get an understanding of how Math.random() works. (more…)

Validating Form Input Using JavaScript

January 23, 2009 at 9:59 pm | JavaScript, JavaScript Tutorials, Programming, Tutorials | No comments

Here’s an easy tutorial with a very useful application. We’ll learn how to valide form input using JavaScript. This way, people will be required to fill certain fields when they use your form, and we’ll increase the chance of getting legitimate email addresses. This is a nice and quick walkthrough, so let’s jump in! (more…)