Alpha channel PNGs in IE

Gifs suck. PNGs (Portable Network Graphics) are much better – more colours, freedom from intellectual property rights, and (best of all) an alpha channel for transparency. Some good articles:

- PNG opacity (with some nice examples)

- Fuzzy Drop shadows (like on Google Maps)

- Transparency with HTC files

- And again

- Choosing what image to serve in PHP on the server

Related: Opacity in CSS, being able to see through DIVS – CSS Transparency for IE, CSS Opacity

Firefox Bug with Textboxes

I found my first bug in the Firefox web browser. Basically, if you’ve got a text box with autocomplete=”off” as an attribute, the up and down arrows move the text insertion point left and right. The code for this is:
<input type="text" name="x" autocomplete="off"
value="123456789" />

If you’re using Firefox, you can see this here:

Firefox plugin installer code

If you’re nerdy enough to care, here’s the code to install a new search plugin…

// Firefox plugin installer code

function addEngine(name,ext)
{
if ((typeof window.sidebar == "object") && (typeof
window.sidebar.addSearchEngine == "function"))
{
window.sidebar.addSearchEngine(
"http://www.example.com/searching/"+name+".src",
"http://www.example.com/searching/"+name+"."+ext,
name,
"" );
}
else
{
errorMsg(name,ext,"");
}
}