Code Examples

Some code examples and tutorials you might find useful...

Expand/Collapse Hidden DIV or TR Content
Very often it's necessary to hide certain content on a page until the user decides to view it. Here I show a couple techniques I've used that have proven their worth.

Transparent Tab & Button Graphics
Using the GD libraries in PHP I've developed a slick way of generating tab and button graphics on-the-fly that also have true 24bit PNG transparency built right in. Full source code and graphic templates are provided.

(Somewhat) Simple AJAX w/Prototype.js
If you haven't tasted the power of prototype, I feel sorry for you. Ajax is just one of the many things prototype makes a snap. This example demonstrates how to easily set up a PHP/prototype DIV content replacement that might help you get started on your own project.