Category Archives: JavaScript

JavaScript solution to PNG alpha transparency in IE

Solutions to the problem of PNG alpha transparency in IE6 have been around for a while, as exemplified by this post on Cross-Browser Variable Opacity with PNG on A List Apart. This solution uses script to write in the correct … Continue reading

Posted in JavaScript | Leave a comment

More JavaScript haiku

I first published a JavaScript haiku called ‘Fear of tomorrow’ here. Well, I’ve written some more. Apparently these are more likely to be classed as Senryuu, but what do I know. Anyway, here are some others that I’ve written, with … Continue reading

Posted in JavaScript, Programming | Leave a comment

Deleting page elements using removeChild in JavaScript

Here’s a handy(?) script to delete pieces of any page you’re on when you click on them: javascript:document.onclick=new Function(‘e’,’document.all?src=event.srcElement:src=e.target;src.parentNode.removeChild(src);return false’);void(0); Go to any page on the web, paste it into the address bar of your browser and then start clicking … Continue reading

Posted in JavaScript, Programming | Leave a comment

Div, IFrame, Form: the CSS version of Scissor, Paper, Stone

An interesting browser (mostly, it has to be said, Internet Explorer) rendering issue has produced an slightly odd workaround. The problem arises from the rendering of form elements, specifically dropdowns, by the browser. These are registered as windows components and … Continue reading

Posted in JavaScript, Programming | 1 Comment

JavaScript as a ‘real’ language

I’ve just come across these pages about JavaScript that I found very interesting. The examples of private variables and inheritance are quite an eye-opener for someone like me who’s been writing away in JavaScript and DHTML for a few years … Continue reading

Posted in JavaScript, Programming | Leave a comment

JavaScript Haiku

There are a few sites on the web which will generate haiku’s using a set of code rules. I think I can lay claim to have written what could be the world’s first (and only) haiku actually in JavaScript. I’m … Continue reading

Posted in JavaScript, Programming | 1 Comment

the5k.org web page competition

The 5k web page competition looks like it might finally be getting going again. News about it is here: Siggraph’s 5k competition. However, I’m somewhat confused as the closing date in the right hand side column is set at July … Continue reading

Posted in JavaScript, Programming | Leave a comment