CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

프리랜서 커뮤니티

뉴스티커 입니다. 

페이드 인아웃 방식으로 글자가 바뀌는 한줄 전광판입니다. 

skin/latest/ 아래 업로드 해주세요 


설치 

g4m_newsticker.js 파일은 js 에 복사해 넣으세요 

head.sub.php 파일에 

<script type="text/javascript" src="<?php echo $g4['path']?>/js/g4m_newsticker.js"></script> 
<script type="text/javascript"> 
    //<![CDATA[ 
    $(function(){ 
        $(".newsticker").newsticker(); 
    }); 
    //]]> 
</script> 

추가 

css/style.css 에 스타일 추가 
/* latest skin - g4m_newsticker */ 
.newsticker {list-style-type: none; border:1px dashed #ccc; background-color:#515151; padding:3px; margin:0; height:18px; line-height: 18px; overflow:hidden; text-align:center;} 
.newsticker li a{font-weight: bold; text-decoration: none;color: #FFFF80} 

출력하고 싶은 부분에 

<div style="width: 200px;"> 
<?= latest('g4m_newsticker', "게시판명", 4, 34); ?> 
</div> 

추가해 주세요. 

스타일은 사이트에 맞게 수정하세요.

추천한 사람