새창

새창
아이구 골치야 -_-


<a href="javascript:test=window.open('','tst','width=370,height=532,top=100,left=100');test.document.write('<body leftmargin=0 topmargin=0 background=http://kinimage.naver.net/storage/upload/2005/08/81/rayhorn_1124911770.jpg onclick=self.close()>')">이미지 새창띄우기</a>

=>background에 이미지가 들어가는 것.
따라서 스크롤이 안생기는 문제가 있다.-_-

======================================================================
<head>
<script language="JavaScript">
function win(url)
{
window.open(url,"","width=200,height=200");
}
</script>
</head>
<body>
<a href="javascript:win('이미지주소')">링크글씨</a>
</body>

=>top과 left등에 margin=0 을 줘야 하는데.....
그리고, 이미지가 자동으로 작아진다. 전체 다 보여주려고;;-_-

======================================================================

이미지 새창에 맞게 열기 | + 스크립트 2004/07/22 16:11  

http://blog.naver.com/tasri/120004354373

<head></head> 사이에 삽입합니다.
===========================================

<script language="JavaScript">
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}

function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa);
}

</script>

===========================================
<body></body> 사이에 삽입합니다.
===========================================
<a href="deny_javascript:CaricaFoto('이미지주소')" border="0">보기</a>  



======================================================================

이미지 새창 띄우기 | html & 태그 공부방  2004.08.13 11:45  

차야고냥(zadkiel10)   http://cafe.naver.com/shopbuildcenter/563  


<script language="JavaScript">
var win1Open = null


function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15))
}

function winClose(){
if(win1Open != null) win1Open.close()
}

function doNothing(){}
</script>

<script language="JavaScript1.1">
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>"
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=창닫기></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
}
if(winHandle != null) winHandle.focus()
return winHandle
}
</script>  

위의 소스를 <head>와 </head>사이에 넣고 빨간색으로 된 부분을 수정해준다.

<a href="javascript:doNothing()" onClick="win1Open=displayImage('클릭했을 때 뜨는 이미지주소', 'popWin1', '이미지가로넓이', '이미지세로길이')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''" onfocus="this.blur()"><img src="처음보여질 이미지주소" border="0"></a>  

위의 소스를 <body>와 </body>사이에 넣고 빨간색으로 된 부분을 수정해준다.


=>결국 이것으로 낙찰;

======================================================================