<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="javascript:CaricaFoto('새창으로 보여질 이미지 경로')" BORDER="0">링크메뉴</A>
반응형
'Program' 카테고리의 다른 글
gerrit 설치 가이드. (0) | 2013.05.23 |
---|---|
Balsamiq : 빠른 UI 디자인을 위한 도구 (0) | 2013.04.04 |
it관련 책 배포 사이트 (0) | 2012.12.14 |
자바 imageViewer (0) | 2010.10.26 |
Oracle - Date 날자 관련 함수 (0) | 2010.09.13 |