How to use google analytics to track events in flash. Google Analytics lets you track any browser based event, including Flash and JavaScript events. To track an event, call the urchinTracker() JavaScript function with an argument specifying a name for the event. For example, calling: javascript:urchinTracker(‘/someeventhappened’); will cause each occurrence of that Flash event to… Read more »
Monthly Archives: January 2007
Duplicated Characters IE Bug
IE6 has a really random bug involving multiple floated elements: characters from the last of the floated elements are sometimes duplicated just below the last float. There is no additional markup and there seems like there is nothing triggering it. Turns out the problem lies with IE having trouble dealing with html comments in between… Read more »
Transparency PNG Support in IE
As default, IE doesn’t support the alpha channel in PNG graphics, so if you use a colour to transparency gradient on an image it’ll show up as crappy grey block. You can get around this by including a htc file (html component – mechanism for implementing dhtml in script) as a behaviour attribute in your… Read more »
PHP UTF-8 tips
It’s not as hard as you might have heard. I’ve finally left my cosy ASCII world and it’s not as bad as I thought. Start with this : http://www.nicknettleton.com/zine/php/php-utf-8-cheatsheet – a checklist of what you need to do. Good reading here : http://www.phpwact.org/php/i18n/charsets. See the links at the bottom of this one. Also added support… Read more »
IE Min Height Hack
Lets you set the minimum height of an element. IE6 doesn’t support min-height but you can get around it using the code below. /* FOR PROPER BROWSERS */ .container { min-height:8em; height:auto; } /* USE ESCAPE CHARS TO GET IE ONLY READING THIS */ /**/ * html .container { height: 8em; } /**/