자바스크립트로 플래시 삽입(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년 전 | 2758 | |
| 729 |
그레이스웹
|
19년 전 | 3545 | |
| 728 |
|
19년 전 | 2733 | |
| 727 |
|
19년 전 | 2560 | |
| 726 |
|
19년 전 | 2380 | |
| 725 |
|
19년 전 | 2287 | |
| 724 |
|
19년 전 | 2163 | |
| 723 |
|
19년 전 | 4284 | |
| 722 |
|
19년 전 | 2710 | |
| 721 |
|
19년 전 | 2206 | |
| 720 |
|
19년 전 | 2301 | |
| 719 |
|
19년 전 | 2869 | |
| 718 |
|
19년 전 | 1984 | |
| 717 |
|
19년 전 | 3213 | |
| 716 |
|
19년 전 | 2784 | |
| 715 |
|
19년 전 | 2312 | |
| 714 |
|
19년 전 | 1857 | |
| 713 |
|
19년 전 | 2277 | |
| 712 |
|
19년 전 | 2026 | |
| 711 |
|
19년 전 | 1936 | |
| 710 |
|
19년 전 | 2508 | |
| 709 |
|
19년 전 | 2364 | |
| 708 |
|
19년 전 | 3918 | |
| 707 |
|
19년 전 | 3762 | |
| 706 |
|
19년 전 | 2275 | |
| 705 |
|
19년 전 | 3350 | |
| 704 |
|
19년 전 | 2024 | |
| 703 |
|
19년 전 | 2415 | |
| 702 |
|
19년 전 | 2306 | |
| 701 |
홀로남은자
|
19년 전 | 2372 | |
| 700 |
홀로남은자
|
19년 전 | 2196 | |
| 699 | 19년 전 | 2838 | ||
| 698 |
|
19년 전 | 2862 | |
| 697 |
|
19년 전 | 3195 | |
| 696 |
|
19년 전 | 3066 | |
| 695 |
|
19년 전 | 2738 | |
| 694 |
|
19년 전 | 2966 | |
| 693 |
|
19년 전 | 3225 | |
| 692 |
|
19년 전 | 2905 | |
| 691 |
|
19년 전 | 2657 | |
| 690 | 19년 전 | 2963 | ||
| 689 | 19년 전 | 4538 | ||
| 688 | 19년 전 | 2471 | ||
| 687 | 19년 전 | 2488 | ||
| 686 | 19년 전 | 3513 | ||
| 685 | 19년 전 | 3203 | ||
| 684 | 19년 전 | 2881 | ||
| 683 | 19년 전 | 2087 | ||
| 682 | 19년 전 | 1793 | ||
| 681 | 19년 전 | 2892 | ||
| 680 | 19년 전 | 1748 | ||
| 679 | 19년 전 | 2331 | ||
| 678 | 19년 전 | 3984 | ||
| 677 | 19년 전 | 3781 | ||
| 676 | 19년 전 | 3506 | ||
| 675 | 19년 전 | 3429 | ||
| 674 |
|
19년 전 | 1590 | |
| 673 |
|
19년 전 | 1953 | |
| 672 |
|
19년 전 | 1883 | |
| 671 | 19년 전 | 2548 | ||
| 670 | 19년 전 | 4671 | ||
| 669 |
|
19년 전 | 2792 | |
| 668 |
|
19년 전 | 1945 | |
| 667 |
|
19년 전 | 1969 | |
| 666 |
|
19년 전 | 1878 | |
| 665 |
|
19년 전 | 2611 | |
| 664 |
|
19년 전 | 8216 | |
| 663 |
|
19년 전 | 2758 | |
| 662 |
|
19년 전 | 2808 | |
| 661 |
|
19년 전 | 3076 | |
| 660 |
|
19년 전 | 2253 | |
| 659 |
|
19년 전 | 2277 | |
| 658 |
|
19년 전 | 2207 | |
| 657 |
|
19년 전 | 2107 | |
| 656 |
|
19년 전 | 2302 | |
| 655 |
|
19년 전 | 2558 | |
| 654 |
|
19년 전 | 3101 | |
| 653 | 19년 전 | 2350 | ||
| 652 | 19년 전 | 1934 | ||
| 651 |
|
19년 전 | 2879 | |
| 650 | 19년 전 | 5040 | ||
| 649 | 19년 전 | 3544 | ||
| 648 | 19년 전 | 3498 | ||
| 647 | 19년 전 | 3004 | ||
| 646 | 19년 전 | 2439 | ||
| 645 | 19년 전 | 1520 | ||
| 644 | 19년 전 | 3162 | ||
| 643 | 19년 전 | 2035 | ||
| 642 |
|
19년 전 | 5416 | |
| 641 | 19년 전 | 2454 | ||
| 640 | 19년 전 | 3452 | ||
| 639 | 19년 전 | 2901 | ||
| 638 | 19년 전 | 1781 | ||
| 637 | 19년 전 | 3894 | ||
| 636 | 19년 전 | 2446 | ||
| 635 | 19년 전 | 2336 | ||
| 634 |
|
19년 전 | 3032 | |
| 633 |
|
19년 전 | 3326 | |
| 632 | 19년 전 | 2533 | ||
| 631 | 19년 전 | 2292 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기