Javascript – Capitalize Each Word in a String

This is a great little function that I use to capitalize every word in a string.

<script type="text/javascript">
function wordToUpper(strSentence) {
    return strSentence.toLowerCase().replace(/\b[a-z]/g, convertToUpper);

    function convertToUpper() {
        return arguments[0].toUpperCase();
    }
}
</script>

Brusheezy – index of Free Photoshop Brushes

Brusheezy - index of Free Photoshop Brushes

Brusheezy is a place for artists to download and vote for the best custom Photoshop Brushes and photoshop patterns on the internet! This site is updated every day with new Brushes for Photoshop so check back often!

Vecteezy – index of Free Vector Graphics

Vecteezy - index of Free Vector Graphics

Vecteezy is an index of Free Vector Graphics available for download by some of the best artists around the world. The site is updated every day, so be sure to check back often.

Datejs – An Open-Source JavaScript Date Library

Datejs is an open-source JavaScript Date Library. Comprehensive, yet simple, stealthy and fast. Datejs has passed all trials and is ready to strike. Datejs doesn’t just parse strings, it slices them cleanly in two.

// What date is next thrusday?
Date.today().next().thursday();
 
// Add 3 days to Today
Date.today().add(3).days();
 
// Is today Friday?
Date.today().is().friday();
 
// Number fun
(3).days().ago();

// 6 months from now
var n = 6;
n.months().fromNow();
 
// Set to 8:30 AM on the 15th day of the month
Date.today().set({ day: 15, hour: 8, minute: 30 });
 
// Convert text into Date
Date.parse('today');
Date.parse('t + 5 d'); // today + 5 days
Date.parse('next thursday');
Date.parse('February 20th 1973');
Date.parse('Thu, 1 July 2004 22:30:00');

MooCrop – A Mootools Image Cropping utility

MooCrop - A Mootools Image Cropping utility

MooCrop is an Image Cropping utility using the amazingly powerful Mootools Javascript framework. Alone it serves no practical purpose but used in conjunction with a server side script becomes a powerful image manipulation tool.