자바스크립트로 플래시 삽입(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년 전 | 2723 | |
| 729 |
그레이스웹
|
19년 전 | 3515 | |
| 728 |
|
19년 전 | 2685 | |
| 727 |
|
19년 전 | 2524 | |
| 726 |
|
19년 전 | 2340 | |
| 725 |
|
19년 전 | 2243 | |
| 724 |
|
19년 전 | 2132 | |
| 723 |
|
19년 전 | 4255 | |
| 722 |
|
19년 전 | 2670 | |
| 721 |
|
19년 전 | 2164 | |
| 720 |
|
19년 전 | 2259 | |
| 719 |
|
19년 전 | 2848 | |
| 718 |
|
19년 전 | 1960 | |
| 717 |
|
19년 전 | 3195 | |
| 716 |
|
19년 전 | 2753 | |
| 715 |
|
19년 전 | 2268 | |
| 714 |
|
19년 전 | 1818 | |
| 713 |
|
19년 전 | 2237 | |
| 712 |
|
19년 전 | 2010 | |
| 711 |
|
19년 전 | 1907 | |
| 710 |
|
19년 전 | 2467 | |
| 709 |
|
19년 전 | 2328 | |
| 708 |
|
19년 전 | 3886 | |
| 707 |
|
19년 전 | 3735 | |
| 706 |
|
19년 전 | 2236 | |
| 705 |
|
19년 전 | 3291 | |
| 704 |
|
19년 전 | 1960 | |
| 703 |
|
19년 전 | 2382 | |
| 702 |
|
19년 전 | 2279 | |
| 701 |
홀로남은자
|
19년 전 | 2345 | |
| 700 |
홀로남은자
|
19년 전 | 2180 | |
| 699 | 19년 전 | 2815 | ||
| 698 |
|
19년 전 | 2834 | |
| 697 |
|
19년 전 | 3171 | |
| 696 |
|
19년 전 | 3044 | |
| 695 |
|
19년 전 | 2705 | |
| 694 |
|
19년 전 | 2932 | |
| 693 |
|
19년 전 | 3187 | |
| 692 |
|
19년 전 | 2879 | |
| 691 |
|
19년 전 | 2627 | |
| 690 | 19년 전 | 2926 | ||
| 689 | 19년 전 | 4510 | ||
| 688 | 19년 전 | 2437 | ||
| 687 | 19년 전 | 2449 | ||
| 686 | 19년 전 | 3477 | ||
| 685 | 19년 전 | 3164 | ||
| 684 | 19년 전 | 2818 | ||
| 683 | 19년 전 | 2055 | ||
| 682 | 19년 전 | 1774 | ||
| 681 | 19년 전 | 2876 | ||
| 680 | 19년 전 | 1718 | ||
| 679 | 19년 전 | 2311 | ||
| 678 | 19년 전 | 3960 | ||
| 677 | 19년 전 | 3734 | ||
| 676 | 19년 전 | 3458 | ||
| 675 | 19년 전 | 3407 | ||
| 674 |
|
19년 전 | 1566 | |
| 673 |
|
19년 전 | 1939 | |
| 672 |
|
19년 전 | 1860 | |
| 671 | 19년 전 | 2523 | ||
| 670 | 19년 전 | 4623 | ||
| 669 |
|
19년 전 | 2762 | |
| 668 |
|
19년 전 | 1921 | |
| 667 |
|
19년 전 | 1935 | |
| 666 |
|
19년 전 | 1832 | |
| 665 |
|
19년 전 | 2565 | |
| 664 |
|
19년 전 | 8176 | |
| 663 |
|
19년 전 | 2725 | |
| 662 |
|
19년 전 | 2789 | |
| 661 |
|
19년 전 | 3045 | |
| 660 |
|
19년 전 | 2204 | |
| 659 |
|
19년 전 | 2215 | |
| 658 |
|
19년 전 | 2171 | |
| 657 |
|
19년 전 | 2078 | |
| 656 |
|
19년 전 | 2267 | |
| 655 |
|
19년 전 | 2523 | |
| 654 |
|
19년 전 | 3077 | |
| 653 | 19년 전 | 2330 | ||
| 652 | 19년 전 | 1912 | ||
| 651 |
|
19년 전 | 2834 | |
| 650 | 19년 전 | 5005 | ||
| 649 | 19년 전 | 3501 | ||
| 648 | 19년 전 | 3458 | ||
| 647 | 19년 전 | 2973 | ||
| 646 | 19년 전 | 2395 | ||
| 645 | 19년 전 | 1490 | ||
| 644 | 19년 전 | 3133 | ||
| 643 | 19년 전 | 2014 | ||
| 642 |
|
19년 전 | 5385 | |
| 641 | 19년 전 | 2434 | ||
| 640 | 19년 전 | 3431 | ||
| 639 | 19년 전 | 2860 | ||
| 638 | 19년 전 | 1762 | ||
| 637 | 19년 전 | 3880 | ||
| 636 | 19년 전 | 2422 | ||
| 635 | 19년 전 | 2315 | ||
| 634 |
|
19년 전 | 3025 | |
| 633 |
|
19년 전 | 3301 | |
| 632 | 19년 전 | 2499 | ||
| 631 | 19년 전 | 2261 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기