<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>
function ct(checked,image)
{
if(checked){
var win = window.open("about:blank");win.document.write("<img src="+image.src+">");
}
}
</script>
<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>
绝对路径,No problem!