자유로운 폰트의 확대-축소(비슷한거)
<script>
//글자크기 조정
var TitleCurrentFontSize = 20;
var ContentCurrentFontSize = 16;
var TitleCurrentLineHeight = 16;
var ContentCurrentLineHeight = 16;
function SetFontSize(SizeFlag) {
obj = document.all;
if (SizeFlag == '0') {
TitleCurrentFontSize = TitleCurrentFontSize + 1;
ContentCurrentFontSize = ContentCurrentFontSize + 1;
TitleCurrentLineHeight = parseInt(TitleCurrentFontSize*1.6);
ContentCurrentLineHeight = parseInt(ContentCurrentFontSize*1.6);
obj.title.style.fontSize = TitleCurrentFontSize + "px";
obj.title.style.lineHeight = TitleCurrentLineHeight + "px";
obj.content.style.fontSize = ContentCurrentFontSize + "px";
obj.content.style.lineHeight = ContentCurrentLineHeight + "px";
} else {
if ((TitleCurrentFontSize>0) && (ContentCurrentFontSize>0)) {
TitleCurrentFontSize = TitleCurrentFontSize - 1;
ContentCurrentFontSize = ContentCurrentFontSize - 1;
TitleCurrentLineHeight = parseInt(TitleCurrentFontSize*1.6);
ContentCurrentLineHeight = parseInt(ContentCurrentFontSize*1.6);
}
obj.title.style.fontSize = TitleCurrentFontSize + "px";
obj.title.style.lineHeight = TitleCurrentLineHeight + "px";
obj.content.style.fontSize = ContentCurrentFontSize + "px";
obj.content.style.lineHeight = ContentCurrentLineHeight + "px";
}
}
</script>
</head>
<body style='margin-top:0; margin-right:0; margin-left:0;'>
<table border=0 cellpadding=0 cellspacing=0>
<tr height=13 valign=top>
<td width=13 style='background:url() no-repeat center middle; cursor:hand;' onclick='javascript:SetFontSize(0);' ;><b>+</b></td>
<td width=5></td>
<td width=13 style='background:url() no-repeat center middle; cursor:hand;' onclick='javascript:SetFontSize(1);' ;><b>-</b></td>
</tr>
</table>
<center>
<td style='font-size:20px;color:#000000;font-weight:bold;letter-spacing:-1px'>
<span id=title><!--ts-->타이틀<!--te--></span></td>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td style='text-align:left;font-size:14px; line-height:23px;'>
<span id=content><!--bs--><center>내용<!--be-->
</span>
</td>
</tr>
</table>
<!--여기까지-->
여거이는 위에서 처음 시작되는 폰트 사이즈를 여러개 사용할 수 있다는 겁니다.
타이틀 크기와 내용의 폰트 크기를 서로 틀리게 할 수 있이죠.
누가 스킨으로 만드세요.
아니면 제가 얼렁뚱떵 만들고 오천점 먹습니다. 하하하
//글자크기 조정
var TitleCurrentFontSize = 20;
var ContentCurrentFontSize = 16;
var TitleCurrentLineHeight = 16;
var ContentCurrentLineHeight = 16;
function SetFontSize(SizeFlag) {
obj = document.all;
if (SizeFlag == '0') {
TitleCurrentFontSize = TitleCurrentFontSize + 1;
ContentCurrentFontSize = ContentCurrentFontSize + 1;
TitleCurrentLineHeight = parseInt(TitleCurrentFontSize*1.6);
ContentCurrentLineHeight = parseInt(ContentCurrentFontSize*1.6);
obj.title.style.fontSize = TitleCurrentFontSize + "px";
obj.title.style.lineHeight = TitleCurrentLineHeight + "px";
obj.content.style.fontSize = ContentCurrentFontSize + "px";
obj.content.style.lineHeight = ContentCurrentLineHeight + "px";
} else {
if ((TitleCurrentFontSize>0) && (ContentCurrentFontSize>0)) {
TitleCurrentFontSize = TitleCurrentFontSize - 1;
ContentCurrentFontSize = ContentCurrentFontSize - 1;
TitleCurrentLineHeight = parseInt(TitleCurrentFontSize*1.6);
ContentCurrentLineHeight = parseInt(ContentCurrentFontSize*1.6);
}
obj.title.style.fontSize = TitleCurrentFontSize + "px";
obj.title.style.lineHeight = TitleCurrentLineHeight + "px";
obj.content.style.fontSize = ContentCurrentFontSize + "px";
obj.content.style.lineHeight = ContentCurrentLineHeight + "px";
}
}
</script>
</head>
<body style='margin-top:0; margin-right:0; margin-left:0;'>
<table border=0 cellpadding=0 cellspacing=0>
<tr height=13 valign=top>
<td width=13 style='background:url() no-repeat center middle; cursor:hand;' onclick='javascript:SetFontSize(0);' ;><b>+</b></td>
<td width=5></td>
<td width=13 style='background:url() no-repeat center middle; cursor:hand;' onclick='javascript:SetFontSize(1);' ;><b>-</b></td>
</tr>
</table>
<center>
<td style='font-size:20px;color:#000000;font-weight:bold;letter-spacing:-1px'>
<span id=title><!--ts-->타이틀<!--te--></span></td>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td style='text-align:left;font-size:14px; line-height:23px;'>
<span id=content><!--bs--><center>내용<!--be-->
</span>
</td>
</tr>
</table>
<!--여기까지-->
여거이는 위에서 처음 시작되는 폰트 사이즈를 여러개 사용할 수 있다는 겁니다.
타이틀 크기와 내용의 폰트 크기를 서로 틀리게 할 수 있이죠.
누가 스킨으로 만드세요.
아니면 제가 얼렁뚱떵 만들고 오천점 먹습니다. 하하하
댓글 1개
bbking
20년 전
만들어 올려주세요..........^^ .....ㅎㅎ
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 169 | 20년 전 | 10312 | ||
| 168 | 20년 전 | 10213 | ||
| 167 |
|
20년 전 | 4179 | |
| 166 | 20년 전 | 3994 | ||
| 165 | 20년 전 | 2997 | ||
| 164 | 20년 전 | 7040 | ||
| 163 | 20년 전 | 13459 | ||
| 162 | 20년 전 | 3167 | ||
| 161 | 20년 전 | 6091 | ||
| 160 | 20년 전 | 4870 | ||
| 159 | 20년 전 | 5657 | ||
| 158 | 20년 전 | 3051 | ||
| 157 | 20년 전 | 2894 | ||
| 156 | 20년 전 | 2823 | ||
| 155 | 20년 전 | 4459 | ||
| 154 | 20년 전 | 5247 | ||
| 153 | 20년 전 | 3459 | ||
| 152 |
ObㅈL洙
|
20년 전 | 7477 | |
| 151 | 20년 전 | 7614 | ||
| 150 | 20년 전 | 6110 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기