Categories
Code

Append to Body onLoad

I looked for a long time how I could add JavaScript functions to an HTML document’s onLoad attribute. Eventually I found this, something so obvious that I had considered trying it but foolishly didn’t try. [code lang=”JavaScript”] var oldLoad = window.onload; window.onload = function() { oldLoad(); function2(); } [/code]

Categories
Uncategorised

Google SketchUp (free)

Google (who recently bought SketchUp) have split it into two products. There is now the free version ‘Google SketchUp‘, and SketchUp Pro. The more important part of the news release, as far as I’m concerned, is the 3D Warehouse, a user-contributed collection of SU components – essentially a direct competitor to my SketchUp Components Collection. […]

Categories
Uncategorised

Carbon Price Plummets

The price of Carbon dropped an immense 20% today. Down to €21.50, it’s the lowest since the end of December. See the graph at EEX, the largest EU ETS market. Ref: Carbonara (Carbon360)

Categories
Code

jsReq

I wanted to tell the user that they need JavaScript, but obviously only if they don’t already have it enabled. The following is a very crude script which uses the very fact that JS is available to hide the requirement notice… HTML: [code lang=”html”] Warning! You need to have javascript enabled to use this page. […]

Categories
Uncategorised

Kids These Days

I think I must be older than my age. There have been a few incidents recently where [tag]kids[/tag] have showed a remarkable lack of [tag]respect[/tag]. Now I know I haven’t done anything which deserves awe, but I grew up treating all people as neutral until I had a reason otherwise. I was walking with my […]