87,917
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function liOver()
{
document.getElementById("gg2").style.display="";
}
function doLiOut()
{
document.getElementById("gg2").style.display="none";
}
</script>
<div id="gg1" style="position:absolute">
<a href="http://house.ksls.com.cn/2010136658.html" target="_blank" onmouseover="liOver()" onmouseout="doLiOut()">
<img src="[!--news.url--]skin_2011/default/images/za2.gif" border="0" height="81" width="81">
</a>
<div id="gg2" style="display:none;" style="position:absolute;">
<a href="http://house.ksls.com.cn/2010136658.html" target="_blank" >
<img src="[!--news.url--]skin_2011/default/images/za1.gif" border="0" height="250" width="250">
</a>
</div>
</div>
<script type="text/javascript">
<!--
var ad1=new AdMove("gg1");
ad1.Run();
//-->
</script>
写2个css样式、一个是正常图片的
另一个是图片变大后的
处理下鼠标mousenover和mouseout事件就OK了