Tutorials Page 234
Advanced CSS – Class Is Out – Avoiding Classes By Using Formatting Tags For Structure
Nothing makes me cringe more than when I see other programmers use a class declaration for every XHTML tag in their programming. Using too many CSS class declarations can result in: Bloated page downloads for the user Bloated CSS file downloads for the user Difficulty in editing CSS...
MooTools Image MouseOvers – Cleaner JavaScript Code, Less Hassle
Creating mouseover code can be a real mess but using MooTools I put together a solution that saves me time and keeps my code super clean. There are some practices that I use with my theory. All "mouseover" versions of the image end in...
Advanced CSS Printing – Using JavaScript Double-Click To Remove Unwanted DIVs
Like any good programmer, I'm constantly searching around the internet for ideas and articles that can help me improve my code. There are thousands of talented programmers out there so I stumble upon some great articles and code snippets that I like to print out...
PHP Email Validator – Email MX DNS Record Check
Validating an email address is one of the hardest feats on the web. A valid email can be marketing gold, but an invalid email address is dead weight. Not only does it require a CPU-taxing PHP regular expression ("/^[A-z0-9\._-]+"."@" . "[A-z0-9][A-z0-9-]*".
Weekend Links: MooTools AJAX, Prototype 1.6, PHP Tips, SWFUpload, Accessibility, CSS Layouts
Another great week of programming, blogging, and events has gone past. Here are some of the highlights of the week:AJAX Responders In MooToolsGreat article / how to by MooTools legend Harald Kirschner (digitarald) on AJAX Responders in MooTools.http://digitarald.de/journal/ajax-responder-in-mootools/Prototype 1.6 Release Candidate ReleasedI've...
PHP Force Download – Keep Track of What’s Going Down
A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can:Validate that a person is logged inIncrement a counter in a text fileConnect to your database and log IP information...
Removing Internet Explorer’s Active Content Warning on Flash Objects
A couple of years ago Internet Explorer cause millions of programmers and users alike a giant pain by making users click on a flash object, ActiveX object, and java applet before the object became active and usable. Businesses, of course, cried out for their programmers...
PHP Email Encoder – Prevent Spam Bots From Collecting Email Addresses
Police have criminals. PETA has Michael Vick. Bud Selig has Barry Bonds. Programmers have spammers. Email spam is probably the most annoying part of my job. Whenever I'm placing email addresses on a page or coding another web form, I have to expend...
Advanced CSS Cursors – Increase Usability With A Pointer
All browsers provide their own stylesheet which includes settings link colors (blue for unvisited and purple for visited, in IE's case), default padding and margins, text sizes, and cursors. Browsers provide the pointer cursor to make it obvious to the user that the text or...
Advanced CSS Tables II – Using Mootools JavaScript For Alternate Row Colors
As I discussed in Advanced CSS Tables - Using CSS3 For Alternate Row Colors, we will eventually be able to use the ":nth-child(argument)" pseudo-class in CSS3 to provide alternate row background colors. What do we use in the mean time? You can explicitly...