자바스크립트로 플래시 삽입(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 모든 파일에~~
이걸 넣어줘야해서 좀 불편합니다~~
이걸 넣어줘야해서 좀 불편합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 50 | ||
| 8229 | 9년 전 | 52 | ||
| 8228 |
커네드커네드
|
9년 전 | 98 | |
| 8227 | 9년 전 | 108 | ||
| 8226 | 9년 전 | 145 | ||
| 8225 | 9년 전 | 133 | ||
| 8224 | 9년 전 | 131 | ||
| 8223 | 9년 전 | 90 | ||
| 8222 |
|
9년 전 | 162 | |
| 8221 | 9년 전 | 77 | ||
| 8220 | 9년 전 | 75 | ||
| 8219 | 9년 전 | 80 | ||
| 8218 | 9년 전 | 111 | ||
| 8217 |
star3840
|
9년 전 | 98 | |
| 8216 | 9년 전 | 135 | ||
| 8215 | 9년 전 | 88 | ||
| 8214 | 9년 전 | 206 | ||
| 8213 | 9년 전 | 142 | ||
| 8212 | 9년 전 | 56 | ||
| 8211 | 9년 전 | 222 | ||
| 8210 | 9년 전 | 218 | ||
| 8209 | 9년 전 | 318 | ||
| 8208 | 9년 전 | 187 | ||
| 8207 | 9년 전 | 200 | ||
| 8206 |
|
9년 전 | 162 | |
| 8205 | 9년 전 | 147 | ||
| 8204 | 9년 전 | 110 | ||
| 8203 | 9년 전 | 203 | ||
| 8202 | 9년 전 | 126 | ||
| 8201 | 9년 전 | 166 | ||
| 8200 | 9년 전 | 135 | ||
| 8199 | 9년 전 | 186 | ||
| 8198 | 9년 전 | 155 | ||
| 8197 | 9년 전 | 135 | ||
| 8196 | 9년 전 | 516 | ||
| 8195 | 9년 전 | 133 | ||
| 8194 | 9년 전 | 268 | ||
| 8193 | 9년 전 | 135 | ||
| 8192 | 9년 전 | 163 | ||
| 8191 | 9년 전 | 115 | ||
| 8190 | 9년 전 | 111 | ||
| 8189 | 9년 전 | 165 | ||
| 8188 | 9년 전 | 112 | ||
| 8187 | 9년 전 | 121 | ||
| 8186 | 9년 전 | 130 | ||
| 8185 | 9년 전 | 291 | ||
| 8184 | 9년 전 | 86 | ||
| 8183 | 9년 전 | 308 | ||
| 8182 | 9년 전 | 138 | ||
| 8181 | 9년 전 | 114 | ||
| 8180 | 9년 전 | 678 | ||
| 8179 | 9년 전 | 474 | ||
| 8178 | 9년 전 | 278 | ||
| 8177 |
kiplayer
|
9년 전 | 284 | |
| 8176 | 9년 전 | 329 | ||
| 8175 | 9년 전 | 203 | ||
| 8174 | 9년 전 | 210 | ||
| 8173 | 9년 전 | 324 | ||
| 8172 | 9년 전 | 166 | ||
| 8171 | 9년 전 | 159 | ||
| 8170 | 9년 전 | 278 | ||
| 8169 |
커네드커네드
|
9년 전 | 243 | |
| 8168 | 9년 전 | 297 | ||
| 8167 | 9년 전 | 305 | ||
| 8166 | 9년 전 | 218 | ||
| 8165 | 9년 전 | 148 | ||
| 8164 | 9년 전 | 279 | ||
| 8163 | 9년 전 | 265 | ||
| 8162 | 9년 전 | 273 | ||
| 8161 | 9년 전 | 271 | ||
| 8160 |
|
9년 전 | 467 | |
| 8159 | 9년 전 | 386 | ||
| 8158 | 9년 전 | 204 | ||
| 8157 | 9년 전 | 341 | ||
| 8156 | 9년 전 | 256 | ||
| 8155 | 9년 전 | 231 | ||
| 8154 |
00년생용띠
|
9년 전 | 577 | |
| 8153 | 9년 전 | 206 | ||
| 8152 |
|
9년 전 | 385 | |
| 8151 | 9년 전 | 386 | ||
| 8150 | 9년 전 | 476 | ||
| 8149 |
Jangfolk
|
9년 전 | 314 | |
| 8148 | 9년 전 | 148 | ||
| 8147 | 9년 전 | 357 | ||
| 8146 | 9년 전 | 410 | ||
| 8145 | 9년 전 | 343 | ||
| 8144 | 9년 전 | 309 | ||
| 8143 | 9년 전 | 165 | ||
| 8142 | 9년 전 | 411 | ||
| 8141 | 9년 전 | 357 | ||
| 8140 | 9년 전 | 908 | ||
| 8139 | 9년 전 | 231 | ||
| 8138 |
전갈자리남자
|
9년 전 | 376 | |
| 8137 | 9년 전 | 357 | ||
| 8136 | 9년 전 | 717 | ||
| 8135 |
|
9년 전 | 769 | |
| 8134 |
PlayPixel
|
9년 전 | 481 | |
| 8133 |
|
9년 전 | 420 | |
| 8132 | 9년 전 | 431 | ||
| 8131 | 9년 전 | 786 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기