index_hk.html 3.44 KB
{{> layout/header_fan}}
{{> channel/banner_top}}
<div class="tv-area">
    {{# tvs}}
    <span class="tv"> 
        {{# link}}
            <a class="tv-a" href="{{.}}" target="_blank" onclick="YOHODCLICK('home','web','homeTv')"></a>
        {{/ link}}
        {{^ link}}
            <span class="tv-a"></span>
        {{/ link}}
        <img class="tv-img" src="{{img}}" alt="{{alt}}"> 
    </span>
    {{/ tvs}}
</div>
<div class="content clearfix">
{{# topItems}}
    {{> default/default_item}}
{{/ topItems}}

{{# contentWithNothing}}
    <div class="right-advt">
        {{> default/follow_us}}
        {{> default/default_pop_top}}
    </div>
    {{> default/default_pager}}
{{/ contentWithNothing}}

{{# contentWithAdvert}}
    <div class="right-advt">
        {{# advert}}
        <a class="link" href="{{link}}" target="_blank" onclick="YOHODCLICK('banner','web','homeBannerRight')">
            <img data-original="{{img}}" class="lazy img" alt="{{alt}}" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" />
        </a>
        {{/ advert}}
        {{> default/follow_us}}
    </div>
    <div class="bottom-item-container">
        {{# bottomItems}}
            {{> default/default_item}}
        {{/ bottomItems}}
        {{> default/default_pop}}
        {{> default/default_pager}}
    </div>
{{/ contentWithAdvert}}

{{# contentWithCenterBanner}}
    <div class="right-advt">
        {{> default/follow_us}}
        {{> default/default_pop_top}}
    </div>
    {{> channel/banner_center}}
    <div class='bottom-item-container'>
        {{# bottomItems}}
            {{> default/default_item}}
        {{/ bottomItems}}
        {{> default/default_pager}}
    </div>
{{/ contentWithCenterBanner}}

{{# contentWithAll}}
    <div class="right-advt">
        {{# advert}}
        <a class="link" href="{{link}}" target="_blank" onclick="YOHODCLICK('banner','web','homeBannerRight')">
            <img data-original="{{img}}" class="lazy img" alt="{{alt}}" src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" />
        </a>
        {{/ advert}}
        {{> default/follow_us}}
    </div>
    {{> channel/banner_center}}
    <div class="bottom-item-container">
        {{# bottomItems}}
            {{> default/default_item}}
        {{/ bottomItems}}
        {{> default/default_pop}}
        {{> default/default_pager}}
    </div>
{{/ contentWithAll}}
</div>

<!--广告曝光代码开始-->
<div id="div-adv-iframe" style="display:none"></div>
<script type="text/javascript">
    function createIframe() {
        var i = document.createElement("iframe");
        var timestamp = new Date().getTime();
        // 2-3
        if ((timestamp > 1454378400000 && timestamp <= 1454464800000)|| (timestamp > 1455415200000 && timestamp <= 1455501600)) {
            i.src="http://ad.yoho.cn/yoho/Yoho_Ad20160201_2.html";
        }else if (timestamp > 1454551200000 && timestamp <= 1454724000000) {
            i.src="http://ad.yoho.cn/yoho/Yoho_Ad20160201_4.html";
        }
        i.scrolling="no"; i.frameborder="0"; i.width="0"; i.height="0";
        document.getElementById("div-adv-iframe").appendChild(i);
    };
    if (window.addEventListener) {
        window.addEventListener("load", createIframe, false);
    } else if (window.attachEvent) {
        window.attachEvent("onload", createIframe);
    } else {
        window.onload = createIframe;
    }
</script>
<!--广告曝光代码结束-->
{{> layout/footer_fan}}