Here’s another nice tutorial for beginners. In this one we’ll write the markup for a simple contact form that you could use on a website. Nothing too complicated or fancy, but we’ll talk about how we can add some nice effects to it easily using CSS. We’ll use PHP to have the form send an email when it’s filled out. I’ll also talk about what we can do for form validation.
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.
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…)
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…)