자바스크립트로 플래시 삽입(IE 패치이후)
js 파일 내부
// PHPSCHOOL 로야님의 소스
function setEmbed()
{
var obj = new String;
var parameter = new String;
var embed = new String;
var html = new String;
var allParameter = new String;
var clsid = new String;
var codebase = new String;
var pluginspace = new String;
var embedType = new String;
var src = new String;
var width = new String;
var height = new String;
this.init = function( getType , s ,w , h ) {
if ( getType == "flash")
{
clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
pluginspage = "http://www.macromedia.com/go/getflashplayer";
embedType = "application/x-shockwave-flash";
}
/* type 추가
else if ( )
{
}
*/
parameter += "<param name='movie' value='"+ s + "'>\n";
parameter += "<param name='quality' value='high'>\n";
src = s;
width = w;
height = h;
}
this.parameter = function( parm , value ) {
parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
allParameter += " "+parm + "='"+ value+"'";
}
this.show = function() {
if ( clsid )
{
obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n";
}
embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n";
if ( obj )
{
embed += "</object>\n";
}
html = obj + parameter + embed;
document.write( html );
}
}
//실제 플래시가 필요한 부분에 넣는 부분
<script type="text/javascript">
setem = new setEmbed();
setem.init('flash','<?=$g_skin_link?>/image/smenu2.swf','196','134');
setem.parameter('wmode','transparent');
setem.parameter('quality','high');
setem.show();
</script>
//실제 필요한 페이지에 삽입해야 하는 js
<script language="javascript" src="my_flash.js"></script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]</div>
js 파일 내부
// PHPSCHOOL 로야님의 소스
function setEmbed()
{
var obj = new String;
var parameter = new String;
var embed = new String;
var html = new String;
var allParameter = new String;
var clsid = new String;
var codebase = new String;
var pluginspace = new String;
var embedType = new String;
var src = new String;
var width = new String;
var height = new String;
this.init = function( getType , s ,w , h ) {
if ( getType == "flash")
{
clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
pluginspage = "http://www.macromedia.com/go/getflashplayer";
embedType = "application/x-shockwave-flash";
}
/* type 추가
else if ( )
{
}
*/
parameter += "<param name='movie' value='"+ s + "'>\n";
parameter += "<param name='quality' value='high'>\n";
src = s;
width = w;
height = h;
}
this.parameter = function( parm , value ) {
parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
allParameter += " "+parm + "='"+ value+"'";
}
this.show = function() {
if ( clsid )
{
obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n";
}
embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n";
if ( obj )
{
embed += "</object>\n";
}
html = obj + parameter + embed;
document.write( html );
}
}
//실제 플래시가 필요한 부분에 넣는 부분
<script type="text/javascript">
setem = new setEmbed();
setem.init('flash','<?=$g_skin_link?>/image/smenu2.swf','196','134');
setem.parameter('wmode','transparent');
setem.parameter('quality','high');
setem.show();
</script>
//실제 필요한 페이지에 삽입해야 하는 js
<script language="javascript" src="my_flash.js"></script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]</div>
댓글 4개
Dream
19년 전
음...
꽤 유용할거 같네요...
고맙습니다...
꽤 유용할거 같네요...
고맙습니다...
19년 전
감사합니다 ^^
이로와님 일본에 사시나봐요?
이로와님 일본에 사시나봐요?
19년 전
저 신길동에 사는데요...ㅋㅋ
그냥 일본하고 관계된 일을 하느라...그리 된것입니당...
이로와도 맞는데용....이로하라고 불러주시면 더욱 감사하겠습니당...
그냥 일본하고 관계된 일을 하느라...그리 된것입니당...
이로와도 맞는데용....이로하라고 불러주시면 더욱 감사하겠습니당...
19년 전
bbs 모든 파일에~~
이걸 넣어줘야해서 좀 불편합니다~~
이걸 넣어줘야해서 좀 불편합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 3960 | ||
| 129 | 20년 전 | 2902 | ||
| 128 | 20년 전 | 3625 | ||
| 127 | 20년 전 | 3421 | ||
| 126 | 20년 전 | 3717 | ||
| 125 | 20년 전 | 8554 | ||
| 124 | 20년 전 | 2581 | ||
| 123 | 20년 전 | 3732 | ||
| 122 | 20년 전 | 3185 | ||
| 121 | 20년 전 | 2582 | ||
| 120 | 20년 전 | 2646 | ||
| 119 | 20년 전 | 2560 | ||
| 118 | 20년 전 | 2848 | ||
| 117 |
|
20년 전 | 3026 | |
| 116 | 20년 전 | 5285 | ||
| 115 | 20년 전 | 3889 | ||
| 114 | 20년 전 | 4935 | ||
| 113 | 20년 전 | 6193 | ||
| 112 | 20년 전 | 7315 | ||
| 111 | 20년 전 | 18416 | ||
| 110 | 20년 전 | 6864 | ||
| 109 | 20년 전 | 2860 | ||
| 108 | 20년 전 | 4116 | ||
| 107 |
prosper
|
20년 전 | 2466 | |
| 106 |
prosper
|
20년 전 | 4288 | |
| 105 |
아우겐나이스
|
20년 전 | 2879 | |
| 104 | 20년 전 | 2240 | ||
| 103 | 20년 전 | 2457 | ||
| 102 | 20년 전 | 2208 | ||
| 101 | 20년 전 | 2539 | ||
| 100 | 20년 전 | 1717 | ||
| 99 | 20년 전 | 1552 | ||
| 98 | 20년 전 | 1601 | ||
| 97 | 20년 전 | 2095 | ||
| 96 | 20년 전 | 1855 | ||
| 95 | 20년 전 | 2354 | ||
| 94 | 20년 전 | 3548 | ||
| 93 | 20년 전 | 1541 | ||
| 92 | 20년 전 | 1734 | ||
| 91 | 20년 전 | 3152 | ||
| 90 | 20년 전 | 2327 | ||
| 89 | 20년 전 | 3152 | ||
| 88 | 20년 전 | 2856 | ||
| 87 | 20년 전 | 3283 | ||
| 86 | 20년 전 | 5098 | ||
| 85 | 20년 전 | 2503 | ||
| 84 | 20년 전 | 4802 | ||
| 83 | 20년 전 | 2478 | ||
| 82 | 20년 전 | 3090 | ||
| 81 | 20년 전 | 7595 | ||
| 80 | 20년 전 | 3801 | ||
| 79 | 20년 전 | 3192 | ||
| 78 | 20년 전 | 4678 | ||
| 77 | 20년 전 | 2878 | ||
| 76 | 20년 전 | 6203 | ||
| 75 | 20년 전 | 4460 | ||
| 74 | 20년 전 | 5764 | ||
| 73 | 20년 전 | 3614 | ||
| 72 | 20년 전 | 5949 | ||
| 71 | 20년 전 | 3091 | ||
| 70 | 20년 전 | 2818 | ||
| 69 | 20년 전 | 2611 | ||
| 68 | 20년 전 | 2425 | ||
| 67 | 20년 전 | 2629 | ||
| 66 | 20년 전 | 2654 | ||
| 65 | 20년 전 | 3774 | ||
| 64 | 20년 전 | 2801 | ||
| 63 | 20년 전 | 2440 | ||
| 62 | 20년 전 | 2242 | ||
| 61 | 20년 전 | 3044 | ||
| 60 | 20년 전 | 3113 | ||
| 59 | 20년 전 | 2486 | ||
| 58 | 20년 전 | 2576 | ||
| 57 | 20년 전 | 2946 | ||
| 56 | 20년 전 | 2296 | ||
| 55 | 20년 전 | 2733 | ||
| 54 | 20년 전 | 2105 | ||
| 53 | 20년 전 | 2328 | ||
| 52 | 20년 전 | 2675 | ||
| 51 |
prosper
|
20년 전 | 2329 | |
| 50 |
prosper
|
20년 전 | 2146 | |
| 49 | 20년 전 | 2155 | ||
| 48 | 20년 전 | 2307 | ||
| 47 | 20년 전 | 1910 | ||
| 46 | 20년 전 | 1913 | ||
| 45 | 20년 전 | 2119 | ||
| 44 | 20년 전 | 2346 | ||
| 43 | 21년 전 | 4557 | ||
| 42 |
prosper
|
21년 전 | 2693 | |
| 41 |
prosper
|
21년 전 | 2093 | |
| 40 | 21년 전 | 2157 | ||
| 39 | 21년 전 | 2126 | ||
| 38 | 21년 전 | 2397 | ||
| 37 | 21년 전 | 2547 | ||
| 36 | 21년 전 | 1760 | ||
| 35 | 21년 전 | 4058 | ||
| 34 | 21년 전 | 3838 | ||
| 33 | 21년 전 | 2975 | ||
| 32 |
prosper
|
21년 전 | 2880 | |
| 31 | 21년 전 | 5247 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기