David Walsh Tutorials
Create Your Own Custom JavaScript Dollar Function To Select An Element
The "dollar" function has become famous in recent years due to its inception in many popular JavaScript frameworks. MooTools, for example, uses the dollar function to select a single element from the DOM. This functionality is extremely helpful as it allows you to keep...
Weekend Links – MooTools Calendar, PHP JavaScript Search, Website First Impressions, Dynamic CSS Class, jQuery HeatColor
MooTools CalendarA really suave MooTools class to place inline, accessible, and unobtrusive calendars intro your page.http://www.electricprism.com/aeron/calendar/PHP.net API Search In Firefox Using JavaScriptIf you're like me, you visit the PHP.net website daily. This scriptlet is used like a bookmark -- click it, enter...
(Ab)Using Google To Find Free MP3 Files
I'm not one for posting hacks to illegally attain warez, mp3s, and eBooks, but a coworker showed this to me and I wanted to share it.You can find MP3s using Google's advanced search capabilities. Say you're looking for some great Rod Stewart music. You'd...
Prevent Double Margin & Padding In IE6 When Using CSS Float
My thoughts on Internet Explorer have been well documented; for those that don't already know, I think IE hinders the internet's progress and represents another embarrassment for Microsoft. That said, a majority of users still browse with Internet Explorer 6 so...
How To Create A JavaScript Print Link
Oftentimes a novice web user wont think to do something unless they are presented with the option to do so. I've found this to be true of many of the websites I make. I've added "email to a friend" functionality to customer websites and...
How To Create A JavaScript Close Link
Whenever I create a small JavaScript popup window, I offer a "close" link. Since I'm responsible for the new window, I feel it's my job to help them easily get rid of it. The XHTML Create an anchor with the JavaScript "close" call in the "href" attribute: Do...
Compress Your XHTML Page Output Using PHP Output Buffers
Us programmers love to keep our code readable and neat, which is why we use hundreds of tabs and line feeds in our code. The problem with doing this in the web programming world is that our users don't care about our neatly indented code.
Yahoo’s NoScript Compatibility Saved My Fantasy Football Team
One of the best parts of Thanksgiving is having another day of the week to sit and watch NFL football. Like any hardcore football fan, I have a more than one fantasy football team under my management. Updating my teams ever week is clearly...
Horizontally Center Your Website Structure Using CSS
Every web programmer knows that you can't code a commercial website for a specific browsers or user experience level, much less a screen resolution. Since you can't count on a user having the latest and greatest, you need to use the lowest common denominator of...
Combine Your CSS Media Styles Into One File
When a user comments on one of my blog posts, and they provide a website URL, I always visit the site. I appreciate the time a visitor takes to comment on a post, so I return the favor by checking out the user's website...and the...