<a href="#" onclick="window.open('a.htm','','toolbar=no,width=200,height=200')"><img src=a.jpg width=50 height=50></a>
a.htm<img src="a.jpg" width=200,height=200' border=0>

解决方案 »

  1. 呵呵,这个简单:<script>
    function openimg(img){
    var imgwin="<form name=imgfrm><img src="+img+" name=pic></form>"
    var win_img=window.open("about:blank",'','toolbar=no')
    win_img.location.href="javascript:'"+imgwin+"'"
    win_img.imgfrm.pic.width=win_img.screen.width-20
    win_img.imgfrm.pic.height=win_img.screen.height-20
    }
    </script><a href="#" onclick="openimg('a.jpg')"><img src=a.jpg width=50 height=50></a>
      

类似问题 »