하이퍼링크에 여러가지 스타일만들기
<head>
<title> stylesheet : rollover text</title>
<meta http-equiv=content-type content="text/html; charset=euc-kr">
<style>
A:link.test1 { color: blue }
A:hover.test1 { color: red }
A:link.test2 { color: blue }
A:hover.test2 { font-size:15pt }
A:link.test3 { color: blue }
A:hover.test3 { font-weight: bold; font-style: italic }
A:link.test4 { text-decoration: none; color: blue }
A:visited.test4 { text-decoration: none }
A:hover.test4 { background: cyan; color:blue }
A:link.test5 { color: blue }
A:hover.test5 { font-family:궁서; font-weight: bold; font-size: 12pt }
A:link.test6 { color: blue; text-decoration: none }
A:visited.test6 { text-decoration: none }
A:hover.test6 { text-decoration: underline; color:red }
A:link.test7 { color: blue }
A:hover.test7 { color: darkred; font-weight: bold; background:#FFC1C1 }
A:link.test8 { color: blue; text-decoration: none }
A:visited.test8 { text-decoration: none }
A:hover.test8 { color: darkred; font-weight: bold; background:#FFC1C1 ; border:15 solid brown; padding:5px }
.batang {font-family:돋움;
font-size:10pt;
line-height:170%;
letter-spacing:-1px;
text-align:justify;
margin-top:0;
margin-bottom:0;
width:350px;
padding-top:20px;
border-top:10px cyan solid;}/*바탕글*/
.title { filter:shadow(color=#00008B, direction=135) ;
width:600px;
font-family:바탕;
font-weight:900;
font-size:30pt;
color:#90EE90 ;
line-height:300%;
}
ul.hover {list-style:none}
</style>
</head>
<body bgcolor=cccccc>
<table align=center width="569">
<tr>
<td width="563">
<div class="title">글자 롤오버</div>
<div class=batang>
자바스크립트 없이는 롤오버 단추를 만들 수가 없었습니다.
물론 자바스크립트를 쓰면 글자뿐만이 아니라 좀더 선택의 폭이 커집니다.
그러나 글자만으로 롤오버단추를 만든다면 스타일시트만으로도 충분합니다.
얼마든지 멋진 효과를 만들 수 있습니다. 이것들은 모두 <span style="letter-spacing:1px; font-family: times new roman; font-weight:bold; font-size=12pt; color:#696969;">IE5.xx</span> 이상에서만 지원됩니다.
<ol>
<li><a href=" http://www.how2homepage.com " class=test1>글자 색깔이 바뀝니다</a>
<li><a href=" http://www.how2homepage.com" class=test2>글자 크기가 바뀝니다</a>
<li><a href=" target='_blank'> http://www.how2homepage.com " class=test3>글자가 두꺼워지고 이탤릭으로 바뀝니다</a>
<li><a href=" http://www.how2homepage.com " class=test4>배경 색깔이 바뀝니다</a>
<li><a href=" http://www.how2homepage.com " class= test5>아예 글꼴이 바뀝니다</a>
<li><a href= " http://www.how2homepage.com " class=test6>색깔이 바뀌고 밑줄이 생깁니다</a>
<li><a href="http://www.how2homepage.com" class=test7>글자 색깔과 배경, 글자 두께가 바뀝니다</a>
<li><a href="http://www.how2homepage.com" class=test8>테두리 선까지도 굵게 해줄 수 있습니다</a>
</ol>
</div>
</td>
</tr>
</table>
</body>
</body>
<title> stylesheet : rollover text</title>
<meta http-equiv=content-type content="text/html; charset=euc-kr">
<style>
A:link.test1 { color: blue }
A:hover.test1 { color: red }
A:link.test2 { color: blue }
A:hover.test2 { font-size:15pt }
A:link.test3 { color: blue }
A:hover.test3 { font-weight: bold; font-style: italic }
A:link.test4 { text-decoration: none; color: blue }
A:visited.test4 { text-decoration: none }
A:hover.test4 { background: cyan; color:blue }
A:link.test5 { color: blue }
A:hover.test5 { font-family:궁서; font-weight: bold; font-size: 12pt }
A:link.test6 { color: blue; text-decoration: none }
A:visited.test6 { text-decoration: none }
A:hover.test6 { text-decoration: underline; color:red }
A:link.test7 { color: blue }
A:hover.test7 { color: darkred; font-weight: bold; background:#FFC1C1 }
A:link.test8 { color: blue; text-decoration: none }
A:visited.test8 { text-decoration: none }
A:hover.test8 { color: darkred; font-weight: bold; background:#FFC1C1 ; border:15 solid brown; padding:5px }
.batang {font-family:돋움;
font-size:10pt;
line-height:170%;
letter-spacing:-1px;
text-align:justify;
margin-top:0;
margin-bottom:0;
width:350px;
padding-top:20px;
border-top:10px cyan solid;}/*바탕글*/
.title { filter:shadow(color=#00008B, direction=135) ;
width:600px;
font-family:바탕;
font-weight:900;
font-size:30pt;
color:#90EE90 ;
line-height:300%;
}
ul.hover {list-style:none}
</style>
</head>
<body bgcolor=cccccc>
<table align=center width="569">
<tr>
<td width="563">
<div class="title">글자 롤오버</div>
<div class=batang>
자바스크립트 없이는 롤오버 단추를 만들 수가 없었습니다.
물론 자바스크립트를 쓰면 글자뿐만이 아니라 좀더 선택의 폭이 커집니다.
그러나 글자만으로 롤오버단추를 만든다면 스타일시트만으로도 충분합니다.
얼마든지 멋진 효과를 만들 수 있습니다. 이것들은 모두 <span style="letter-spacing:1px; font-family: times new roman; font-weight:bold; font-size=12pt; color:#696969;">IE5.xx</span> 이상에서만 지원됩니다.
<ol>
<li><a href=" http://www.how2homepage.com " class=test1>글자 색깔이 바뀝니다</a>
<li><a href=" http://www.how2homepage.com" class=test2>글자 크기가 바뀝니다</a>
<li><a href=" target='_blank'> http://www.how2homepage.com " class=test3>글자가 두꺼워지고 이탤릭으로 바뀝니다</a>
<li><a href=" http://www.how2homepage.com " class=test4>배경 색깔이 바뀝니다</a>
<li><a href=" http://www.how2homepage.com " class= test5>아예 글꼴이 바뀝니다</a>
<li><a href= " http://www.how2homepage.com " class=test6>색깔이 바뀌고 밑줄이 생깁니다</a>
<li><a href="http://www.how2homepage.com" class=test7>글자 색깔과 배경, 글자 두께가 바뀝니다</a>
<li><a href="http://www.how2homepage.com" class=test8>테두리 선까지도 굵게 해줄 수 있습니다</a>
</ol>
</div>
</td>
</tr>
</table>
</body>
</body>
댓글 1개
12년 전
좋은 정보 감사합니다.^^*
게시글 목록
| 번호 | 제목 |
|---|---|
| 5638 | |
| 27321 | |
| 5637 | |
| 31931 | |
| 31925 | |
| 18979 |
jQuery
마우스 오버시 레이어 출력~
2
|
| 5633 | |
| 27316 | |
| 27307 | |
| 18976 |
jQuery
메뉴 고정
2
|
| 5631 | |
| 18974 | |
| 31919 | |
| 30803 | |
| 31911 | |
| 5625 | |
| 5623 | |
| 5620 | |
| 27298 | |
| 31904 | |
| 31887 | |
| 31884 | |
| 18967 |
jQuery
facebook timeline 스타일 따라하기
6
|
| 5616 | |
| 5611 | |
| 18963 | |
| 5608 | |
| 31881 | |
| 5601 | |
| 31866 | |
| 31862 | |
| 5599 | |
| 5595 | |
| 5592 | |
| 24497 | |
| 18958 | |
| 31859 | |
| 31855 | |
| 18952 | |
| 18946 |
JavaScript
html 테그 제거하는 함수
5
|
| 18942 |
JavaScript
새로고침(F5) 금지 하는 자바 스크립트
3
|
| 18939 |
JavaScript
자바스크립트 문자열 비교
2
|
| 18936 |
JavaScript
자바스크립트를 이용해 모니터 해상도 구하기
2
|
| 18933 |
JavaScript
모바일 접속시 모바일 페이지로 이동하기
2
|
| 5590 | |
| 5586 | |
| 18924 |
MySQL
SQL 문장의 실행순서
8
|
| 18915 |
MySQL
초보자들을 위한 팁(count편)
8
|
| 18913 | |
| 18908 |
MySQL
트리거를 이용한 날짜 자동 업데이트
4
|
| 27293 | |
| 5583 | |
| 5580 | |
| 18895 |
PHP
배열 순서 섞기
12
|
| 18886 |
JavaScript
체크박스 전체선택/해제/반전
8
|
| 18880 |
JavaScript
마우스휠이벤트 등록 및 활용
5
|
| 5576 | |
| 31840 | |
| 30792 | |
| 18869 |
JavaScript
부분 프린터하기
10
|
| 18866 |
JavaScript
GET으로 넘어온 파라미터 가져오기
2
|
| 18862 |
JavaScript
첨부파일 확장자 체크 [정규식]
3
|
| 18858 |
JavaScript
iframe 아이프레임 투명처리
3
|
| 5569 | |
| 5565 | |
| 27287 | |
| 18857 | |
| 18855 |
PHP
주민번호 검사기
1
|
| 18854 | |
| 18847 |
JavaScript
화면 줌(ZOOM); 필요한분이 있으려나...;
6
|
| 18843 | |
| 18841 | |
| 18840 |
PHP
utf8 체크하기
|
| 31825 | |
| 18839 | |
| 18835 | |
| 18833 | |
| 18832 |
JavaScript
내 쇼핑몰에 즐겨찾기 등록 버튼 만드는 방법
|
| 18822 |
JavaScript
네이버 지도 API 다중마커 구현 소스 입니다.
9
|
| 18820 |
PHP
카운터 늘리기 방법은?
1
|
| 5561 | |
| 31806 | |
| 18815 | |
| 31830 | |
| 18809 |
PHP
정규식 사용법입니다.
5
|
| 18807 | |
| 18806 | |
| 18803 | |
| 18801 | |
| 18800 | |
| 18796 | |
| 5559 | |
| 18793 | |
| 18791 |
PHP
자릿수만큼 문자열 채우기
1
|
| 5554 | |
| 31780 | |
| 31790 | |
| 31758 | |
| 24491 | |
| 27284 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기