Hãy đăng ký thành viên để có thể dễ dàng trao đổi, giao lưu và chia sẻ về kiến thức đồ họa.
  1. Hãy đăng ký subscribe kênh Youtube mới của Việt Designer tại địa chỉ: Youtube.com/VietDesignerChannel để theo dõi các video về thiết kế đồ họa. Do trước đó kênh cũ bị Youtube quét không rõ lý do, trong thời gian chờ kháng cáo nếu các bạn thấy video trên diễn đàn bị die không xem được thì có thể vào kênh mới để tìm xem video sơ cua nhé.
    Loại bỏ thông báo

Giúp mình sửa code hiện thị ảnh bài viết trên trang chủ Blogspot

Chủ đề thuộc danh mục 'Blogspot' được đăng bởi nguoimanghoiam.com, 20/10/16.

Lượt xem: 5,806

  1. nguoimanghoiam.com Mới đăng kí

    Code:
    <!-- BEGIN HOME BOX 2 DYNAMIC -->
    
    <section class='cat-box column2 tie-cat-2 last-column'>
        <div class='cat-box-title'>
                    <h2><a href='#tin-tuc/'>Đẹp ++</a></h2>
                    <div class='stripe-line'/>
                </div>
                <div class='cat-box-content'>
               
    <ul id='homebox5'>
                 
    </ul>
                    <div class='clear'/>
    
        </div><!-- .cat-box-content /-->
    </section><!-- List Box -->
    
    <script type='text/javascript'>
    //<![CDATA[
      function echoHomeBox5(json) {
    var html = '', thumb_size = '';
    var stt = 1;
        for (var i = 0; i < json.feed.entry.length; i++) {
          for (var j = 0; j < json.feed.entry[i].link.length; j++) {
            if (json.feed.entry[i].link[j].rel == 'alternate') {
              var postUrl = json.feed.entry[i].link[j].href;
              break;
            }
          }
    
          var postId = json.feed.entry[i].id.$t;
          var postTitle = json.feed.entry[i].title.$t;
          var c = postContent = json.feed.entry[i].content.$t;
    
    
    
          if (stt++ > 1) {li_class = 'other-news';
    thumb_size = "width='110' height='75'";
          html += '<li class="other-news"><div class="post-thumbnail tie-appear"><a rel="bookmark" href="'+postUrl+'"><img width="110" height="75" src="http://placehold.it/110x75" class="attachment-tie-small wp-post-image tie-appear" alt="2016-01-19_171620"><span class="fa overlay-icon"></span></a></div><!-- post-thumbnail /--><h3 class="post-box-title"><a rel="bookmark" href="'+postUrl+'">'+postTitle+'</a></h3><p class="post-meta"></p></li>';
                       } else {
    html += "<li class='first-news'><div class='inner-content'><div class='post-thumbnail'><a href='"+postUrl+"' rel='bookmark'><img alt='1-1-6566-1453689385' class='attachment-tie-medium wp-post-image' height='165' src='http://placehold.it/310x165' width='310'/>                                    <span class='fa overlay-icon'/></a></div><!-- post-thumbnail /--><h2 class='post-box-title'><a href='"+postUrl+"' rel='bookmark'>"+postTitle+"</a></h2><p class='post-meta'></p><div class='entry'><p>Abc def abc def abc def abc def abc def abc def &amp;hellip;</p><a class='more-link' href='"+postUrl+"'>Xem tiếp</a></div></div></li>";
                       }
    
    
        
        }
    document.getElementById("homebox5").innerHTML = html;
    
    
      }
    //]]>
    </script>
          <script src='/feeds/posts/default/-/Tin tức?max-results=5&amp;alt=json-in-script&amp;callback=echoHomeBox5'/>
    <!-- END HOME BOX 2 DYNAMIC -->
    Đoạn code trên nằm ở 2 chuyên mục dưới cùng , ko hiểu tại sao nó ko hiện ảnh lên bài viết . Mọi người giúp mình với !
    Demo vungtau-travels.blogspot.com

    ...
  2. nguoimanghoiam.com

    nguoimanghoiam.com Mới đăng kí

  3. nhoxkia1991

    nhoxkia1991 Thành viên cấp 1

  4. nguoimanghoiam.com

    nguoimanghoiam.com Mới đăng kí

    mình đã thay nhưng ko được , mình muốn thay nó tự động lấy ảnh của bài viết á . MÌnh mới làm blog nên chưa rành lắm
  5. nhoxkia1991

    nhoxkia1991 Thành viên cấp 1

    Cái này phải khai báo nữa giống như 2 đoạn này
    Code:
    var postId = json.feed.entry[i].id.$t;
    var postTitle = json.feed.entry[i].title.$t;
    
    Lúc đó mới lấy hình động được
  6. mahu220

    mahu220 Thành viên cấp 2

    fb.com/beohoavinh96 pm mình giúp cho
  7. nguoimanghoiam.com

    nguoimanghoiam.com Mới đăng kí

    add Lãng Quên đi bạn cảm ơn bạn
  8. nguoimanghoiam.com

    nguoimanghoiam.com Mới đăng kí

    Bạn nhoxkia có thể hoàn chỉnh code giúp mình ko ? mình mới làm blog nên chưa biết nhiều lắm cảm ơn bạn nhiều
  9. nguoimanghoiam.com

    nguoimanghoiam.com Mới đăng kí

    uppppppppppppppppppppppppppppppppppppp
  10. nhoxkia1991

    nhoxkia1991 Thành viên cấp 1

    bạn gửi full code thử

Ủng hộ diễn đàn