Posted August 14th, 2008 in Code Examples, Design Examples | No Comments »
Believe me, when I first started learning CSS (and even still) I find myself running into the most frustrating problems that have such simple solutions. There are many resources out there on the web, but some of the most common issues have been compiled into one artilce. Follow the link to learn more!
Posted August 13th, 2008 in Code Examples, Design Examples | No Comments »
I can’t say that I’ve ever thought of having the images on my page have fluid crop areas, but I can see many practical applications for this. And it’s so simple! Just think, your beautiful layout will no longer be destroyed by images that don’t fit to the pixel. Follow the link to read the [...]
Posted August 12th, 2008 in Code Examples | No Comments »
I stumbed upon this a few days ago whilst reading Layers magazine (a great publication). If you are a user of the (not so new anymore) Flash CS3 then you may have noticed the new Closed Captioning component. From the looks of this article it is super easy to implement this into your video. All [...]
Posted July 25th, 2008 in Code Examples | No Comments »
Check to see if your captured phone number is properly formatted (xxx-xxx-xxxx).
// Get the string from the input field
var mobileNumber = mobileNum_txt.text;
// Look for the first dash
var firstDash = mobileNumber.charAt(3);
// Look for the second dash
var secondDash = mobileNumber.charAt(7);
// Check that the dashes are in the right place and that the string is 12 characters
if(firstDash == [...]
Posted July 24th, 2008 in Code Examples | No Comments »
This little gem is great for replacing a character(s) in a string. In this instance I’m stripping the dash from a phone number by searching for “-” and replacing it with “”.
// The function that you’ll call to replace a character
function replace (origStr, searchStr, replaceStr) {
var tempStr = “”;
var startIndex = [...]