스타일 시트를 이용한 롤오버 자바 버튼 스크립트
<HTML>
<HEAD>
<TITLE> gachimoa </TITLE>
<!-- 1. 메모장 등으로 아래의 내용을 HTML 문서의 HEAD 부분에 붙여 넣으세요 -->
<style>
/******** 마우스를 대었을때 버튼의 모양을 설정 합니다 *********/
.start {color:white; background:orange}
</style>
<script LANGUAGE="JAVASCRIPT">
function highlightButton(s) {
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
</script>
</head>
<body>
<center>
<!--------- 아래의 방법으로 버튼을 만듭니다 ---------------------->
<form NAME="highlight" onmouseover="highlightButton('start')"
onmouseout="highlightButton('')">
<p>
<input type="button" value=" 마우스를 대어 보세요 ">
<input type="button" onmousedown="this.style.fontStyle='italic'" onmouseup="this.style.fontStyle=''"
value=" 이곳을 클릭 해 보세요 " onclick="this.value=' 누르랜다고 누르셨네요. 하하하~! '">
<input type="button" value=" 마우스를 대어 보세요 ">
</p>
</form>
</font>
</body>
</html>
댓글 0
- 전체
- 자유게시판
- 컴퓨터/IT
- 연애/결혼
- 생활지혜/상식
- 홍보팁
- 재테크/카드
- 카페/블로그
- 여행
- 부부생활
- 심리
- 음악/미술
- 법률
- 건강
- 역사
- 인테리어/DIY
- 밀리터리
- 해외직구
- 예능/영화
- 미스테리
- 임신/육아
- 다이어트
- 음식/주방/요리
- 운전/자동차
- 낚시
- 휴대폰
- 운동
- 게임/만화
- 취업/알바/부업
- 사진
- 이사/이민
- 패션/뷰티
- 경제/주식
- 부동산
- 그 외..