자바스크립트로 플래시 삽입(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 모든 파일에~~
이걸 넣어줘야해서 좀 불편합니다~~
이걸 넣어줘야해서 좀 불편합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 730 |
|
19년 전 | 2725 | |
| 729 |
그레이스웹
|
19년 전 | 3518 | |
| 728 |
|
19년 전 | 2693 | |
| 727 |
|
19년 전 | 2532 | |
| 726 |
|
19년 전 | 2350 | |
| 725 |
|
19년 전 | 2254 | |
| 724 |
|
19년 전 | 2137 | |
| 723 |
|
19년 전 | 4259 | |
| 722 |
|
19년 전 | 2676 | |
| 721 |
|
19년 전 | 2166 | |
| 720 |
|
19년 전 | 2266 | |
| 719 |
|
19년 전 | 2854 | |
| 718 |
|
19년 전 | 1964 | |
| 717 |
|
19년 전 | 3197 | |
| 716 |
|
19년 전 | 2755 | |
| 715 |
|
19년 전 | 2273 | |
| 714 |
|
19년 전 | 1824 | |
| 713 |
|
19년 전 | 2242 | |
| 712 |
|
19년 전 | 2013 | |
| 711 |
|
19년 전 | 1908 | |
| 710 |
|
19년 전 | 2473 | |
| 709 |
|
19년 전 | 2335 | |
| 708 |
|
19년 전 | 3897 | |
| 707 |
|
19년 전 | 3742 | |
| 706 |
|
19년 전 | 2239 | |
| 705 |
|
19년 전 | 3309 | |
| 704 |
|
19년 전 | 1979 | |
| 703 |
|
19년 전 | 2386 | |
| 702 |
|
19년 전 | 2282 | |
| 701 |
홀로남은자
|
19년 전 | 2348 | |
| 700 |
홀로남은자
|
19년 전 | 2182 | |
| 699 | 19년 전 | 2817 | ||
| 698 |
|
19년 전 | 2842 | |
| 697 |
|
19년 전 | 3175 | |
| 696 |
|
19년 전 | 3049 | |
| 695 |
|
19년 전 | 2712 | |
| 694 |
|
19년 전 | 2946 | |
| 693 |
|
19년 전 | 3193 | |
| 692 |
|
19년 전 | 2882 | |
| 691 |
|
19년 전 | 2629 | |
| 690 | 19년 전 | 2929 | ||
| 689 | 19년 전 | 4515 | ||
| 688 | 19년 전 | 2440 | ||
| 687 | 19년 전 | 2452 | ||
| 686 | 19년 전 | 3482 | ||
| 685 | 19년 전 | 3171 | ||
| 684 | 19년 전 | 2828 | ||
| 683 | 19년 전 | 2062 | ||
| 682 | 19년 전 | 1776 | ||
| 681 | 19년 전 | 2876 | ||
| 680 | 19년 전 | 1726 | ||
| 679 | 19년 전 | 2313 | ||
| 678 | 19년 전 | 3965 | ||
| 677 | 19년 전 | 3740 | ||
| 676 | 19년 전 | 3469 | ||
| 675 | 19년 전 | 3411 | ||
| 674 |
|
19년 전 | 1569 | |
| 673 |
|
19년 전 | 1939 | |
| 672 |
|
19년 전 | 1865 | |
| 671 | 19년 전 | 2530 | ||
| 670 | 19년 전 | 4634 | ||
| 669 |
|
19년 전 | 2769 | |
| 668 |
|
19년 전 | 1928 | |
| 667 |
|
19년 전 | 1938 | |
| 666 |
|
19년 전 | 1841 | |
| 665 |
|
19년 전 | 2579 | |
| 664 |
|
19년 전 | 8181 | |
| 663 |
|
19년 전 | 2733 | |
| 662 |
|
19년 전 | 2792 | |
| 661 |
|
19년 전 | 3045 | |
| 660 |
|
19년 전 | 2216 | |
| 659 |
|
19년 전 | 2229 | |
| 658 |
|
19년 전 | 2177 | |
| 657 |
|
19년 전 | 2084 | |
| 656 |
|
19년 전 | 2272 | |
| 655 |
|
19년 전 | 2538 | |
| 654 |
|
19년 전 | 3081 | |
| 653 | 19년 전 | 2332 | ||
| 652 | 19년 전 | 1917 | ||
| 651 |
|
19년 전 | 2848 | |
| 650 | 19년 전 | 5014 | ||
| 649 | 19년 전 | 3507 | ||
| 648 | 19년 전 | 3463 | ||
| 647 | 19년 전 | 2977 | ||
| 646 | 19년 전 | 2407 | ||
| 645 | 19년 전 | 1499 | ||
| 644 | 19년 전 | 3141 | ||
| 643 | 19년 전 | 2023 | ||
| 642 |
|
19년 전 | 5393 | |
| 641 | 19년 전 | 2437 | ||
| 640 | 19년 전 | 3436 | ||
| 639 | 19년 전 | 2868 | ||
| 638 | 19년 전 | 1768 | ||
| 637 | 19년 전 | 3880 | ||
| 636 | 19년 전 | 2428 | ||
| 635 | 19년 전 | 2318 | ||
| 634 |
|
19년 전 | 3025 | |
| 633 |
|
19년 전 | 3304 | |
| 632 | 19년 전 | 2508 | ||
| 631 | 19년 전 | 2269 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기