|
|
|
16년 전
|
조회 1,280
|
|
|
|
16년 전
|
조회 1,580
|
|
|
|
16년 전
|
조회 1,277
|
|
|
|
16년 전
|
조회 1,062
|
|
|
|
16년 전
|
조회 988
|
|
|
|
16년 전
|
조회 841
|
|
|
|
16년 전
|
조회 1,553
|
|
|
|
16년 전
|
조회 854
|
|
|
|
16년 전
|
조회 949
|
|
|
|
16년 전
|
조회 1,036
|
|
|
|
16년 전
|
조회 1,135
|
|
|
|
16년 전
|
조회 860
|
|
|
|
16년 전
|
조회 816
|
|
|
|
16년 전
|
조회 782
|
|
|
|
16년 전
|
조회 969
|
|
|
|
16년 전
|
조회 959
|
|
|
|
16년 전
|
조회 962
|
|
|
|
16년 전
|
조회 979
|
|
|
|
16년 전
|
조회 993
|
|
|
|
16년 전
|
조회 858
|
댓글 3개
doc_write(flash_movie('../../../data/file/game_flash_view/1932104681_56HKGva4_4.swf', '_g4_2', '300', '210'))
이런식으로 나오는데, '300', '210' 이게 출력되는 가로세로 픽셀수를 지정하고 있네요.
game_exe.php 파일을 변경해보세요.
학원 좀더 다닌다음에 뭘좀 알고 적용해 볼께요 감사합니다^^
Line 919 보시면 플래쉬 파일 출력하는 스크립트함수 doc_write()가 있습니다.
else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
//return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr></embed>";
return "<script>doc_write(flash_movie('$g4[path]/data/file/$board[bo_table]/$file', '_g4_{$ids}', '$width', '$height', 'transparent'));</script>";
}
여기서 파일크기를 수정할수 있습니다. 기존 소스를 수정하면 뷰페이지가 달라지므로
위 IF문 안에 두가지 경우를 넣어서 아래와 같이 수정합니다.
else if (preg_match("/\.($config[cf_flash_extension])$/i", $file)) {
if($full_size) {
$width = $width*2; // 두배로 적용했는데 임의에 숫자를 넣으셔도 됩니다.
$height = $height*2;
}
return "<script>doc_write(flash_movie('$g4[path]/data/file/$board[bo_table]/$file', '_g4_{$ids}', '$width', '$height', 'transparent'));</script>";
그리고 링크 경로를
http://poporu.co.kr/home/skin/board/flashgame/game_exe.php?bo_table=game_flash_view&wr_id=314&full_size=1 형태로 하시던지
game_exe.php 파일에서 $full_size에 아무값이나 넣어주시면 될듯합니다.
응용편 ^^ 임의에 변수 두개를 만드셔서 가로 세로 사이즈를 전달하는 방법도 있겠습니다.