자바스크립트로 플래시 삽입(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년 전 | 84 | ||
| 8229 | 9년 전 | 78 | ||
| 8228 |
커네드커네드
|
9년 전 | 118 | |
| 8227 | 9년 전 | 133 | ||
| 8226 | 9년 전 | 170 | ||
| 8225 | 9년 전 | 157 | ||
| 8224 | 9년 전 | 152 | ||
| 8223 | 9년 전 | 119 | ||
| 8222 |
|
9년 전 | 199 | |
| 8221 | 9년 전 | 98 | ||
| 8220 | 9년 전 | 110 | ||
| 8219 | 9년 전 | 108 | ||
| 8218 | 9년 전 | 153 | ||
| 8217 |
star3840
|
9년 전 | 117 | |
| 8216 | 9년 전 | 167 | ||
| 8215 | 9년 전 | 124 | ||
| 8214 | 9년 전 | 231 | ||
| 8213 | 9년 전 | 168 | ||
| 8212 | 9년 전 | 87 | ||
| 8211 | 9년 전 | 256 | ||
| 8210 | 9년 전 | 254 | ||
| 8209 | 9년 전 | 344 | ||
| 8208 | 9년 전 | 231 | ||
| 8207 | 9년 전 | 235 | ||
| 8206 |
|
9년 전 | 196 | |
| 8205 | 9년 전 | 176 | ||
| 8204 | 9년 전 | 139 | ||
| 8203 | 9년 전 | 239 | ||
| 8202 | 9년 전 | 152 | ||
| 8201 | 9년 전 | 187 | ||
| 8200 | 9년 전 | 171 | ||
| 8199 | 9년 전 | 224 | ||
| 8198 | 9년 전 | 181 | ||
| 8197 | 9년 전 | 172 | ||
| 8196 | 9년 전 | 560 | ||
| 8195 | 9년 전 | 168 | ||
| 8194 | 9년 전 | 291 | ||
| 8193 | 9년 전 | 165 | ||
| 8192 | 9년 전 | 203 | ||
| 8191 | 9년 전 | 151 | ||
| 8190 | 9년 전 | 140 | ||
| 8189 | 9년 전 | 199 | ||
| 8188 | 9년 전 | 136 | ||
| 8187 | 9년 전 | 153 | ||
| 8186 | 9년 전 | 151 | ||
| 8185 | 9년 전 | 321 | ||
| 8184 | 9년 전 | 113 | ||
| 8183 | 9년 전 | 333 | ||
| 8182 | 9년 전 | 175 | ||
| 8181 | 9년 전 | 138 | ||
| 8180 | 9년 전 | 706 | ||
| 8179 | 9년 전 | 494 | ||
| 8178 | 9년 전 | 317 | ||
| 8177 |
kiplayer
|
9년 전 | 335 | |
| 8176 | 9년 전 | 360 | ||
| 8175 | 9년 전 | 231 | ||
| 8174 | 9년 전 | 257 | ||
| 8173 | 9년 전 | 351 | ||
| 8172 | 9년 전 | 207 | ||
| 8171 | 9년 전 | 190 | ||
| 8170 | 9년 전 | 301 | ||
| 8169 |
커네드커네드
|
9년 전 | 263 | |
| 8168 | 9년 전 | 328 | ||
| 8167 | 9년 전 | 326 | ||
| 8166 | 9년 전 | 245 | ||
| 8165 | 9년 전 | 178 | ||
| 8164 | 9년 전 | 308 | ||
| 8163 | 9년 전 | 294 | ||
| 8162 | 9년 전 | 308 | ||
| 8161 | 9년 전 | 302 | ||
| 8160 |
|
9년 전 | 500 | |
| 8159 | 9년 전 | 435 | ||
| 8158 | 9년 전 | 260 | ||
| 8157 | 9년 전 | 387 | ||
| 8156 | 9년 전 | 281 | ||
| 8155 | 9년 전 | 261 | ||
| 8154 |
00년생용띠
|
9년 전 | 605 | |
| 8153 | 9년 전 | 238 | ||
| 8152 |
|
9년 전 | 418 | |
| 8151 | 9년 전 | 414 | ||
| 8150 | 9년 전 | 513 | ||
| 8149 |
Jangfolk
|
9년 전 | 354 | |
| 8148 | 9년 전 | 179 | ||
| 8147 | 9년 전 | 380 | ||
| 8146 | 9년 전 | 448 | ||
| 8145 | 9년 전 | 391 | ||
| 8144 | 9년 전 | 359 | ||
| 8143 | 9년 전 | 203 | ||
| 8142 | 9년 전 | 432 | ||
| 8141 | 9년 전 | 385 | ||
| 8140 | 9년 전 | 933 | ||
| 8139 | 9년 전 | 268 | ||
| 8138 |
전갈자리남자
|
9년 전 | 393 | |
| 8137 | 9년 전 | 403 | ||
| 8136 | 9년 전 | 755 | ||
| 8135 |
|
9년 전 | 802 | |
| 8134 |
PlayPixel
|
9년 전 | 523 | |
| 8133 |
|
9년 전 | 446 | |
| 8132 | 9년 전 | 461 | ||
| 8131 | 9년 전 | 819 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기