고

테이블 셀에 링크하는법 & 마우스 오버

# 무엇? : 테이블 셀에 링크하는법 & 마우스 오버시 색 변함
# 호환? : ie, 파폭에서 잘 됨
# 특징? : 브라우저 하단에 링크주소 안나타남.

# 예제 :

구글로 이동
네이버로 이동
엠파스로 이동
롤 오버 없음. 썰 이동
셀 링크 없음

 

# 예제 소스 :

<table border=1 width="400" cellspacing="0" cellpadding="9">
    <tr>
        <td bgcolor='#eeeeee' onMouseOver='this.style.backgroundColor="#299eab"' onMouseOut='this.style.backgroundColor="#eeeeee"' onClick="location='http://google.co.kr'">구글로 이동</td>
    </tr>
    <tr>
        <td bgcolor='#eeeeee' onMouseOver='this.style.backgroundColor="#ff00ff"' onMouseOut='this.style.backgroundColor="#eeeeee"' onClick="location='http://naver.co.kr'">네이버로 이동</td>
    </tr>
    <tr>
        <td bgcolor='#eeeeee' onMouseOver='this.style.backgroundColor="#a9aecc"' onMouseOut='this.style.backgroundColor="#eeeeee"' onClick="location='http://empas.co.kr'">엠파스로 이동</td>
    </tr>
    <tr>
        <td bgcolor='#eeeeee' onClick="location='http://sir.co.kr'">롤 오버 없음. 썰 이동</td>    </tr>
    <tr>
        <td bgcolor='#eeeeee' onMouseOver='this.style.backgroundColor="#aaee00"' onMouseOut='this.style.backgroundColor="#eeeeee"'>셀 링크 없음</td>
    </tr>
</table>

 

[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
|

댓글 5개

좋은팁 감사합니다.
테이블 셀에 링크하는법
보드만들면 좋겠다.
유용한 팁입니다.
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타 05-09-02 조회 3,257
JavaScript 05-09-01 조회 5,240
JavaScript 05-09-01 조회 6,547
기타 05-08-31 조회 4,337
기타 05-08-31 조회 4,461
Flash 05-08-25 조회 7,489
기타 05-08-25 조회 4,550
JavaScript
[JavaScript]
05-08-21 조회 3,625
JavaScript 05-08-18 조회 4,179
기타 05-08-18 조회 3,913
JavaScript 05-08-17 조회 4,257
기타 05-08-14 조회 4,478
MySQL 05-08-14 조회 5,121
기타 05-08-08 조회 4,367
기타 05-08-07 조회 7,646
기타 05-08-05 조회 5,262
MySQL 05-08-04 조회 6,306
JavaScript 05-08-01 조회 4,613
Flash 05-07-29 조회 6,000
기타 05-07-29 조회 6,193
기타 05-07-28 조회 8,746
기타 05-07-27 조회 5,241
기타 05-07-25 조회 4,366
JavaScript 05-07-24 조회 7,120
기타 05-07-24 조회 3,982
기타 05-07-22 조회 6,115
기타 05-07-21 조회 5,871
기타 05-07-21 조회 3,979
기타 05-07-19 조회 6,496
기타
bbbking
05-07-19 조회 4,253