자바스크립트로 플래시 삽입(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년 전 | 2737 | |
| 729 |
그레이스웹
|
19년 전 | 3529 | |
| 728 |
|
19년 전 | 2714 | |
| 727 |
|
19년 전 | 2546 | |
| 726 |
|
19년 전 | 2366 | |
| 725 |
|
19년 전 | 2273 | |
| 724 |
|
19년 전 | 2157 | |
| 723 |
|
19년 전 | 4273 | |
| 722 |
|
19년 전 | 2701 | |
| 721 |
|
19년 전 | 2193 | |
| 720 |
|
19년 전 | 2291 | |
| 719 |
|
19년 전 | 2866 | |
| 718 |
|
19년 전 | 1978 | |
| 717 |
|
19년 전 | 3205 | |
| 716 |
|
19년 전 | 2768 | |
| 715 |
|
19년 전 | 2293 | |
| 714 |
|
19년 전 | 1847 | |
| 713 |
|
19년 전 | 2261 | |
| 712 |
|
19년 전 | 2023 | |
| 711 |
|
19년 전 | 1923 | |
| 710 |
|
19년 전 | 2494 | |
| 709 |
|
19년 전 | 2352 | |
| 708 |
|
19년 전 | 3905 | |
| 707 |
|
19년 전 | 3752 | |
| 706 |
|
19년 전 | 2258 | |
| 705 |
|
19년 전 | 3332 | |
| 704 |
|
19년 전 | 2004 | |
| 703 |
|
19년 전 | 2404 | |
| 702 |
|
19년 전 | 2298 | |
| 701 |
홀로남은자
|
19년 전 | 2362 | |
| 700 |
홀로남은자
|
19년 전 | 2189 | |
| 699 | 19년 전 | 2831 | ||
| 698 |
|
19년 전 | 2848 | |
| 697 |
|
19년 전 | 3189 | |
| 696 |
|
19년 전 | 3058 | |
| 695 |
|
19년 전 | 2731 | |
| 694 |
|
19년 전 | 2958 | |
| 693 |
|
19년 전 | 3211 | |
| 692 |
|
19년 전 | 2895 | |
| 691 |
|
19년 전 | 2646 | |
| 690 | 19년 전 | 2946 | ||
| 689 | 19년 전 | 4524 | ||
| 688 | 19년 전 | 2450 | ||
| 687 | 19년 전 | 2473 | ||
| 686 | 19년 전 | 3503 | ||
| 685 | 19년 전 | 3185 | ||
| 684 | 19년 전 | 2858 | ||
| 683 | 19년 전 | 2079 | ||
| 682 | 19년 전 | 1787 | ||
| 681 | 19년 전 | 2886 | ||
| 680 | 19년 전 | 1738 | ||
| 679 | 19년 전 | 2323 | ||
| 678 | 19년 전 | 3973 | ||
| 677 | 19년 전 | 3762 | ||
| 676 | 19년 전 | 3484 | ||
| 675 | 19년 전 | 3421 | ||
| 674 |
|
19년 전 | 1581 | |
| 673 |
|
19년 전 | 1942 | |
| 672 |
|
19년 전 | 1872 | |
| 671 | 19년 전 | 2538 | ||
| 670 | 19년 전 | 4655 | ||
| 669 |
|
19년 전 | 2783 | |
| 668 |
|
19년 전 | 1936 | |
| 667 |
|
19년 전 | 1955 | |
| 666 |
|
19년 전 | 1861 | |
| 665 |
|
19년 전 | 2595 | |
| 664 |
|
19년 전 | 8197 | |
| 663 |
|
19년 전 | 2748 | |
| 662 |
|
19년 전 | 2804 | |
| 661 |
|
19년 전 | 3063 | |
| 660 |
|
19년 전 | 2236 | |
| 659 |
|
19년 전 | 2256 | |
| 658 |
|
19년 전 | 2194 | |
| 657 |
|
19년 전 | 2096 | |
| 656 |
|
19년 전 | 2291 | |
| 655 |
|
19년 전 | 2547 | |
| 654 |
|
19년 전 | 3090 | |
| 653 | 19년 전 | 2343 | ||
| 652 | 19년 전 | 1928 | ||
| 651 |
|
19년 전 | 2870 | |
| 650 | 19년 전 | 5031 | ||
| 649 | 19년 전 | 3527 | ||
| 648 | 19년 전 | 3483 | ||
| 647 | 19년 전 | 2988 | ||
| 646 | 19년 전 | 2423 | ||
| 645 | 19년 전 | 1511 | ||
| 644 | 19년 전 | 3150 | ||
| 643 | 19년 전 | 2027 | ||
| 642 |
|
19년 전 | 5408 | |
| 641 | 19년 전 | 2447 | ||
| 640 | 19년 전 | 3444 | ||
| 639 | 19년 전 | 2884 | ||
| 638 | 19년 전 | 1771 | ||
| 637 | 19년 전 | 3887 | ||
| 636 | 19년 전 | 2437 | ||
| 635 | 19년 전 | 2326 | ||
| 634 |
|
19년 전 | 3029 | |
| 633 |
|
19년 전 | 3313 | |
| 632 | 19년 전 | 2522 | ||
| 631 | 19년 전 | 2281 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기