Articles
Aborting Links, Cross Browser Comparisons
The situation: you click down on a link and you suddenly realize you didn’t want to click that link. So before you release the mouse button, you move the cursor away from the link.
This is what I am calling …
jQuery Sticky Footer
In general the CSS Sticky Footer is the best way to go, as it works perfectly smoothly and doesn’t require JavaScript. If the markup required simply isn’t possible, this jQuery JavaScript might be an option.
HTML
Just make sure the …
Put Comma Values in Numbers
This function assumes what is being submitted to it is a string, with a decimal point and two places after the decimal. To get your number into that format first, use this.
Then this function will properly comma separate …
Format Currency
This function will round numbers to two decimal places, and ensure that the returned value has two decimal places. For example 12.006 will return 12.01, .3 will return 0.30, and 5 will return 5.00
function CurrencyFormatted(amount) {
var i =
… Don’t Use Black for Shadows
Musings on Paginating Chronological Content
#77: Styling an Individual Article
The idea of “art directing” posts is very popular lately. It’s the idea of applying unique styling to an article on the web in the way that print designers uniquely style articles for, say, a magazine. This is more than …
Elsewhere
Fully Executing jQuery Animations Without Queuing
New Poll: Hyphens, Underscores, or camelCase?
I’m talking about anywhere you need to write multiple words, but can’t use spaces. For example: CSS classes and id’s, programming language variables and function names, website usernames or passwords, etc.
You can vote in the poll in the sidebar. …