<body onLoad=\"document.getElementById('im').src='http://img10.imageshack.us/img10/9930/bbmoticon.png\">
I'm a noob at javascript, but I was thinking something like this: