[G4] 플래쉬 연동을 위한 플래쉬 스크립트 호출 함수 변경 > 기술자료 | 해피정닷컴

[G4] 플래쉬 연동을 위한 플래쉬 스크립트 호출 함수 변경 > 기술자료

본문 바로가기

사이트 내 전체검색

[G4] 플래쉬 연동을 위한 플래쉬 스크립트 호출 함수 변경 > 기술자료

그누보드 [G4] 플래쉬 연동을 위한 플래쉬 스크립트 호출 함수 변경

페이지 정보


본문

그누보드에서 플래쉬를 삽입할 때,  아래와 같은 스크립을 씁니다.

<script>doc_write(flash_movie("<?=$g4['path']?>/플래쉬.swf", "ids", 72, 199, "transparent"));</script>

그런데, 플래쉬와 연동하기 위해서는 vars 값을 주어야 하는데, vars 값을 지원하지 않아서 간단히

<script>doc_write(flash_movie("<?=$g4['path']?>/플래쉬.swf", "ids", 72, 199, "transparent", "flashvars"));</script>

의 형식으로 vars 값을 줄 수있도록 하기 위함입니다.


/js/common.js 을 수정합니다.


원본


    function flash_movie(src, ids, width, height, wmode)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
    }

을 아래와 같이 수정합니다.

    function flash_movie(src, ids, width, height, wmode, flashvars)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height))
            wh = " width='"+width+"' height='"+height+"' ";
        return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=flashvars value="+flashvars+"?><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
    }


이후에는
<script>doc_write(flash_movie("<?=$g4['path']?>/플래쉬.swf", "ids", 72, 199, "transparent", "flashvars"));</script>

flashvars 값에서 원하시는 값을 주시면 됩니다.


관련자료
https://sir.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=12429

댓글목록

등록된 댓글이 없습니다.


Total 2,636건 109 페이지
  • RSS
기술자료 목록
476
MySQL   16118  2008-05-01 05:08  
475
그누보드   20666  2008-04-28 11:24  
열람
그누보드   11493  2008-04-28 11:19  
473
PHP   15941  2008-04-26 16:50 ~ 2021-07-06 21:53  
472
PHP   22566  2008-04-26 15:59 ~ 2013-01-14 00:00  
471
ClassicASP   12785  2008-04-26 15:38  
470
PHP   15349  2008-04-26 15:05 ~ 2009-09-16 00:00  
469
ClassicASP   12416  2008-04-24 11:47 ~ 2012-03-24 00:00  
468
ClassicASP   14837  2008-04-23 22:02 ~ 2015-02-03 00:00  
467
PHP   15457  2008-04-21 23:09  
466
그누보드   15272  2008-04-21 18:25  
465
PHP   17200  2008-04-21 12:02 ~ 2021-08-17 23:30  
464
ClassicASP   14587  2008-04-17 22:30 ~ 2013-06-19 00:00  
463
etc보드   12725  2008-04-17 07:21  
462
HTML   16901  2008-04-16 14:16 ~ 2008-04-16 00:00  
461
ClassicASP   18927  2008-04-16 22:54  
460
WindowsServer   14266  2008-04-16 17:32  
459
SQL   12480  2008-04-15 09:55  
458
제로보드   33242  2008-04-15 09:48  
457
HTML   29960  2008-04-15 08:28  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2025 해피정닷컴. All Rights Reserved.