플래시 랜덤하게 보이기 (포털사이트 배너처럼 구현)
<html>
<head>
<script language="JavaScript">
<!--
var list= new Array()
list[list.length]='flash_01.swf';
list[list.length]='flash_02.swf';
list[list.length]='flash_03.swf';
list[list.length]='flash_04.swf';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
function showswf(){
document.write("<embed src='"+list[j]+"' width='390' height='130'>");
}
//-->
</script>
</head>
<table width="390" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="390" height="130"><script language="JavaScript">showswf();</script>
</td>
</tr>
</table>
</html>
아래 사이트로 가셔서 최신버전을 다운로드 후
http://www.iezn.com/test/ie/index.php
<head> 와 </head> 사이에 아래 코드를 넣어 주시면 패치됩니다.
<script type="text/javascript" src="embed_patch.js"></script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<head>
<script language="JavaScript">
<!--
var list= new Array()
list[list.length]='flash_01.swf';
list[list.length]='flash_02.swf';
list[list.length]='flash_03.swf';
list[list.length]='flash_04.swf';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
function showswf(){
document.write("<embed src='"+list[j]+"' width='390' height='130'>");
}
//-->
</script>
</head>
<table width="390" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="390" height="130"><script language="JavaScript">showswf();</script>
</td>
</tr>
</table>
</html>
아래 사이트로 가셔서 최신버전을 다운로드 후
http://www.iezn.com/test/ie/index.php
<head> 와 </head> 사이에 아래 코드를 넣어 주시면 패치됩니다.
<script type="text/javascript" src="embed_patch.js"></script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 2개
깜찍한지현
18년 전
감사합니다~ 잘됩니다.
17년 전
감사합니다 ^^
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 386 | Flash | 19년 전 | 3496 | ||
| 385 | Flash | 19년 전 | 4583 | ||
| 384 | Flash | 19년 전 | 5250 | ||
| 383 | 기타 | 19년 전 | 6164 | ||
| 382 | 기타 |
|
19년 전 | 3042 | |
| 381 | JavaScript | 19년 전 | 3947 | ||
| 380 | 기타 | 19년 전 | 3766 | ||
| 379 | MySQL | 19년 전 | 6091 | ||
| 378 | 기타 | 19년 전 | 4455 | ||
| 377 | Flash |
|
19년 전 | 4589 | |
| 376 | Flash |
|
19년 전 | 5073 | |
| 375 | 기타 |
|
19년 전 | 3030 | |
| 374 | JavaScript | 19년 전 | 4167 | ||
| 373 | 기타 | 19년 전 | 3582 | ||
| 372 | Flash | 19년 전 | 6186 | ||
| 371 | 기타 | 19년 전 | 4933 | ||
| 370 | JavaScript |
NeoGenesis
|
19년 전 | 5388 | |
| 369 | 기타 | 19년 전 | 4097 | ||
| 368 | 기타 | 19년 전 | 5049 | ||
| 367 | 기타 | 19년 전 | 4034 | ||
| 366 | JavaScript | 19년 전 | 4245 | ||
| 365 | 기타 | 19년 전 | 4055 | ||
| 364 | JavaScript | 19년 전 | 4584 | ||
| 363 | 기타 | 19년 전 | 3144 | ||
| 362 | JavaScript | 19년 전 | 5018 | ||
| 361 | JavaScript | 19년 전 | 4033 | ||
| 360 | 기타 | 19년 전 | 3590 | ||
| 359 | 기타 | 19년 전 | 4468 | ||
| 358 | 기타 | 19년 전 | 3620 | ||
| 357 | PHP | 19년 전 | 8180 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기