PNG Transparency in IE 6 Using Javascript

Earlier versions of Microsoft Internet Explorer(IE6 and below) didn’t know how to handle the transparency in PNG image files. Luckily this can (somewhat) be corrected using some Javascript. Include the following function in either your site’s javascript file or in the head of your HTML document. [code lang=”javascript”] function bgPng(){ Read more…

By Andrew Odendaal, ago

Swap HTML Elements Using Javascript

It is quite easy to use javascript to swap between divs or any other html dom elements. Using the function below you can pass the id of the element to show and to hide. function swapDivs(show, hide){ document.getElementById(show).style.display = "block"; document.getElementById(hide).style.display = "none"; }

By Andrew Odendaal, ago

A PHP Mail Class

Below is a Mail class I created in PHP, it requires 4 arguments on initiation of the class via the constructor and uses the method ->send() to send the created mail once complete. [code lang=”php”] class Mail { var $to; var $subject; var $content; var $headers; function Mail($to, $subject, $content, Read more…

By Andrew Odendaal, ago

iTunes keeps maximizing!

Oh my goodness, this can be an annoying issue with iTunes. The problem is: iTunes will restore itself or maximize itself all the time every 20 or so seconds without being clicked on, it will also get main focus and whatever you were doing will have to wait! I solved Read more…

By Andrew Odendaal, ago

Replace newline break in Excel

Ever needed to find & replace the newline character in a large excel document? In the Replace Dialog (Ctrl+F) Find: Hold down [alt] and type 010 on the numeric keypad. Replace: Replace with a space ” ” (without quotes)

By Andrew Odendaal, ago

PHPExcel Class Usage

I just finished adding an export xls (excel) export feature to a web application. I used the PHPExcel Class from CodePlex, its really great to work with – as far as the world of exporters go that is. In the example below the “exportCheckpoints” function requires an imploded string seperated Read more…

By Andrew Odendaal, ago

Worst Websites of All Time

http://www.arngren.net/ http://www.lingscars.com/ http://www.theworstwebsite.com/ – beware, alert boxes coming! http://havenworks.com/ http://www.msy.com.au/ http://www.5safepoints.com/ http://www.pixyland.org/peterpan/ http://www.aiseikai.or.jp/ http://www.jfw.ie/ Think you’ve found the worst website of all time? Post it below!

By Andrew Odendaal, ago