2개 이미지 랜덤으로 달기
링크사용 X
<?php
$nojp = array('S7sULZS',' ssUMom7','SmCEuyz','1HXcbKt');
shuffle($nojp);
?>
<img src="https://i.imgur.com/<?php echo $nojp[0]?>.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
링크사용 O
<?php
$nojp = array(
array('링크주소',' S7sULZS '),
array('링크주소',' ssUMom7 '),
array('링크주소',' SmCEuyz '),
array('링크주소',' 1HXcbKt')
);
shuffle($nojp);
?>
<a href="<?php echo $nojp[0][0]?>">
<img src="https://i.imgur.com/<?php echo $nojp[0][1]?>.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
</a>
개별로 각각 달기
<img src="https://i.imgur.com/z7Pr8qM.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
<img src="https://i.imgur.com/S7sULZS.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
<img src="https://i.imgur.com/ SmCEuyz.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
<img src="https://i.imgur.com/ ssUMom7.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
<img src="https://i.imgur.com/ 1HXcbKt.jpg" style="display:block; margin:30px auto; max-width:100%; height:auto;">
주소 복사
랜덤 이동