Sep 28, 2006
02:52PM
IE Javscript Event Capturing
Did you know that IE doesn't pass a javascript event to the handler function? Well, it doesn't. As I learned from BrainJar's article on The DOM Event Model:
Instead of passing an Event object to a handler function, it provides a single, global object named window.event
So, for example, lets say you have a link. We'll call it "linky."
<a href="#" id="linky">test</a>
At some point you add an onclick function to linky like so:
<script>
$('linky').onclick=handler;
</script>
With standards compliant browsers (FireFox Safari etc.), you can define the handler function like this to announce your mouse's X position:
<script>
function handler(event){
alert(Event.pointerX(event));
}
</script>
Note the above function takes the click event as a parameter. In IE, you do a little something like this:
<script>
function handler(){
alert(Event.pointerX(window.event));
}
</script>
Some of the above code ($() and Event) assumes you are using prototype.js.
Sep 25, 2006
09:31PM
Dante's Inferno in Wisconsin
Following a poster I did for last year's "Great World Texts in Wisconsin" series, I recently wrapped up a new poster design for the The Center for The Humanities. This year the theme is Dante's Inferno. From the Center's website:
The mission of the "Great World Texts in Wisconsin" program is to encourage more high school and university students to read the classic world texts of the humanities and to connect and engage UW faculty and high-school teachers across the state in this project.
And here is the poster:

A Bite to Eat
Sep 24, 2006
01:41PM
The Art of Justin Wood
So many awesome images in Justin Wood's gallery, but I had to choose one.
umdenken
"umdenken," German for "rethinking," is a book full of clever, if not particularly useful, re-uses of every-day objects. Hinters Ohr klemmen!

Sep 23, 2006
08:38PM
A Bit A Bout Design Daily
As you may have noticed, there has been a link to "Design Daily" in my sidebar for a week or two. "What the hell is that?" you may ask yourself. Well, I'm about to tell you.
When I got my new iMac, I was looking for something to keep my mini busy... to pass the time. At around the same time, I discovered this cool little python script called webkit2png, which uses the webkit rendering engine to take damn good screenshots of webpages, rendered correctly... which seems to be a problem w/ some other screencap services. So I wrote a ruby script to slurp links from a number of design-related feeds, and sic webkit2png on the links. It then uploads them to my web server, and voila! Screencaps of designy sites. Sometimes visually browsing design sites is more useful than text links when you're just looking for a little eye-candy. Inspiration. There is also an RSS feed for the screencaps, if you like to take it that way.
One interesting side-effect of the script is that, since it loads the entire page before taking the screencap, it also loads audio files. Every once in a while my mini will start playing a site's soundtrack for about 30 seconds out of nowhere.








Comments