답변 2개
Copy
<div id="bImgArea">
<img src="1.gif" id="bImg">
</div>
<div id="mImgArea">
<img src="1.gif" id="1" onclick="exchangSrc(this)">
<img src="2.gif" id="2" onclick="exchangSrc(this)">
<img src="3.gif" id="3" onclick="exchangSrc(this)">
</div>
<script type="text/javascript">
function exchangSrc(str) {
//alert(str.src);
$("#bImg").attr("src", $(str).attr('src'));
};
</script>
이런거요???
답변을 작성하려면 로그인이 필요합니다.