ÆÄÀÏ÷ºÎ °¹¼ö¸¦ È®ÀåÇÑ´Ù¸é ¾Æ·¡ ó·³ È®ÀåÀÌ °¡´ÉÇÕ´Ï´Ù.
<script>
var imgarr=new Image();
function view1(add)
{
imgarr.src=add;
var size=imgarr.width;
var sw=250;
if (sw>=size)sw=size;
else sw=sw;
document.images.imgbox1.style.display="";
document.images.imgbox1.src=imgarr.src;
document.images.imgbox1.width=sw;
}
function view2(add)
{
imgarr.src=add;
var size=imgarr.width;
var sw=250;
if (sw>=size)sw=size;
else sw=sw;
document.images.imgbox2.style.display="";
document.images.imgbox2.src=imgarr.src;
document.images.imgbox2.width=sw;
}
function view3(add)
{
imgarr.src=add;
var size=imgarr.width;
var sw=250;
if (sw>=size)sw=size;
else sw=sw;
document.images.imgbox3.style.display="";
document.images.imgbox3.src=imgarr.src;
document.images.imgbox3.width=sw;
}
function view4(add)
{
imgarr.src=add;
var size=imgarr.width;
var sw=250;
if (sw>=size)sw=size;
else sw=sw;
document.images.imgbox4.style.display="";
document.images.imgbox4.src=imgarr.src;
document.images.imgbox4.width=sw;
}
</script>
<input type='file' onchange="view1(this.value);">
<br>
<img src='' name='imgbox1' align='top' onError="this.style.display='none';">
<br>
<input type='file' onchange="view2(this.value);">
<br>
<img src='' name='imgbox2' align='top' onError="this.style.display='none';">
<input type='file' onchange="view3(this.value);">
<br>
<img src='' name='imgbox3' align='top' onError="this.style.display='none';">
<input type='file' onchange="view4(this.value);">
<br>
<img src='' name='imgbox4' align='top' onError="this.style.display='none';">
2005-05-16 17:08:19 |
|