## 为了记事而记事

Since the start of the summer ,
I had been waiting for something .
Around me stood many people
waiting for something
Some said its name is college .
Some said its name is jobs .
Some said its name is opportunities .
But the one who return
told us that
its name is time . . .

## Life...

It's a long time since the last update...

I must admit that I was unhappy today; even can be described as 'sad'... I took an English tests prepared for people who want to take the CET-4 but I did completely bad on the test: hardly having enough time to finish it. To be frank, I didn't prepare for the coming tests in this term, as last term past so smoothly that I didn't expect any changes. But it proved that I was wrong...

Arranging time was not easy, I did finally find. I didn't have time to improve the L.UI project but I know maybe there's no people ever cherished it except me... I hope it was a wrong conclusion.

In the coming week, I have to prepare for a speech which is actually a program that is being played on a regular basis and do nothing really good to audience. It was about my study of last term but I didn't think I did good...

Since the last update, KDE has released the second updates and GNOME has released a major version 3.0 . Now the Linux desktop may become more interesting. It is a good news.

## 2011 and the past

It has been 2011, meaning that I had been existed in this world for almost twenty years. Yesterday, the eve of 2011 and the end of 2010, I received several messages that evoke memories of my past life. In the past three years, 2008, 2009 and 2010, I think it would be my second important years in my life.

## [HTML DOM]全局按键事件

// JavaScript Document
function move(event) {
var obj = document.getElementById('sprite');
if(event.keyCode == 37) { //left
obj.style.left = parseInt(obj.style.left) - 5 + 'px';
}
if(event.keyCode == 39) { //right
obj.style.left = parseInt(obj.style.left) + 5 + 'px';
}
}

var x = document.createElement('div');
x.id = 'sprite';
x.style.position = 'absolute';
x.style.left = '0px';
x.style.top = '0px';
x.innerHTML = 'Hello,world!';
document.body.appendChild(x);
document.body.style.width = '500px';
document.body.style.height = '500px';
document.body.onkeyup = function(e) {
if(e != null) {
move(e);
} else {
move(event);
}
}
}

<html>
<script type="text/javascript">
function whichButton(event)
{
}
</script>
<body onkeyup="whichButton(event)">
<p onkeyup="5">
<b>Note:</b> Make sure the right frame has focus when trying this example!</p>
<p>Press a key on your keyboard. An alert box will alert the unicode of the key pressed.</p>
</body>
</html>

（内容已经改了，那些文字没什么意思）IE下弹出的窗口的内容是onkeyup函数的内容，而在Firefox下却是undefine……无奈ing。难道Firefox不支持吗？

alert(document.body.onkeyup);

alert(document.onkeyup);