ツールチップの表示位置を指定する

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="css/prototip.css" type="text/css" media="all">
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/prototype.js" charset="shift_jis"></script>
<script type="text/javascript" src="js/effects.js" charset="shift_jis"></script>
<script type="text/javascript" src="js/prototip.js" charset="shift_jis"></script>
<script type="text/javascript"><!--
Event.observe(window, "load", function(){
new Tip($("lib01"), "Prototypeライブラリのページを表示します",
{
hook:{
target:"topRight", tip:"topLeft"
}
});
}, false);
// --></script>
</head>
<body>
<h1>ツールチップの位置を指定する</h1>
<ul>
<li><a href="http://www.prototypejs.org/" id="lib01">Prototype</a></li>
</ul>
</body>
</html>
サンプルを実行
[戻る]
prototype.jsパーフェクトリファレンス説明などは本書を参考にしてください。