php | 랜덤탭 소스

페이지 정보

작성자 maura80 작성일15-08-17 17:52 조회2,824회 댓글0건

본문

 <!--################################################################
 # 랜덤탭   #
 ################################################################# -->

    <?
    $random_display = rand(0,3);

    if ($random_display == 0)
     {
      $display2 = "style= "DISPLAY: none\"";
      $display3 = "style= "DISPLAY: none\"";
      $display4 = "style= "DISPLAY: none\"";
     }
    else if ($random_display == 1)
     {
      $display1 = "style= "DISPLAY: none\"";
      $display3 = "style= "DISPLAY: none\"";
      $display4 = "style= "DISPLAY: none\"";
     }
    else if ($random_display == 2)
     {
      $display1 = "style= "DISPLAY: none\"";
      $display2 = "style= "DISPLAY: none\"";
      $display4 = "style= "DISPLAY: none\"";
     }
    else if ($random_display == 3)
     {
      $display1 = "style= "DISPLAY: none\"";
      $display2 = "style= "DISPLAY: none\"";
      $display3 = "style= "DISPLAY: none\"";
     }
    ?>
<!--################################################################-->

 


      <table width="100%" border="0" cellpadding="0" cellspacing="0" id=r01 <?= $display1?>>
       <tr>
        <td><img src="../main/img_new/img_main_tit_real.gif" alt="제휴스팟 리얼스토리" style="margin-bottom:10px"></td>
        <td align="right"><a href="../bbs/board.php?bo_table=spot_realstory"><img src="../common_contents/img/btn_more.gif" style="margin-bottom:7px;"/></a></td>
       </tr>
       <tr>
        <td align="left" colspan="2"><?= latest_sort_date("main_photos_realstory3", spot_realstory, 2, 30, 60, 80, 70, wr_datetime, 700) ?></td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" id=r02 <?= $display2?>>
       <tr>
        <td><img src="../main/img_new/img_stit_community.gif" alt="커뮤니티" style="margin-bottom:10px"></td>
        <td align="right"><a href="../community/"><img src="../common_contents/img/btn_more.gif" style="margin-bottom:7px;"/></a></td>
       </tr>
       <tr>
        <td colspan="2" align="left"><?= union_latest_sort_date("main_board_suda", array('free_board','member_joining','forme_photo'), 7, 0, 45, 0, 0, wr_datetime, 700) ?></td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" id=r03 <?= $display3?>>
       <tr>
        <td><img src="../main/img_new/img_stit_bok.gif" alt="복불복경매" style="margin-bottom:10px"></td>
        <td align="right"><a href="../bbs/board.php?bo_table=auction2"><img src="../common_contents/img/btn_more.gif" style="margin-bottom:7px;"/></a></td>
       </tr>
       <tr>
        <td align="left" colspan="2"><?= latest_sort_date("lemon_auction5",auction2, 2, 40, 0, 80, 70, rand, 70, auction_random)?></td>
       </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" id=r04 <?= $display4?>>
       <tr>
        <td><img src="../main/img_new/img_main_tit_magazine.gif" alt="무료성형 체험단 후기" style="margin-bottom:10px"></td>
        <td align="right"><a href="../bbs/board.php?bo_table=event_review"><img src="../common_contents/img/btn_more.gif" style="margin-bottom:7px;"/></a></td>
       </tr>
       <tr>
        <td colspan="2" align="left"><?= latest_sort_date("main_photos2", event_review, 2, 26, 100, 80, 70, wr_datetime, 700) ?></td>
       </tr>

 </table>

 

댓글목록

등록된 댓글이 없습니다.