jquery 鼠标 移动 文本显示如隐藏 如何实现 jquery 鼠标移上一个DIV层 显示一个text文本 移出时隐藏该text文本 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $("#div").mouseenter(function(){ $("#text").show(); }); $("#div").mouseleave(function(){ $("#text").hide(); }); <!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" /><script language="javascript" src="jquery-1.6.2.js"></script><script language="javascript" >$(function(){ $("#myDiv").hover(function(){ $(this).hide(1000); }, function(){ $(this).show(1000); });});</script><title>无标题文档</title></head><body><div id="myDiv" style="border:1px #FF0000 solid">Text</div></body></html> 把jquery的引用换成你自己jquery的位置 $(function () { $("#div1").mouseover(function () { $(this).hide("fast"); }); $("#div1").mouseleave(function () { $(this).show("fast"); }); }); <script type="text/javascript" src="jquery-1.3.2.js"></script><script type="text/javascript">$(document).ready(function(){ $("p").mouseover(function(){ $("#txt").show(); }); $("p").mouseout(function(){ $("#txt").hide(); });});</script></head><body><p style="background-color:#E9E9E4">请把鼠标指针移动到这个段落上。</p><input type="text" id="txt"></body></html> 你的层没有弄清楚嘛,index[1] 太菜了 还是解决不了这问题 谁帮忙下 关于一个<c:if >问题????? 从数据库中读出数据后,怎么在下拉框里显示啊? 初学,谁能给个structs的<html:select>使用例子,谢谢! 我要实习 关于.properties文件的问题(100分) 讨论:公文流转系统的主要开发技术 页面覆盖问题 谁知道这个程序的display方法为什麽一定要用(ResultSet result)作为参数呢?! 关于webService客户端调用的问题 请教关于WEB聊天的问题 jquery中,不管选择下拉列表哪一项,返回的值都是第一项的value值
$("#div").mouseenter(function(){
$("#text").show();
});
$("#div").mouseleave(function(){
$("#text").hide();
});
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" src="jquery-1.6.2.js"></script>
<script language="javascript" >
$(function(){
$("#myDiv").hover(function(){
$(this).hide(1000);
},
function(){
$(this).show(1000);
});
});
</script>
<title>无标题文档</title>
</head><body>
<div id="myDiv" style="border:1px #FF0000 solid">Text</div>
</body>
</html>
$("#div1").mouseover(function () {
$(this).hide("fast");
});
$("#div1").mouseleave(function () {
$(this).show("fast");
});
});
<script type="text/javascript">
$(document).ready(function(){
$("p").mouseover(function(){
$("#txt").show();
});
$("p").mouseout(function(){
$("#txt").hide();
});
});
</script>
</head>
<body>
<p style="background-color:#E9E9E4">请把鼠标指针移动到这个段落上。</p>
<input type="text" id="txt">
</body>
</html>