<input type=checkbox onclick=ct(this.checked,img)><img src="img1" alt="111" id=img><script>
function ct(checked,image)
{
if(checked){
var win = window.open("about:blank");win.document.write("<img src="+image.src+">");
}
}
</script>

解决方案 »

  1.   

    我是测试过的怎么可能:
    <input type=checkbox onclick=ct(this.checked,img) ID="Checkbox1" NAME="Checkbox1"><img src="http://www.csdn.net/Images/logo_csdn.gif" alt="111" id=img><script>
    function ct(checked,image)
    {
    if(checked){
    var win = window.open("about:blank"); //运行时换成打开页面的连接xxx.aspxwin.document.write("<img src="+image.src+">");
    }
    }
    </script>
      

  2.   

    当然,在加载页面,如果图片的SRC是相对路径,要注意路径问题。
    绝对路径,No problem!
      

  3.   

    有问题,可以在CSDN上发信息给我的