자유로운 폰트의 확대-축소(비슷한거)
<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와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3249 |
|
11년 전 | 6323 | |
| 3248 | 11년 전 | 6076 | ||
| 3247 |
|
11년 전 | 5434 | |
| 3246 | 11년 전 | 7165 | ||
| 3245 | 11년 전 | 4557 | ||
| 3244 | 11년 전 | 5218 | ||
| 3243 | 11년 전 | 5670 | ||
| 3242 |
|
11년 전 | 6516 | |
| 3241 |
saintbe
|
11년 전 | 5658 | |
| 3240 |
|
11년 전 | 5377 | |
| 3239 |
|
11년 전 | 3944 | |
| 3238 |
sahara
|
11년 전 | 5115 | |
| 3237 |
커네드커네드
|
11년 전 | 4663 | |
| 3236 |
|
11년 전 | 6919 | |
| 3235 |
사노라가노라
|
11년 전 | 3969 | |
| 3234 | 11년 전 | 4771 | ||
| 3233 | 11년 전 | 7914 | ||
| 3232 | 11년 전 | 8208 | ||
| 3231 | 11년 전 | 4987 | ||
| 3230 |
다케미카코
|
11년 전 | 6003 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기