저는 ie 패치에 따른 object, embed의 대처방법에 이 코드를 사용합니다. ^^a (아직 제 홈에는 적용하지 않았습니다.)
js 파일 한개 만들어서 아래의 코드를 넣어주시고 출력하실 페이지 소스에 만드신 파일을 include 하신후...
function flash_movie(src, ids, width, height, wmode)
{
var wh = "";
if (parseInt(width) && parseInt(height))
wh = " width='"+width+"' height='"+height+"' ";
return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
}
function obj_movie(src, ids, width, height, autostart)
{
var wh = "";
if (parseInt(width) && parseInt(height))
wh = " width='"+width+"' height='"+height+"' ";
if (!autostart) autostart = false;
return "<embed src="+src+" "+wh+" autostart="+autostart+"></embed>";
}
function doc_write(cont)
{
document.write(cont);
}
그후에 원하시는 출력부분에 아래의 사용예제처럼 넣어주시면 됄겁니다.
- 사용 예제 -
<script>doc_write(flash_movie("파일명.swf", "mainflash", 519, 100, "transparent"));</script>
JCrew (2006-04-15 00:51:58)에 의해 마지막으로 수정
Catch the flow~