스킨에 텍스트 확대/축소 적용하기-중앙일보,엠파스뉴스처럼 <--제로에서 > 그누3 팁자료실

그누3 팁자료실

스킨에 텍스트 확대/축소 적용하기-중앙일보,엠파스뉴스처럼 <--제로에서 정보

일반 스킨에 텍스트 확대/축소 적용하기-중앙일보,엠파스뉴스처럼 <--제로에서

본문

모든 스킨에 적용할 수 있습니다.
스킨파일 중
view.php
를 수정해 주세요.
view.php 중간에...

///////////////////////////////////////////////////////////////////////////// ?>
<? include "$dir/value.php3"; ?>

이거 밑에 아래 스크립트를 추가해 주시구여....

<script language="JavaScript"> &nbsp;
var i=11
function a()
{
 &nbsp; &nbsp; &nbsp; &nbsp;if (i < 19) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = i + 2;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp; &nbsp; &nbsp;document.all.myid.style.fontSize=i &nbsp;
} &nbsp;
</script>
<script language="JavaScript"> &nbsp;
var i=11 &nbsp;
function b()
{ &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp;if (i > 10) {
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = i - 2;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
 &nbsp; &nbsp; &nbsp; &nbsp;document.all.myid.style.fontSize=i &nbsp;
} &nbsp;
</script>

이렇게 삽입하신후에...
다시 아래로 내려가시면


<?=$file1_view?>
<?=$file2_view?>
<div id="myid"><?=$content?>

이런 내용이 나옵니다.
이것 대신에 아래것을 삽입하시면 됩니다.


<div align=right ><a href="#" onclick="a()"><img src='http://www.sungsanch.com/new/img/ic_fsp.gif' title='글자확대' border='0'></a><a href="#" onclick="b()"><img src='http://www.sungsanch.com/new/img/ic_fsm.gif' title='글자축소' border='0'></a></b></div>
<?=$file1_view?>
<?=$file2_view?>
<div id="myid"><?=$content?></div>

위에 글자확대 및 글자축소 아이콘은 임의로 만드시던가...다운받아서 자신의 폴더로 올리시구...
링크걸어주세요.

그럼 이만...

확인하시길 원하시면...

http://www.sungsanch.com/
으로 오세요...(사이트 게시판에 적용되었습니다....)<------여기 관리자(바다사이)님이 만드신 내용....
제가 만들어 올리는 것은 거의 불가능.....*^^* 제로에서 퍼온 글입니다.
추천
11
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로