|
|
|
10-03-26
|
조회 2,132
|
|
|
|
10-03-26
|
조회 2,212
|
|
|
|
10-03-26
|
조회 1,907
|
|
|
|
10-03-26
|
조회 2,125
|
|
|
|
10-03-26
|
조회 1,619
|
|
|
|
10-03-26
|
조회 2,144
|
|
|
|
10-03-26
|
조회 1,610
|
|
|
|
10-03-26
|
조회 1,398
|
|
|
|
10-03-26
|
조회 1,402
|
|
|
|
10-03-26
|
조회 1,496
|
|
|
|
10-03-26
|
조회 1,826
|
|
|
|
10-03-26
|
조회 2,990
|
|
|
|
10-03-26
|
조회 1,395
|
|
|
|
10-03-26
|
조회 1,360
|
|
|
|
10-03-26
|
조회 1,496
|
|
|
|
10-03-26
|
조회 3,639
|
|
|
|
10-03-25
|
조회 1,849
|
|
|
|
10-03-25
|
조회 3,507
|
|
|
|
10-03-25
|
조회 1,877
|
|
|
|
10-03-25
|
조회 1,898
|
댓글 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>
<? } ?>