网页左右两则固定对联广告

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>对联广告测试(兼容ie,ff,gg,360浏览器)</title>
    <style type="text/css">
        .couplet_ad /* 底部固定*/
        {
            margin-top: 300px;
            position: fixed;
            bottom: auto;
            top: 0;
            width: 219px;
            height: 150px;
            z-index: 99999;
        }
        * html .couplet_ad /* IE6 底部固定*/
        {
            _position: absolute;
            _bottom: auto;
            _top: expression(eval(document.documentElement.scrollTop));
        }
        .couplet_ad a
        {
            display: block;
            cursor: pointer;
            text-align: center;
            font-size: 11px;
            font-weight:bold;
            padding-top: 3px;
        }
        #ad_left
        {
            left: 20px;
        }
        #ad_right
        {
            right: 20px;
        }
    </style>

    <script language="javascript">
        function ad_left() {
            document.getElementById('ad_left').style.display = "none";
        }
        function ad_right() {
            document.getElementById('ad_right').style.display = "none";
        }
    </script>

</head>
<body>
    <div class="couplet_ad" id="ad_left">
        <a target="_blank" href="">
            <img src="Resources/images/top5.jpg"></a><div style="background-color: #999999; width: 100%;
                color: White;">
                <a οnclick="ad_left();">关闭</a></div>
    </div>
    <div class="couplet_ad" id="ad_right">
        <a target="_blank" href="">
            <img src="Resources/images/top6.jpg"></a> <div style="background-color: #999999; width: 100%;
                color: White;"><a οnclick="ad_right();">关闭</a></div>
    </div>
    <div style="height: 3000px">
        这里是顶部TOP
    </div>
    这里是底部BOTTOM
</body>
</html>


 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值