ajax怎么实现tooltips效果
1个回答
展开全部
有个tooltip类库
<html>
<head>
<script src="prototype.js" type="text/javascript"></script>
<script src="tooltip.js" type="text/javascript"></script>
<style>
body { font-family: arial,verdana; }
.popup { padding:10px; border:1px solid #ccc;
background:#eee; width:250px; font-size: small; }
</style>
</head>
<body>
<div id="book1">code generation in action</div>
<div id="popup1" class="popup">
</div>
</body>
<script type="text/javascript">
new ajax.updater( 'popup1', 'text.php' );
new tooltip('book1', 'popup1')
</script>
</html>
<html>
<head>
<script src="prototype.js" type="text/javascript"></script>
<script src="tooltip.js" type="text/javascript"></script>
<style>
body { font-family: arial,verdana; }
.popup { padding:10px; border:1px solid #ccc;
background:#eee; width:250px; font-size: small; }
</style>
</head>
<body>
<div id="book1">code generation in action</div>
<div id="popup1" class="popup">
</div>
</body>
<script type="text/javascript">
new ajax.updater( 'popup1', 'text.php' );
new tooltip('book1', 'popup1')
</script>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询