-
Mad Science… Flash for a page background using JavaScript and CSS
For the current EforAll Expo*1 web site, the designer suggested that we use a flash piece for the background. It’s a kind of hip event, for gamers and other technophiles so we made some assumptions about our user base and decided it was worth a go. The onus fell on me, as these things do,…
-
Javascript: getElementById() for XML fragments and arbitrary XML documents + getElementsByAttribute()
Why I never wrote this function before is a mystery.
-
The joy of… JavaScript’s getElementsByTagName()
For what it’s worth the kernel of this article was dictated into my phone on my drive into work this morning. I got the idea, had the framework and figured- why the hell not just talk to myself for a while. It was actually pretty efficient, so I might do more of it and if…
-
Need/Want to Hide Internet Explorer 6 Specific JavaScript from IE7?
I use conditional comments to hide IE6 specific styles and scripts from IE7 (and IE7 specific styles and scripts from other browsers), but sometimes you need a bit of logic or something to only run on IE6 and earlier. Conditional compilation is a pretty foolproof way to handle that. function ie_function() { /*@cc_on @*/ /*@if…
-
Code : Javascript : Turn a block into a clickable link area.
Here’s a little script (and some CSS) that turns an entire block (in this case a TR) into a click-able item: