如何制作mouse移动在一个上即出现一个提示说明

DeliverGuy 2004-01-30 02:12:17
如何制作mouse移动在一个<input type="text">上即出现一个提示说明

类似 这里结分的时候那种~!

多谢~!
...全文
64 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
超级大笨狼 2004-01-30
  • 打赏
  • 举报
回复
你还没有登录,无法发表回复,请首先登录
登 录.. [注 册] 忘记密码


lbd8848 2004-01-30
  • 打赏
  • 举报
回复
<input type=text name=aa onmouseover="cc(this)" onmouseout="out()">
<div id="pop" style="position:absolute;width:120; display: none; z-index:99; font-size: 13px; background: #ffff00">hello</div>
<script language="javascript">
var cen = document.all.pop;
function cc(e)
{
var ttop = e.offsetTop;
var tleft= e.offsetLeft;
var h = e.clientHeight; //在下面这个 while 循环里的e已经不是那个形参了
var w = e.clientWidth;

while (e = e.offsetParent){ttop += e.offsetTop; tleft += e.offsetLeft;}
cen.style.display = ""; //层显示
cen.style.top = ttop + h;
cen.style.left= tleft + w - cen.clientWidth;

}
function out(){cen.style.display = "none";}
</script>
Ranmei 2004-01-30
  • 打赏
  • 举报
回复
^_^
DeliverGuy 2004-01-30
  • 打赏
  • 举报
回复
<input type=text title="dd"> 如何改 title 的背景色???
DeliverGuy 2004-01-30
  • 打赏
  • 举报
回复
<input type=text title="dd">
好像不行嘛??
lbd8848 2004-01-30
  • 打赏
  • 举报
回复
<input type=text title="dd">
jQuery入门基于jquery-3.1.1.js <input type="button" value="button"> <script> $(function(){ $("input").click(function(){ alert("the button is clicked"); });

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧