자바스크립트로 플래시 삽입(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 모든 파일에~~
이걸 넣어줘야해서 좀 불편합니다~~
이걸 넣어줘야해서 좀 불편합니다~~
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 630 | 19년 전 | 2351 | ||
| 629 |
|
19년 전 | 2012 | |
| 628 |
|
19년 전 | 3126 | |
| 627 |
|
19년 전 | 2034 | |
| 626 |
|
19년 전 | 2066 | |
| 625 |
|
19년 전 | 1720 | |
| 624 |
|
19년 전 | 2224 | |
| 623 | 19년 전 | 2200 | ||
| 622 |
|
19년 전 | 2508 | |
| 621 |
|
19년 전 | 2910 | |
| 620 |
|
19년 전 | 2404 | |
| 619 | 19년 전 | 2473 | ||
| 618 | 19년 전 | 3515 | ||
| 617 |
|
19년 전 | 3233 | |
| 616 |
|
19년 전 | 3222 | |
| 615 |
|
19년 전 | 3040 | |
| 614 |
|
19년 전 | 2046 | |
| 613 |
|
19년 전 | 2378 | |
| 612 |
|
19년 전 | 2239 | |
| 611 |
|
19년 전 | 2085 | |
| 610 |
|
19년 전 | 2522 | |
| 609 |
|
19년 전 | 2422 | |
| 608 |
|
19년 전 | 2813 | |
| 607 | 19년 전 | 2194 | ||
| 606 | 19년 전 | 3532 | ||
| 605 | 19년 전 | 1989 | ||
| 604 | 19년 전 | 2602 | ||
| 603 | 19년 전 | 1615 | ||
| 602 |
|
19년 전 | 2836 | |
| 601 | 19년 전 | 3074 | ||
| 600 |
|
19년 전 | 2153 | |
| 599 | 19년 전 | 2003 | ||
| 598 | 19년 전 | 2481 | ||
| 597 | 19년 전 | 2389 | ||
| 596 |
|
19년 전 | 3075 | |
| 595 |
|
19년 전 | 6754 | |
| 594 | 19년 전 | 2709 | ||
| 593 | 19년 전 | 3186 | ||
| 592 |
|
19년 전 | 3091 | |
| 591 |
|
19년 전 | 1932 | |
| 590 | 19년 전 | 3367 | ||
| 589 | 19년 전 | 2209 | ||
| 588 |
|
19년 전 | 2707 | |
| 587 | 19년 전 | 2346 | ||
| 586 |
|
19년 전 | 4366 | |
| 585 | 19년 전 | 2487 | ||
| 584 | 19년 전 | 2760 | ||
| 583 |
|
19년 전 | 3523 | |
| 582 |
|
19년 전 | 3718 | |
| 581 |
|
19년 전 | 3256 | |
| 580 | 19년 전 | 2485 | ||
| 579 | 19년 전 | 3075 | ||
| 578 | 19년 전 | 3976 | ||
| 577 | 19년 전 | 3814 | ||
| 576 | 19년 전 | 1754 | ||
| 575 |
|
19년 전 | 2209 | |
| 574 |
|
19년 전 | 5403 | |
| 573 | 19년 전 | 6718 | ||
| 572 | 19년 전 | 2565 | ||
| 571 | 19년 전 | 2108 | ||
| 570 | 19년 전 | 2601 | ||
| 569 | 19년 전 | 3303 | ||
| 568 | 19년 전 | 3530 | ||
| 567 | 19년 전 | 2981 | ||
| 566 | 19년 전 | 2602 | ||
| 565 |
|
19년 전 | 4720 | |
| 564 |
|
19년 전 | 6730 | |
| 563 |
|
19년 전 | 5011 | |
| 562 |
|
19년 전 | 5950 | |
| 561 |
|
19년 전 | 2694 | |
| 560 |
|
19년 전 | 2542 | |
| 559 |
|
19년 전 | 2222 | |
| 558 |
|
19년 전 | 2302 | |
| 557 | 19년 전 | 4595 | ||
| 556 |
|
19년 전 | 4669 | |
| 555 | 19년 전 | 2508 | ||
| 554 | 19년 전 | 2175 | ||
| 553 | 19년 전 | 2525 | ||
| 552 |
|
19년 전 | 3167 | |
| 551 | 19년 전 | 2940 | ||
| 550 |
|
19년 전 | 1898 | |
| 549 |
|
19년 전 | 1957 | |
| 548 |
|
19년 전 | 3146 | |
| 547 |
|
19년 전 | 2357 | |
| 546 |
|
19년 전 | 3617 | |
| 545 |
|
19년 전 | 2549 | |
| 544 |
|
19년 전 | 1850 | |
| 543 |
|
19년 전 | 2454 | |
| 542 |
|
19년 전 | 1729 | |
| 541 |
|
19년 전 | 1409 | |
| 540 |
|
19년 전 | 1538 | |
| 539 |
|
19년 전 | 1804 | |
| 538 |
|
19년 전 | 1584 | |
| 537 |
|
19년 전 | 1780 | |
| 536 |
|
19년 전 | 1562 | |
| 535 |
|
19년 전 | 1960 | |
| 534 |
|
19년 전 | 1845 | |
| 533 |
|
19년 전 | 1449 | |
| 532 |
|
19년 전 | 1443 | |
| 531 |
|
19년 전 | 1359 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기