新闻投稿:76937083@qq.com QQ:76937083

图片点击放大JS代码

时间: 2011-12-06 来源: 未知 关键词: 阅读次数:

核心提示:以下是图片点击放大代码,,,, html head meta http-equiv=Content-Type content=text/html; charset=gb2312 title点击图片弹出层放大图片,点击放大图片消失/title /head body script language=JavaScript !-- function MM_showHideLayers() { //...

以下是图片点击放大代码,,,,

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>点击图片弹出层放大图片,点击放大图片消失</title>
</head>

<body>
<script language="JavaScript">
<!--
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//-->
</script>
<a href="" onClick="return false"><img name="small" border="0" src="http://www.cymdg.cn/uploads/allimg/110921/1_110921122134_1.jpg" width="250" height="60" onClick="MM_showHideLayers('layer2','','show');MM_showHideLayers('layer','','hide');MM_showHideLayers('layer1','','hide');" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>
<div id="layer2" style="position: absolute; left: 14px; top: 3px; width: 540; height: 130; z-index: 1; visibility: hidden">
  <table border="0" width="761" height="216" cellspacing="0" cellpadding="0">
    <tr bordercolor="#FFFFFF">
      <td width="624" valign="top" align="left">  
        <div align="center">
          <center>
            <table border="0" width="122%" height="181" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100%" height="151" valign="top" align="center"><a href="" onclick="return false" ><img name="big" src="http://www.cymdg.cn/uploads/allimg/110921/1_110921122134_1.jpg" onclick="MM_showHideLayers('layer2','','hide');MM_showHideLayers('layer','','show');MM_showHideLayers('layer1','','show');return false;" border="0" width="540" height="130" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>
                </td>
              </tr>
              <tr>
                <td width="100%" height="12" valign="top" align="center"> </td>
              </tr>
            </table>
          </center>
        </div>
      </td>
    </tr>
  </table>
</div>

</body>

</html>
<br><br><br><br><br><br>
<p align="center">本特效由 <a href=http://www.abm163.com>南方互联网页特效</a>丨abm163.com 收集于互联网,只为兴趣与学习交流,不作商业用途。</p>
 

上一篇:扎兰屯林区实现无缝监控和智能预警
下一篇:dede织梦data正确迁移及引起的问题解决方法
责任编辑:admin

相关新闻

请自觉遵守互联网相关政策法规,作者可以直接删除恶意评论、广告或违禁词语
用户名: 验证码:点击我更换图片
打理网店四大“俗招”
人靠衣服马靠鞍 货好还需巧打扮打理网店四大俗招 消费者去街上购物,多数人会选择正规的大商店、大超市。同样,...[详细]