日期:2014-05-17 浏览次数:20675 次
<!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" /> <title>无标题文档</title> <script src="../jquery-1.3.2.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ var fa = false; $("#baidu").bind("mouseover",function(event){ $(".out .in").show(); $(this).css("cursor","pointer"); }); $("#baidu").bind("mouseout",function(event){ // alert($(".out .in")[0].offsetLeft); // if($(".out .in")[0].clientLeft<event.clientX) var obj = document.elementFromPoint(event.clientX,event.clientY); if(obj.id == "in") { $(".out .in").hover(function(){ $(this).show(); },function(){ $(this).hide(); }); } else { $(".out .in").hide(); } }); }); </script> <style> .out{width:600px; height:450px; position:relative; border: 1px solid red;} .out img{border:1px solid #0F0;} .out .in{width:250px; height:150px; position:absolute; left:180px; top:50px; border:1px solid #ccc; display:none} </style> </head> <body> <div class="out"> <img id="baidu" src="http://www.baidu.com/img/baidu_logo.gif" /> <div id="in" class="in">这里面的内容你自己加.距离也自己调.</div> </div> </body> </html>
------解决方案--------------------
<a id="test01x00000000" onmouseover="ImageButton1_Click(event)" onmouseout="Hide();" href="#">Test 鼠标放上就显示</a> <div id="testx01x000" style="position:absolute;display:none; z-index:0; border-color: inherit; font-size:14px;width:400px; float:left"> <img src="http://shhq-mossweb03:2019/loading.gif" alt="数据加载中...请稍后"/>数据加载中...请稍等 </div>
------解决方案--------------------
给你一个我曾经用过的一个代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">