사이트 내 전체검색
테이블에 마우스오버 적용하기
로빈아빠
https://cmd.kr/javascript/43 URL이 복사되었습니다.

본문

(TABLE ,TD,TR 중 선택)에 아래 소스를 추가합니다

onmouseover="this.style.backgroundColor='#9FB6FF'" onmouseout="this.style.backgroundColor=''"

예)
특정 셀에 적용할 때는
<td onmouseover="this.style.backgroundColor='#9FB6FF'" onmouseout="this.style.backgroundColor=''"
>

특정 줄에 적용할 때는
<tr onmouseover="this.style.backgroundColor='#9FB6FF'" onmouseout="this.style.backgroundColor=''"
>

테이블 전체에 적용할 때는
<table onmouseover="this.style.backgroundColor='#9FB6FF'" onmouseout="this.style.backgroundColor=''"
>

색번호 #9FB6FF 는 마우스커서가 올라가면 변하는 색입니다.


출처 :신의키스

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=ht&wr_id=22

댓글목록

등록된 댓글이 없습니다.

831 (1/17P)

Search

Copyright © Cmd 명령어 18.218.0.13