<div class="codetitle"> <span><a style="CURSOR: pointer" data="75143" class="copybut" id="copybut75143" onclick="doCopy('code75143')"><u>复制代码</u></a></span>代码如下:</div> <div class="codebody" id="code75143"> <br>以下は程序代码:<!DOCTYPE html/> <br> <br><script type="text/javascript" src="http://www.w3school.com.cn/jquery/jquery.js"></script> <br><script type="text/javascript"> <br>$(function() { <br>$(".v").mouseover(function() { <br>var x = $("<div class='vs'></div> "); <br>x.appendTo($('body')); <br>x.css({ <br>幅 : $(this).width() - 6, <br>高さ : $(this ).height() - 6, <br>left : $(this).offset().left, <br>top : $(this).offset().top <br>}); $.browser.msie ? これ: x).mouseout(function(){ <br>x.remove(); <br>}); <br></script> <br> <br>.vs {z-index:1000;position:absolute;border:3px Solid red;} <br></style> <br></head> <br> <br><a href="#"><img src="http://img2.bdstatic.com/img/image/774730e0cf3d7ca7bcb7a7b223ebc096b63f624a89b.jpg" border="0" class="v" /> </a> <br><a href="#"><img src="http://img2.bdstatic.com/img/image/774730e0cf3d7ca7bcb7a7b223ebc096b63f624a89b.jpg" border="0" /></a> <br><a href="#"><img src="http://img2.bdstatic.com/img/image/774730e0cf3d7ca7bcb7a7b223ebc096b63f624a89b.jpg" border="0" class="v" /> </a> <br></body> <br></html> <br><br> <br>点击查看演示:http://biyuan.tk/u/upload/201311131123292656.html</div>