플래쉬를 랜덤으로 나오게 하고싶어요- 정보
플래쉬를 랜덤으로 나오게 하고싶어요-본문
저는 코드에 관해 전혀 모르는 디자이너인데요ㅠ
프로그램 하시는분이 나몰라라해서 알아보려고 이렇게 글을 씁니다.ㅠ
<table cellpadding="0" cellspacing="0" border="0" width="860">
<?php if ($bo_table == "cho" || $bo_table == "tuk" || $bo_table == "dehak" || $bo_table == "kukko" || $bo_table == "food") { ?>
<?php if (strstr($_SERVER['REQUEST_URI'], "board.php") && !strstr($_SERVER['REQUEST_URI'], "wr_id")) { ?>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center"><div style="width:460px; height:100px;"><script>my_embedSwf("/my_page/images/page_down.swf", 460, 100);</script></div></td>
</tr>
<?php } ?>
<?php } ?>
<tr>
<td height="10"></td>
</tr>
</table>
<?php if ($bo_table == "cho" || $bo_table == "tuk" || $bo_table == "dehak" || $bo_table == "kukko" || $bo_table == "food") { ?>
<?php if (strstr($_SERVER['REQUEST_URI'], "board.php") && !strstr($_SERVER['REQUEST_URI'], "wr_id")) { ?>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center"><div style="width:460px; height:100px;"><script>my_embedSwf("/my_page/images/page_down.swf", 460, 100);</script></div></td>
</tr>
<?php } ?>
<?php } ?>
<tr>
<td height="10"></td>
</tr>
</table>
이런소스가 있다했을경우 저기에 page_down.swf 라는 플래쉬 파일이 들어가는 부분에
여러개의 플래쉬를 넣어서 랜덤으로 나오게 하고싶은데
그것좀 알려주세요ㅠㅠ
어디에다 넣어야하는지도 자세히요ㅠ
댓글 전체

<table cellpadding="0" cellspacing="0" border="0" width="860">
<?php if ($bo_table == "cho" || $bo_table == "tuk" || $bo_table == "dehak" || $bo_table == "kukko" || $bo_table == "food") { ?>
<? $fla_rand = rand(1,7);//숫자는 마음대로 ?>
<?php if (strstr($_SERVER['REQUEST_URI'], "board.php") && !strstr($_SERVER['REQUEST_URI'], "wr_id")) { ?>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center"><div style="width:460px; height:100px;"><script>my_embedSwf("/my_page/images/<?=$fla_rand?> .swf", 460, 100);</script></div></td>
</tr>
<?php } ?>
<?php } ?>
<tr>
<td height="10"></td>
</tr>
</table>
단, 랜덤으로 사용하실 경우 플래시명을 숫자로 하시던가 아니면 같은 이름으로 뒤에 숫자만 다르게 하시던가 하셔서
위의 적용부분에
<?=$fla_rand?> 를 파일명<?=$fla_rand?> 로 하셔도 됩니다.
<?php if ($bo_table == "cho" || $bo_table == "tuk" || $bo_table == "dehak" || $bo_table == "kukko" || $bo_table == "food") { ?>
<? $fla_rand = rand(1,7);//숫자는 마음대로 ?>
<?php if (strstr($_SERVER['REQUEST_URI'], "board.php") && !strstr($_SERVER['REQUEST_URI'], "wr_id")) { ?>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center"><div style="width:460px; height:100px;"><script>my_embedSwf("/my_page/images/<?=$fla_rand?> .swf", 460, 100);</script></div></td>
</tr>
<?php } ?>
<?php } ?>
<tr>
<td height="10"></td>
</tr>
</table>
단, 랜덤으로 사용하실 경우 플래시명을 숫자로 하시던가 아니면 같은 이름으로 뒤에 숫자만 다르게 하시던가 하셔서
위의 적용부분에
<?=$fla_rand?> 를 파일명<?=$fla_rand?> 로 하셔도 됩니다.
감사합니다 ^ㅡ^