▼マウスオーバーすると、a要素のtitle属性の内容がバルーン表示されます。
<!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" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="ja" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="imagetoolbar" content="no" /> <title>GLT - Good-Looking Tooltips | 設置サンプル</title> <link rel="stylesheet" type="text/css" href="/content/lib/global.css" /> <script type="text/javascript" src="/content/lib/glt/glt.js"></script> <script type="text/javascript"> /* 角丸ツールチップの上辺画像 */ GLT.topImagePath = "/content/lib/glt/rounded-top.gif"; /* 角丸ツールチップの下辺画像 */ GLT.bottomImagePath = "/content/lib/glt/rounded-bottom.gif"; </script> <style type="text/css"> .glt-elm { position:absolute; left:0; top:0; width:150px; color:#fff; opacity:0.9; visibility:hidden; } .glt-elm p { margin:0; padding:5px; background:#666; font-size:.8em; } .glt-elm img { display:block; } /* for IE */ .glt-elm { filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90); } </style> <link rel="stylesheet" type="text/css" href="/common/css/example.css"></head> <body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1> <h3 class='h'>実行結果</h3> <h1><a href='http://www.robertnyman.com/glt/'>GLT - Good-Looking Tooltips</a> | 設置サンプル</h1> <p>▼マウスオーバーすると、a要素のtitle属性の内容がバルーン表示されます。</p> <p> <a href="http://www.flickr.com/photos/22559849@N06/2973155055/" title="クリスピー・クリーム・ドーナツ"><img src="http://farm4.static.flickr.com/3141/2973155055_4cf4370939_t.jpg" width="100" height="75" alt="クリスピー・クリーム・ドーナツ" /></a> <a href="http://www.flickr.com/photos/22559849@N06/2974008614/" title="くまさんケーキ"><img src="http://farm4.static.flickr.com/3222/2974008614_736e2d5b50_t.jpg" width="100" height="75" alt="くまさんケーキ" /></a> </p> </body> </html>