参考
http://www.foxtable.com/webhelp/scr/1564.htm
http://www.foxtable.com/webhelp/scr/1552.htm
调整代码,写到你所需要的事件,即可