랜덤 플래쉬 띄우기 실험요청 및 소스

페이지가 바뀔때마다 랜덤으로 플래쉬를 띄우는 형식이 급하게 필요해서
작업했는데..실험해보시고 잘되면 쓰세요~
대부분..new Array 부분을 image로 설정을 하고.
type=application/x-shockwave-flash 로 설정하는 방식을 하시던데...
그렇게 해서는 플래쉬의 바탕화면이 투명하게 변하지않더군요..
 
그래서 완죤히 embed 형식으로 ..
제홈에서 실험해보니 잘되는것같은데...뭐니해도 같이 실험하는것이 오류잡는데는 왔다죠~~
 
<script language="JavaScript">
embed = new Array(03); // embed 만큼 변경
embed[0] = './image/M-Club.swf'
embed[1] = './image/520.swf'
embed[2] = './image/main.swf'
index = Math.floor(Math.random() * embed.length);
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='60%' height='130'><param name=movie value='"+embed[index]+"'><param name='play' value='true'><param name='loop' value='true'><param name='quality' value='high'><param name='wmode'  value='transparent'> <embed src='"+embed[index]+"' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='60%' height='130'></embed></object>");
</script>
|

댓글 1개

대단하십니다
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
20년 전 조회 1,690
mmando
20년 전 조회 1,866
mmando
20년 전 조회 1,645
20년 전 조회 1,427
20년 전 조회 1,341
20년 전 조회 1,284
20년 전 조회 1,180
mmando
20년 전 조회 8,208
아꽈
20년 전 조회 1,437
20년 전 조회 1,156
20년 전 조회 1,415
20년 전 조회 1,255
20년 전 조회 1,264
20년 전 조회 1,111
20년 전 조회 1,375
20년 전 조회 1,196
20년 전 조회 2,020
20년 전 조회 1,135
20년 전 조회 1,400
20년 전 조회 1,124
20년 전 조회 1,332
20년 전 조회 1,351
20년 전 조회 1,174
20년 전 조회 1,365
20년 전 조회 1,115
20년 전 조회 1,531
20년 전 조회 1,369
20년 전 조회 1,435
20년 전 조회 1,172
20년 전 조회 1,225
🐛 버그신고