插件下载地址:http://file.urin.take-uma.net/jquery.balloon.js-Demo.html
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Demo</title> </head> <body> <style> .sample{background:red; width:100px; height:100px; margin-top:500px; margin-left:500px;} </style> <div class="sample" ></div> <script type="text/javascript" src="http://files.cnblogs.com/tinyphp/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="jquery.balloon.js"></script> <script type="text/javascript"> $(‘.sample‘).balloon({ contents: ‘内容‘, position: "top" }); </script> </body> </html>