JavaScript类似QQ窗口的抖动效果代码
演示实例如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <FCK:meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> #body{text-align:center;} #test{width:119px;position:absolute;margin:10px auto;height:114px;background:url(http://www.webjx.com/files/080516/1_005849.jpg) ;border:2px dotted red;} </style> </head> <body> <div style='margin:10px 200px'> <div><input type="button" value="~~~让我抖抖吧~~" onclick_fckprotectedatt="%20onclick%3D%22nn.start()%22" /></div> <div><input type="button" value="别抖了眼睛晕的很" onclick_fckprotectedatt="%20onclick%3D%22nn.stop()%22" /></div> <div id="test"></div> </div> </body> </html>
在线运行演示