|
|
|
15년 전
|
조회 5,540
|
|
|
|
15년 전
|
조회 1,759
|
|
|
|
15년 전
|
조회 1,793
|
|
|
|
15년 전
|
조회 1,885
|
|
|
|
15년 전
|
조회 1,862
|
|
|
|
15년 전
|
조회 1,457
|
|
|
|
15년 전
|
조회 3,133
|
|
|
|
15년 전
|
조회 2,283
|
|
|
|
15년 전
|
조회 2,066
|
|
|
|
15년 전
|
조회 2,076
|
|
|
|
15년 전
|
조회 1,840
|
|
|
|
15년 전
|
조회 2,078
|
|
|
|
15년 전
|
조회 1,572
|
|
|
|
15년 전
|
조회 2,076
|
|
|
|
15년 전
|
조회 1,539
|
|
|
|
15년 전
|
조회 1,348
|
|
|
|
15년 전
|
조회 1,356
|
|
|
|
15년 전
|
조회 1,434
|
|
|
|
15년 전
|
조회 1,765
|
|
|
|
15년 전
|
조회 2,918
|
|
|
|
15년 전
|
조회 1,341
|
|
|
|
15년 전
|
조회 1,290
|
|
|
|
15년 전
|
조회 1,449
|
|
|
|
15년 전
|
조회 3,578
|
|
|
|
15년 전
|
조회 1,799
|
|
|
|
15년 전
|
조회 3,453
|
|
|
|
15년 전
|
조회 1,819
|
|
|
|
15년 전
|
조회 1,844
|
|
|
|
15년 전
|
조회 1,895
|
|
|
|
15년 전
|
조회 1,730
|
댓글 7개
이걸 말씀하시는건지 모르겠네요;;
while($n != $_SESSION['n']) {
$n = rand(1,5);
}
$_SESSION['n'] = $n;
메인에 플래시넣을걸 메인으로이동할때마다 다른플래시를보여주고 싶어서그러거든요~
어떤식으로 해야할지 감이오질않습니다 ㅜㅜ
flash1.swf
flash2.swf
flash3.swf
flash4.swf
flash5.swf
가 있다는 가정하에..
<?
$n = rand(1,5);
?>
<플래시찍는 스크립트~ 플래시경로="flash<?=$n?>.swf">
이렇게하면 매번 램덤으로 나오긴 합니다..
중복을 피할려면.. 조금 다르게 해야겠지요^^;
<?
$flash_rand= rand(1,5);
if ($flash_rand == '1') {
?>
<script type="text/javascript">doc_write(flash_movie("<?=$g4['path']?>/swf/gallery_5roll.swf", "ids", "1000", "420", "transparent"));</script>
<?
}else if ($flash_rand == '2') { ?>
<script type="text/javascript">doc_write(flash_movie("<?=$g4['path']?>/swf/gallery_ro.swf", "ids", "1000", "500", "transparent"));</script>
<?
}else if ($flash_rand == '3') { ?>
<div style="width:<?=$table_width?>px; margin-left:auto; margin-right:auto; position: relative; text-align:center; top: -40px">
<script type="text/javascript">doc_write(flash_movie("<?=$g4['path']?>/swf/naver_style.swf", "ids", "998", "400", "transparent"));</script></div>
<?
}else if ($flash_rand == '4') { ?>
<script type="text/javascript">doc_write(flash_movie("<?=$g4['path']?>/swf/gallery_noro.swf", "ids", "1000", "500", "transparent"));</script>
<?
}else if ($flash_rand == '5') { ?>
<script type="text/javascript">doc_write(flash_movie("<?=$g4['path']?>/swf/gallery_ting.swf", "ids", "1000", "500", "transparent"));</script>
<? } ?>