http://www.puhwa.net/net810/sucai/javascript/bg/02.htmhttp://www.easysea.com/diannao/books/software/web/JavaScript/index01/045.htm复制代码就可以了