Eolin Tag Search 플러그인 이미지 롤오브 적용하기 :: 2007. 9. 30. 12:57
TC 확장팩 플로그인 중의 하나인 Eolin Tag Search (3.5) By J.Parker 에서
이미지에 롤오브 효과를 줄려고 삽질을 해 보았습니다.
수정 파일
1. index,xml
2. index.php
이미지에 롤오브 효과를 줄려고 삽질을 해 보았습니다.
수정 파일
index.xml
index.php
index.php
1. index,xml
14 라인에 추가
<tag name="SKIN_head_end" handler="makeVisible" />
<tag name="SKIN_head_end" handler="makeVisible" />
2. index.php
12 라인에 추가
$ImgStyle = " style=\"filter:alpha(opacity=30); -moz-opacity:0.5;\" onMouseOver=\"this.style.filter='';makevisible(this,0);\" onMouseOut=\"this.style.filter='alpha(opacity=30)';makevisible(this,1);\" ";
$ImgStyle = " style=\"filter:alpha(opacity=30); -moz-opacity:0.5;\" onMouseOver=\"this.style.filter='';makevisible(this,0);\" onMouseOut=\"this.style.filter='alpha(opacity=30)';makevisible(this,1);\" ";
17~21라인
... align=\"top\" alt=\"{$e_title}\" "/></a>":"").
수정
... align=\"top\" alt=\"{$e_title}\"".$ImgStyle."/></a>":"").
... align=\"top\" alt=\"{$e_title}\" "/></a>":"").
수정
... align=\"top\" alt=\"{$e_title}\"".$ImgStyle."/></a>":"").
제일 하단의 ?>위에 추가
function makeVisible($target){
$target .= <<<SCR
<script>
function makevisible(cur,which){
strength=(which==0)? 1 : 0.5
function makeVisible($target){
$target .= <<<SCR
<script>
function makevisible(cur,which){
strength=(which==0)? 1 : 0.5
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
}
</script>
SCR;
return $target;
}
cur.style.MozOpacity=strength
}
</script>
SCR;
return $target;
}
'테터&TISTORY' 카테고리의 다른 글
팀블로그 버그(?) (2) | 2007.10.02 |
---|---|
새글 아이콘 모음 (6) | 2007.10.02 |
크리에이티브 커먼즈 라이센스 플러그인 티스토리 탑제 (0) | 2007.04.18 |
트래픽 표시 센터 플러그인 (16) | 2007.04.17 |
"리퍼러 로그 정리" 플러그인 수정하기 (2) | 2007.03.25 |