JS 鼠标经过显示大图
<!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>JS 鼠标经过显示大图</title>
</head>
<body>
<STYLE type=text/css>BODY {
MARGIN-TOP: 0px; FONT-SIZE: 9pt; MARGIN-LEFT: 4px; MARGIN-RIGHT: 0px; FONT-FAMILY: "宋体"
}
A {
FONT-WEIGHT: 400; FONT-SIZE: 13px; COLOR: black; TEXT-DECORATION: none
}
A:hover {
FONT-WEIGHT: 400; FONT-SIZE: 13px; COLOR: red; TEXT-DECORATION: underline
}
A:active {
FONT: 9pt "宋体"; CURSOR: hand; COLOR: #ff0033
}
</style>
<script>
function show(tips,flag,url){
var my_tips=document.getElementById("mytips");
if(flag){
my_tips.style.display="";
if (url!=null){my_tips.innerHTML="<img src='"+url+"' align=left width=300>"+tips;}
else{ my_tips.innerHTML=tips;}
my_tips.style.left=event.clientX-20;
my_tips.style.top=event.clientY+20;
}
else
{
my_tips.style.display="none";
}
}
</script>
<a href="http://www.jsbulo.com/" tips="12333123" onmousemove=show(this.tips,1,'http://pic.52photoshop.cn/2004178275456127.jpg') onmouseout=show(this.tips,0)>技術部落</a>
<div id=mytips style="position:absolute;width:150;height:16;border:1 gray solid;font-size:9pt;background-color:#ffffff;color:red;display:none;filter: progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3);">
</div>
</body>
</html>