鼠标经过图片变大

2009年6月4日星期四 | | |

   

<body> 下面加入
<div id="a1" style=" position:absolute; z-index:2;"></div>
  
  
<script>
function show(event,_this,mess) {
    event = event || window.event;
    var t1="<table     cellspacing='1' cellpadding='10' style='border-color:#CCCCCC;background-color:#FFFFFF;font-size:12px;border-style:solid;    border-width:thin;text-align:center;'><tr><td><img src='" + _this   + "'  >    <br>"+mess+"</td></tr></table>";
     document.getElementById("a1").innerHTML =t1;
      //document.getElementById("a1").innerHTML = "<img src='" + _this.src + "' >";
   document.getElementById("a1").style.top   = document.body.scrollTop + event.clientY + 10 + "px";
   document.getElementById("a1").style.left = document.body.scrollLeft + 50+ 10 + "px";
    document.getElementById("a1").style.display = "block";
}
function hide(_this) {
     document.getElementById("a1").innerHTML = "";
document.getElementById("a1").style.display = "none";
}
</script>

下面 是表格代码

<table width="981" height="180" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFEBEF"><table width="490" height="180" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="right" bgcolor="#FFEBEF"><table width="470" height="180" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFD3BD">
          <tr>
            <td ><img src="image/zzld/a01.jpg" width="210" height="145" onMouseMove="show(event,'image/zzld/b01.jpg','文明创建工作部署会')"onmouseout="hide(this)"  /></td>
            <td ><img src="image/zzld/a02.jpg" width="210" height="145" onMouseMove="show(event,'image/zzld/b02.jpg','召开全体军人大会')"   onmouseout="hide(this)"  /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td bgcolor="#FFEBEF"><table width="490" height="180" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#FFEBEF"><table width="470" height="180" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" bgcolor="#FFD3BD"><img src="image/mzgl/a01.jpg" width="210" height="145" onMouseMove="show(event,'image/mzgl/b01.jpg','召开民主生活会')"   onmouseout="hide(this)"  /></td>
            <td align="center" bgcolor="#FFD3BD"><img src="image/mzgl/a02.jpg" width="210" height="145" onMouseMove="show(event,'image/mzgl/b02.jpg','队员参与多种形式消防队伍建设集体讨论')"   onmouseout="hide(this)" /></td>
          </tr>
        </table>

 
我的QQ空间
Mysql+PHPmyadmin提权技巧
Mysql+PHPmyadmin提权技巧本篇文章来源于 新世纪网安基地 (www.5...
 
 

0 评论:


所有文章收集于网络,如果有牵扯到版权问题请与本站站长联系。谢谢合作![email protected]