Archive for July, 2009

Passing parameters to event handler functions

When coding in javascript, some people may wonder how to pass extra parameters to the event handler function. Here is a workaround hope can help you:
blow the example is coded using prototype
$(el).observe(’click’, function(e){ EVENT_HANDLER_FUNCTION(e, para1, para2, …)})
I guess the example code is quite self-explaining, hope can help =)

Tuesday, July 28th, 2009

Mouseover and mouseout problem

I discovered recently that it causes headache when using mouseover and mouseout events together on one HTML element. This will not have any problem if that element does not have any child element, otherwise,  the problem starts. My problem occurred when I tried to use special effects when mouseover and mouseout of an element which [...]

Monday, July 27th, 2009

最近心情不好。。

最近心情不好。。。发生了好多不好的事情, 工作上的, 家里的, 感情的, 感觉非常的不顺利, 可能是之前我实在太顺利了, 也没有遇到什么很大的挫折, 生活上也是被溺爱着, 感情上也缺乏经验。。。不过这就是生活吧, 总是有起有落, 就像我一直相信的一样, 运气是守恒的 =).  生活还得继续, 还有很多重要的事情需要我努力, 希望这段时间能很快过去, 一切可以走上正轨~~ Good luck to myself!

Sunday, July 26th, 2009

…………………..

经过了一段短暂而神奇的经历。。。又开始了原来的生活, 工作工作工作~~希望一切顺利!

Sunday, July 19th, 2009

缘分~~

缘分是啥?那是电视里骗收视率的把戏~~以前我从来不相信。
最近通过种种的亲身感受, 使我渐渐开始相信可能真有缘分这东西。。。2个人能从茫茫人海中相识, 相恋, 到最后相爱真得不是一件容易的事情! 以前听人说, 人的一生能有1,2个真正的好朋友就已经是很庆幸的事情了, 更何况是找到那个互相适合的另一半? 有的人可能一路上有过很多个男/女朋友, 但是最终都由于某些原因而没有走下去, 这都是很可怜的事情, 但是也可能是没有缘分吧… 感情是两个人的事情,  很多小的事情都有可能造成是分手的导火索, 所以我个人的感觉, 一旦找到合适的另一半, 请千万珍惜~~不要等到了错过或者失去才感到后悔. 也不要永远期待着更好地而错失眼前的那个人. 感情没有好和坏, 只有合适和不合适.
祝大家早日找到另一半, 希望那些已经很幸运的找到的人们, 请珍惜现在的幸福并且努力维持下去~~~~

Sunday, July 12th, 2009

First touch of Drupal

Drupal is one of the popular platforms which let users easily publish, manage and orgnize rich contents on the web. It is very similiar to Wordpress.
Personally, I have never heard of it before last month. I started with a new web site project last month and I was supposed to use drupal to build it. [...]

Saturday, July 11th, 2009