간단히 한줄로 끝내는 롤오버마우스 스크립트입니다.
<a href='#' onmouseover='img1.src="바뀔이미지명"' onmouseout='img1.src="원래이미지명"'><img src='원래이미지명' name='img1'></a>
끝입니다.. <script>~</script> 필요없습니다.
- 아래같은 형태도 가능...^^ -
<table>
<tr>
<td width="32" height="32" background="원래이미지" onmouseenter="img1.style.visibility='visible';" onmouseleave="img1.style.visibility='hidden';"><img id="img1" src="바뀔이미지" style="visibility:hidden;"></td>
</tr>
</table>
출처 :
http://web.ggambo.com/