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

Các bác thành thạo HTML và blogger cho e hỏi 1 chút ạ

Chủ đề thuộc danh mục 'Blogspot' được đăng bởi thienhavbt, 20/6/19.

Lượt xem: 4,378

  1. thienhavbt Mới đăng kí

    Em đang tập tành làm blog phim, nhưng đến đoạn này khó quá, e xin chỉ giáo với ạ
    Bên dưới là đoạn code như hình này ạ[​IMG]
    Em chèn video vào được rồi nhưng mỗi lần mở sang tập 2 thì vẫn nghe tiếng tập 1 và ngược lại. Có cách nào chỉnh sửa đoạn code dưới là khi mở sang button mới hoặc trở về sẽ ko nghe tiếng của video (Hoặc đóng hẳn content) ko ạ. Nhờ các bạn giúp em. Em xin cảm ơn à

    Code:
    .post-pagination {
        margin: 20px auto;
        text-align: center;
        width: 100%;
    }
    .button_1, .button_2, .button_3, .button_4, .button_5 {
        border: 2px solid #f4655f;
        font-weight: 900;
        padding: 6px 36px;
        color:#f4655f;
        transition:ease 0.69s !important;
    }
    .button_1:hover, .button_2:hover, .button_3:hover, .button_4:hover, .button_5:hover {
        background: none repeat scroll 0 0 #f4655f;
        color: #fff;
        text-decoration: none;
    }
    </style>
    <script type="text/javascript">
    jQuery(document).ready(function(){
    jQuery('.button_1').click(function(){
    jQuery('.content_1').fadeIn('slow');
      jQuery('.content_2').fadeOut('fast');
    jQuery('.content_3').fadeOut('fast');
    jQuery('.content_4').fadeOut('fast');
    jQuery('.content_5').fadeOut('fast');
    jQuery(this).css('background','#F4655F');
    jQuery(this).css('color','#fff');
    jQuery('.button_2').css('background','#fff');
    jQuery('.button_2').css('color','#F4655F');
    jQuery('.button_3').css('background','#fff');
    jQuery('.button_3').css('color','#F4655F');
    jQuery('.button_4').css('background','#fff');
    jQuery('.button_4').css('color','#F4655F');
    jQuery('.button_5').css('background','#fff');
    jQuery('.button_5').css('color','#F4655F');
    return false;
    });
    jQuery('.button_2').click(function(){
    jQuery('.content_1').fadeOut('fast');
      jQuery('.content_2').fadeIn('slow');
    jQuery('.content_3').fadeOut('fast');
    jQuery('.content_4').fadeOut('fast');
    jQuery('.content_5').fadeOut('fast');
    jQuery(this).css('background','#F4655F');
    jQuery(this).css('color','#fff');
    jQuery('.button_1').css('background','#fff');
    jQuery('.button_1').css('color','#F4655F');
    jQuery('.button_3').css('background','#fff');
    jQuery('.button_3').css('color','#F4655F');
    jQuery('.button_4').css('background','#fff');
    jQuery('.button_4').css('color','#F4655F');
    jQuery('.button_5').css('background','#fff');
    jQuery('.button_5').css('color','#F4655F');
    return false;
    });
    jQuery('.button_3').click(function(){
    jQuery('.content_1').fadeOut('fast');
      jQuery('.content_2').fadeOut('fast');
    jQuery('.content_3').fadeIn('slow');
    jQuery('.content_4').fadeOut('fast');
    jQuery('.content_5').fadeOut('fast');
    jQuery(this).css('background','#F4655F');
    jQuery(this).css('color','#fff');
    jQuery('.button_1').css('background','#fff');
    jQuery('.button_1').css('color','#F4655F');
    jQuery('.button_2').css('background','#fff');
    jQuery('.button_2').css('color','#F4655F');
    jQuery('.button_4').css('background','#fff');
    jQuery('.button_4').css('color','#F4655F');
    jQuery('.button_5').css('background','#fff');
    jQuery('.button_5').css('color','#F4655F');
    return false;
    });
    jQuery('.button_4').click(function(){
    jQuery('.content_1').fadeOut('fast');
      jQuery('.content_2').fadeOut('fast');
    jQuery('.content_3').fadeOut('fast');
    jQuery('.content_4').fadeIn('slow');
    jQuery('.content_5').fadeOut('fast');
    jQuery(this).css('background','#F4655F');
    jQuery(this).css('color','#fff');
    jQuery('.button_1').css('background','#fff');
    jQuery('.button_1').css('color','#F4655F');
    jQuery('.button_2').css('background','#fff');
    jQuery('.button_2').css('color','#F4655F');
    jQuery('.button_3').css('background','#fff');
    jQuery('.button_3').css('color','#F4655F');
    jQuery('.button_5').css('background','#fff');
    jQuery('.button_5').css('color','#F4655F');
    return false;
    });
    jQuery('.button_5').click(function(){
    jQuery('.content_1').fadeOut('fast');
      jQuery('.content_2').fadeOut('fast');
    jQuery('.content_3').fadeOut('fast');
    jQuery('.content_4').fadeOut('fast');
    jQuery('.content_5').fadeIn('slow');
    jQuery(this).css('background','#F4655F');
    jQuery(this).css('color','#fff');
    jQuery('.button_1').css('background','#fff');
    jQuery('.button_1').css('color','#F4655F');
    jQuery('.button_2').css('background','#fff');
    jQuery('.button_2').css('color','#F4655F');
    jQuery('.button_3').css('background','#fff');
    jQuery('.button_3').css('color','#F4655F');
    jQuery('.button_4').css('background','#fff');
    jQuery('.button_4').css('color','#F4655F');
    return false;
    });
    });
    </script></b:if>

    ...

Ủng hộ diễn đàn