Diễn đàn share thủ thuật code hay shin

Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Diễn đàn share thủ thuật code hay shin

    nút thank ko chuyển trang

    Beeny
    Beeny

    Developer

    Developer


    Posts : 21
    Points : 58
    Thanked : 0
    Join date : 18/04/2011
     Status Status : Beeny

     nút thank ko chuyển trang Empty nút thank ko chuyển trang

    Bài gửi by Beeny Mon Apr 18, 2011 4:19 am

    người làm: Exterminator & Thuan007
    tìm trong view_topic đoạn
    Code:
    <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">
    thay thành
    Code:
    <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}" target="thanks" onclick="exec_refresh();">
    sau đó dán đoạn sau vào cuối view_topic
    Code:
    <script type="text/javascript">
    <!--
    function exec_refresh()
    {
      myvar = myvar + ' .';
      var timerID = setTimeout('exec_refresh();', 20);
      if (timeout > 0)
      {
          timeout -= 1;
      }
      else
      {
          clearTimeout(timerID);
          window.status = '';
      window.location.reload();
     
      }
    }

    var myvar = '';
    var timeout = 50;
    //-->
    </script>
    <iframe name="thanks" height="0" width="0" frameborder="0"></iframe>

      Hôm nay: Fri Apr 26, 2024 1:43 pm