자바스크립트로 플래시 삽입(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년 전 | 143 | ||
| 8229 | 9년 전 | 125 | ||
| 8228 |
커네드커네드
|
9년 전 | 165 | |
| 8227 | 9년 전 | 210 | ||
| 8226 | 9년 전 | 226 | ||
| 8225 | 9년 전 | 206 | ||
| 8224 | 9년 전 | 211 | ||
| 8223 | 9년 전 | 178 | ||
| 8222 |
|
9년 전 | 252 | |
| 8221 | 9년 전 | 161 | ||
| 8220 | 9년 전 | 192 | ||
| 8219 | 9년 전 | 161 | ||
| 8218 | 9년 전 | 196 | ||
| 8217 |
star3840
|
9년 전 | 173 | |
| 8216 | 9년 전 | 241 | ||
| 8215 | 9년 전 | 184 | ||
| 8214 | 9년 전 | 292 | ||
| 8213 | 9년 전 | 251 | ||
| 8212 | 9년 전 | 160 | ||
| 8211 | 9년 전 | 337 | ||
| 8210 | 9년 전 | 336 | ||
| 8209 | 9년 전 | 409 | ||
| 8208 | 9년 전 | 300 | ||
| 8207 | 9년 전 | 303 | ||
| 8206 |
|
9년 전 | 258 | |
| 8205 | 9년 전 | 239 | ||
| 8204 | 9년 전 | 215 | ||
| 8203 | 9년 전 | 288 | ||
| 8202 | 9년 전 | 205 | ||
| 8201 | 9년 전 | 251 | ||
| 8200 | 9년 전 | 258 | ||
| 8199 | 9년 전 | 271 | ||
| 8198 | 9년 전 | 235 | ||
| 8197 | 9년 전 | 225 | ||
| 8196 | 9년 전 | 637 | ||
| 8195 | 9년 전 | 239 | ||
| 8194 | 9년 전 | 350 | ||
| 8193 | 9년 전 | 252 | ||
| 8192 | 9년 전 | 268 | ||
| 8191 | 9년 전 | 216 | ||
| 8190 | 9년 전 | 212 | ||
| 8189 | 9년 전 | 274 | ||
| 8188 | 9년 전 | 206 | ||
| 8187 | 9년 전 | 211 | ||
| 8186 | 9년 전 | 214 | ||
| 8185 | 9년 전 | 377 | ||
| 8184 | 9년 전 | 166 | ||
| 8183 | 9년 전 | 389 | ||
| 8182 | 9년 전 | 249 | ||
| 8181 | 9년 전 | 197 | ||
| 8180 | 9년 전 | 778 | ||
| 8179 | 9년 전 | 549 | ||
| 8178 | 9년 전 | 405 | ||
| 8177 |
kiplayer
|
9년 전 | 403 | |
| 8176 | 9년 전 | 436 | ||
| 8175 | 9년 전 | 326 | ||
| 8174 | 9년 전 | 320 | ||
| 8173 | 9년 전 | 407 | ||
| 8172 | 9년 전 | 288 | ||
| 8171 | 9년 전 | 251 | ||
| 8170 | 9년 전 | 370 | ||
| 8169 |
커네드커네드
|
9년 전 | 321 | |
| 8168 | 9년 전 | 404 | ||
| 8167 | 9년 전 | 395 | ||
| 8166 | 9년 전 | 295 | ||
| 8165 | 9년 전 | 241 | ||
| 8164 | 9년 전 | 370 | ||
| 8163 | 9년 전 | 367 | ||
| 8162 | 9년 전 | 367 | ||
| 8161 | 9년 전 | 383 | ||
| 8160 |
|
9년 전 | 584 | |
| 8159 | 9년 전 | 527 | ||
| 8158 | 9년 전 | 330 | ||
| 8157 | 9년 전 | 440 | ||
| 8156 | 9년 전 | 329 | ||
| 8155 | 9년 전 | 320 | ||
| 8154 |
00년생용띠
|
9년 전 | 659 | |
| 8153 | 9년 전 | 302 | ||
| 8152 |
|
9년 전 | 482 | |
| 8151 | 9년 전 | 480 | ||
| 8150 | 9년 전 | 584 | ||
| 8149 |
Jangfolk
|
9년 전 | 443 | |
| 8148 | 9년 전 | 256 | ||
| 8147 | 9년 전 | 447 | ||
| 8146 | 9년 전 | 530 | ||
| 8145 | 9년 전 | 481 | ||
| 8144 | 9년 전 | 444 | ||
| 8143 | 9년 전 | 281 | ||
| 8142 | 9년 전 | 492 | ||
| 8141 | 9년 전 | 442 | ||
| 8140 | 9년 전 | 998 | ||
| 8139 | 9년 전 | 349 | ||
| 8138 |
전갈자리남자
|
9년 전 | 454 | |
| 8137 | 9년 전 | 495 | ||
| 8136 | 9년 전 | 815 | ||
| 8135 |
|
9년 전 | 858 | |
| 8134 |
PlayPixel
|
9년 전 | 598 | |
| 8133 |
|
9년 전 | 508 | |
| 8132 | 9년 전 | 543 | ||
| 8131 | 9년 전 | 900 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기