<div class="codetitle"> <span><a style="CURSOR: pointer" data="70968" class="copybut" id="copybut70968" onclick="doCopy('code70968')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code70968"> <br><img id="img1" src="" /> <br><script> <br>function fileChange(obj) { <br>var url = obj.value url = "file:///" url.replace("\",'/'); <br> 경고(url); <br>document.getElementById("img1").src= url <br>} <br></script><br><input type="file" onchange=" fileChange(this );" /> <br> </div> <br>키는 다음과 같습니다: url = "file:///" url.replace("\",'/')