大旭工作室 发表于 2018-11-24 23:01:26

鼠标移到文字链接上弹出图片代码

<!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>
<style type="text/css">
<!--
#box{
display:none;
width: 315px;
height: 180px;
background:#CCC;
border:1px solid #333;
padding:12px;
text-align:center;
}
-->
</style>
<script type="text/javascript" language="javascript" >
<!--
function display(){
document.getElementById("box").style.display="block";
}
function disappear(){
document.getElementById("box").style.display="none";
}
-->
</script>
</head>
<body>
<a href="#" onmouseover="display()" onmouseout="disappear()">查看光度范围</a>
<div id="box" onmouseover="display()" onmouseout="disappear()"><img src="123.png" /></div>
</body>
</html>

页: [1]
查看完整版本: 鼠标移到文字链接上弹出图片代码