플래시 랜덤하게 보이기 (포털사이트 배너처럼 구현)
<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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 536 | Flash | 19년 전 | 5439 | ||
| 535 | 기타 |
|
19년 전 | 4137 | |
| 534 | JavaScript |
|
19년 전 | 4702 | |
| 533 | 기타 | 19년 전 | 3791 | ||
| 532 | JavaScript | 19년 전 | 3930 | ||
| 531 | 기타 | 19년 전 | 3399 | ||
| 530 | JavaScript | 19년 전 | 3256 | ||
| 529 | Flash |
|
19년 전 | 3468 | |
| 528 | Flash |
|
19년 전 | 4219 | |
| 527 | Flash | 19년 전 | 3744 | ||
| 526 | 기타 | 19년 전 | 5380 | ||
| 525 | MySQL |
|
19년 전 | 4748 | |
| 524 | MySQL |
|
19년 전 | 4473 | |
| 523 | Flash |
|
19년 전 | 4234 | |
| 522 | 기타 |
|
19년 전 | 3584 | |
| 521 | 기타 |
|
19년 전 | 3807 | |
| 520 | JavaScript |
|
19년 전 | 3567 | |
| 519 | 기타 |
|
19년 전 | 3032 | |
| 518 | 기타 |
|
19년 전 | 3719 | |
| 517 | JavaScript |
|
19년 전 | 3850 | |
| 516 | JavaScript |
|
19년 전 | 4140 | |
| 515 | 기타 | 19년 전 | 3390 | ||
| 514 | 기타 | 19년 전 | 4836 | ||
| 513 | 기타 | 19년 전 | 3371 | ||
| 512 | JavaScript | 19년 전 | 3539 | ||
| 511 | 기타 | 19년 전 | 2809 | ||
| 510 | JavaScript |
|
19년 전 | 4057 | |
| 509 | 기타 | 19년 전 | 4854 | ||
| 508 | 기타 | 19년 전 | 3097 | ||
| 507 | JavaScript | 19년 전 | 4146 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기