자바스크립트로 플래시 삽입(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 모든 파일에~~
이걸 넣어줘야해서 좀 불편합니다~~
이걸 넣어줘야해서 좀 불편합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1030 | 18년 전 | 1788 | ||
| 1029 | 18년 전 | 2220 | ||
| 1028 | 18년 전 | 2630 | ||
| 1027 | 18년 전 | 1791 | ||
| 1026 | 18년 전 | 1525 | ||
| 1025 | 18년 전 | 1540 | ||
| 1024 | 18년 전 | 1463 | ||
| 1023 | 18년 전 | 3226 | ||
| 1022 | 18년 전 | 2915 | ||
| 1021 | 18년 전 | 1675 | ||
| 1020 | 18년 전 | 3409 | ||
| 1019 | 18년 전 | 1841 | ||
| 1018 | 18년 전 | 1491 | ||
| 1017 | 18년 전 | 1958 | ||
| 1016 | 18년 전 | 2098 | ||
| 1015 | 18년 전 | 1631 | ||
| 1014 | 18년 전 | 2343 | ||
| 1013 | 18년 전 | 1999 | ||
| 1012 | 18년 전 | 1623 | ||
| 1011 | 18년 전 | 1785 | ||
| 1010 | 18년 전 | 2039 | ||
| 1009 | 18년 전 | 1800 | ||
| 1008 | 18년 전 | 1608 | ||
| 1007 | 18년 전 | 1665 | ||
| 1006 | 18년 전 | 3132 | ||
| 1005 | 18년 전 | 1992 | ||
| 1004 | 18년 전 | 1869 | ||
| 1003 | 18년 전 | 4368 | ||
| 1002 | 18년 전 | 4993 | ||
| 1001 | 18년 전 | 3161 | ||
| 1000 | 18년 전 | 2908 | ||
| 999 | 18년 전 | 3499 | ||
| 998 | 18년 전 | 2045 | ||
| 997 | 18년 전 | 2403 | ||
| 996 | 18년 전 | 2697 | ||
| 995 | 18년 전 | 2751 | ||
| 994 | 18년 전 | 2347 | ||
| 993 | 18년 전 | 1615 | ||
| 992 | 18년 전 | 3376 | ||
| 991 | 18년 전 | 1984 | ||
| 990 | 18년 전 | 2382 | ||
| 989 | 18년 전 | 2455 | ||
| 988 | 18년 전 | 2883 | ||
| 987 | 18년 전 | 5216 | ||
| 986 |
|
18년 전 | 2491 | |
| 985 |
|
18년 전 | 3341 | |
| 984 | 18년 전 | 4276 | ||
| 983 |
느낌좋은날
|
19년 전 | 2500 | |
| 982 | 19년 전 | 2464 | ||
| 981 | 19년 전 | 4040 | ||
| 980 | 19년 전 | 2748 | ||
| 979 |
Sinpre
|
19년 전 | 2989 | |
| 978 | 19년 전 | 2207 | ||
| 977 | 19년 전 | 2220 | ||
| 976 | 19년 전 | 1990 | ||
| 975 | 19년 전 | 3273 | ||
| 974 | 19년 전 | 2106 | ||
| 973 |
|
19년 전 | 2784 | |
| 972 |
|
19년 전 | 1743 | |
| 971 | 19년 전 | 5316 | ||
| 970 | 19년 전 | 3573 | ||
| 969 | 19년 전 | 4322 | ||
| 968 | 19년 전 | 3066 | ||
| 967 | 19년 전 | 2523 | ||
| 966 | 19년 전 | 3921 | ||
| 965 | 19년 전 | 2649 | ||
| 964 | 19년 전 | 2992 | ||
| 963 | 19년 전 | 2959 | ||
| 962 | 19년 전 | 4175 | ||
| 961 | 19년 전 | 3127 | ||
| 960 | 19년 전 | 3021 | ||
| 959 | 19년 전 | 3671 | ||
| 958 | 19년 전 | 2974 | ||
| 957 | 19년 전 | 2190 | ||
| 956 | 19년 전 | 2223 | ||
| 955 | 19년 전 | 2175 | ||
| 954 | 19년 전 | 2766 | ||
| 953 | 19년 전 | 2477 | ||
| 952 | 19년 전 | 3344 | ||
| 951 | 19년 전 | 3202 | ||
| 950 | 19년 전 | 1826 | ||
| 949 | 19년 전 | 2740 | ||
| 948 | 19년 전 | 7824 | ||
| 947 |
|
19년 전 | 2502 | |
| 946 |
DeepnBlue
|
19년 전 | 3105 | |
| 945 |
pearly
|
19년 전 | 2871 | |
| 944 | 19년 전 | 3024 | ||
| 943 |
|
19년 전 | 2227 | |
| 942 | 19년 전 | 2452 | ||
| 941 |
|
19년 전 | 4073 | |
| 940 | 19년 전 | 2233 | ||
| 939 |
|
19년 전 | 4220 | |
| 938 |
|
19년 전 | 2382 | |
| 937 | 19년 전 | 2075 | ||
| 936 |
|
19년 전 | 2329 | |
| 935 | 19년 전 | 1872 | ||
| 934 |
|
19년 전 | 2408 | |
| 933 | 19년 전 | 2199 | ||
| 932 |
|
19년 전 | 3067 | |
| 931 | 19년 전 | 1855 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기