자바스크립트로 플래시 삽입(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 모든 파일에~~
이걸 넣어줘야해서 좀 불편합니다~~
이걸 넣어줘야해서 좀 불편합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1230 |
|
18년 전 | 2016 | |
| 1229 |
|
18년 전 | 2953 | |
| 1228 |
|
18년 전 | 2638 | |
| 1227 | 18년 전 | 2935 | ||
| 1226 | 18년 전 | 2366 | ||
| 1225 |
|
18년 전 | 2441 | |
| 1224 | 18년 전 | 2750 | ||
| 1223 |
|
18년 전 | 3999 | |
| 1222 |
mixdesign
|
18년 전 | 2638 | |
| 1221 |
|
18년 전 | 2758 | |
| 1220 | 18년 전 | 3214 | ||
| 1219 | 18년 전 | 2922 | ||
| 1218 | 18년 전 | 2117 | ||
| 1217 |
|
18년 전 | 2561 | |
| 1216 | 18년 전 | 2581 | ||
| 1215 |
mixdesign
|
18년 전 | 4063 | |
| 1214 |
|
18년 전 | 4793 | |
| 1213 | 18년 전 | 2326 | ||
| 1212 |
mixdesign
|
18년 전 | 2510 | |
| 1211 |
|
18년 전 | 2434 | |
| 1210 | 18년 전 | 3763 | ||
| 1209 |
mixdesign
|
18년 전 | 2378 | |
| 1208 |
mixdesign
|
18년 전 | 2381 | |
| 1207 |
mixdesign
|
18년 전 | 1731 | |
| 1206 |
mixdesign
|
18년 전 | 2009 | |
| 1205 |
mixdesign
|
18년 전 | 2705 | |
| 1204 |
mixdesign
|
18년 전 | 3582 | |
| 1203 | 18년 전 | 3102 | ||
| 1202 | 18년 전 | 2984 | ||
| 1201 | 18년 전 | 2037 | ||
| 1200 | 18년 전 | 4134 | ||
| 1199 | 18년 전 | 2176 | ||
| 1198 | 18년 전 | 4198 | ||
| 1197 | 18년 전 | 2512 | ||
| 1196 | 18년 전 | 2372 | ||
| 1195 |
|
18년 전 | 3475 | |
| 1194 | 18년 전 | 2247 | ||
| 1193 | 18년 전 | 2157 | ||
| 1192 | 18년 전 | 3276 | ||
| 1191 | 18년 전 | 3966 | ||
| 1190 | 18년 전 | 2231 | ||
| 1189 |
|
18년 전 | 2370 | |
| 1188 |
|
18년 전 | 3838 | |
| 1187 | 18년 전 | 2720 | ||
| 1186 | 18년 전 | 3386 | ||
| 1185 | 18년 전 | 2791 | ||
| 1184 | 18년 전 | 1671 | ||
| 1183 | 18년 전 | 2145 | ||
| 1182 | 18년 전 | 3713 | ||
| 1181 |
mermaid
|
18년 전 | 2926 | |
| 1180 | 18년 전 | 2987 | ||
| 1179 | 18년 전 | 3615 | ||
| 1178 | 18년 전 | 2179 | ||
| 1177 |
|
18년 전 | 2294 | |
| 1176 | 18년 전 | 3182 | ||
| 1175 | 18년 전 | 1882 | ||
| 1174 |
|
18년 전 | 2240 | |
| 1173 |
|
18년 전 | 2530 | |
| 1172 | 18년 전 | 1777 | ||
| 1171 | 18년 전 | 2112 | ||
| 1170 | 18년 전 | 1995 | ||
| 1169 | 18년 전 | 2509 | ||
| 1168 | 18년 전 | 1935 | ||
| 1167 | 18년 전 | 1731 | ||
| 1166 | 18년 전 | 1755 | ||
| 1165 | 18년 전 | 1733 | ||
| 1164 | 18년 전 | 2803 | ||
| 1163 | 18년 전 | 1562 | ||
| 1162 |
|
18년 전 | 5680 | |
| 1161 |
이걸~어쩌나~
|
18년 전 | 2414 | |
| 1160 | 18년 전 | 1674 | ||
| 1159 | 18년 전 | 4706 | ||
| 1158 | 18년 전 | 2057 | ||
| 1157 | 18년 전 | 4846 | ||
| 1156 | 18년 전 | 3195 | ||
| 1155 | 18년 전 | 2137 | ||
| 1154 | 18년 전 | 1835 | ||
| 1153 |
BEST79
|
18년 전 | 2116 | |
| 1152 | 18년 전 | 1733 | ||
| 1151 | 18년 전 | 1848 | ||
| 1150 | 18년 전 | 1853 | ||
| 1149 |
inniskun
|
18년 전 | 2485 | |
| 1148 |
|
18년 전 | 3507 | |
| 1147 |
|
18년 전 | 5981 | |
| 1146 |
|
18년 전 | 3871 | |
| 1145 | 18년 전 | 3064 | ||
| 1144 | 18년 전 | 2144 | ||
| 1143 | 18년 전 | 2422 | ||
| 1142 | 18년 전 | 2206 | ||
| 1141 |
|
18년 전 | 2310 | |
| 1140 | 18년 전 | 2419 | ||
| 1139 | 18년 전 | 2850 | ||
| 1138 | 18년 전 | 2543 | ||
| 1137 | 18년 전 | 2004 | ||
| 1136 | 18년 전 | 3134 | ||
| 1135 | 18년 전 | 3598 | ||
| 1134 | 18년 전 | 3841 | ||
| 1133 |
자반고등어
|
18년 전 | 3349 | |
| 1132 | 18년 전 | 3400 | ||
| 1131 | 18년 전 | 2579 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기