漂亮的文字广告代码

看到一个站文字代码挺漂亮的,在一个群里面,然后我说提供一下,omg居然让我买他一个月的广告,尼玛,一个简单的代码值得 嘛,我自己百度找到了更好看的。

自己修改的:

<div id="_ylbox" class="pk-row pk-kxpc-container pk-margin-bottom-15 pk-hide">
	<div class="pk-w-sm-12">
		<div class="pk-background-color-white pk-radius-4" style="position:relative;padding:6px 2px">
			<table style="border:0;width:100%;font-size:14px"></table>
			<i style="position:absolute;width:22px;height:12px;bottom:0;right:0;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAMCAYAAABm+U3GAAABg0lEQVQ4T7WTsWvCQBTGv9giGMgNDRTRxkHdK1Ts5qKQsdS9/0ChOIhginM1oxS6l+JacBQ7ubX/gC4uWuUQ4pBABEm1PEFJNNJBetPxvrsf333vngBAAHAB4AzAKY5bPwAMAN8EVQCcH8fbu80JfOnnVFVVpuv6bSqVenVfazabGc65VSqVet1ut5DNZt99TDkEvnILdJgxJlEtkUjkB4PBB+1N07QIwjmvLxYLczabjRVFuR6NRp+kdzqdr3K53Nuw9sC2bbc0Tbv3iyadTkdzuVxB1/Vn0jVNe6jVaut9v9+32u22eRA8n89boVDoxg88mUzqwWCQkSYIAkRRjNq2PV6tVnAcxwyHw5WDYMuy3iRJujvUzGKxGPXTGo3G2F3fi+IvMLmeTqe95XKJQCCwZsXj8TxjzGPGA6bGJZPJTCQS2T5p191wOHyMxWJP7rphGC+yLHv64vlu5LZarVZ2n+WGbHKmjClbWpS1KIruvqy/278NyGakZQAnR07gdqR/AfaxlNWnCI7OAAAAAElFTkSuQmCC');background-repeat:none;cursor:pointer" onclick="location.href='/lianxi'"></i>
		</div>
<table style="border: 0; width: 100%; font-size: 14px;">
<tbody>
<tr>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD01虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD02虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;"><a href="https://chidagua.com/lianxi" target="_blank" rel="noopener"><span style="color: #008000;">文字广告100R/月</span></a></div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD04虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;"><a href="https://xinrenzhan.com"><span style="color: #ff0000;"><strong>新人站</strong></span></a></div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD06虚位以待</div></td>
</tr>
<tr>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD07虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD08虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD09虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;"><a href="https://chidagua.com/lianxi" target="_blank" rel="noopener"><strong><span style="color: #800080;">文字广告100R/月</span></strong></a></div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD11虚位以待</div></td>
<td style="width: 16.666666666666668%; padding: 3px 2px 3px 12px;">
<div class="pk-text-nowrap" style="max-width: 234px; overflow: hidden;">AD12虚位以待</div></td>
</tr>
</tbody>
</table>

	</div>
</div>

原本的支持自动过期,我不会弄,其实自己也就是喜欢这个ad标识:

<div id="_ylbox" class="pk-row pk-kxpc-container pk-margin-bottom-15 pk-hide">
	<div class="pk-w-sm-12">
		<div class="pk-background-color-white pk-radius-4" style="position:relative;padding:6px 2px">
			<table style="border:0;width:100%;font-size:14px"></table>
			<i style="position:absolute;width:22px;height:12px;bottom:0;right:0;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAMCAYAAABm+U3GAAABg0lEQVQ4T7WTsWvCQBTGv9giGMgNDRTRxkHdK1Ts5qKQsdS9/0ChOIhginM1oxS6l+JacBQ7ubX/gC4uWuUQ4pBABEm1PEFJNNJBetPxvrsf333vngBAAHAB4AzAKY5bPwAMAN8EVQCcH8fbu80JfOnnVFVVpuv6bSqVenVfazabGc65VSqVet1ut5DNZt99TDkEvnILdJgxJlEtkUjkB4PBB+1N07QIwjmvLxYLczabjRVFuR6NRp+kdzqdr3K53Nuw9sC2bbc0Tbv3iyadTkdzuVxB1/Vn0jVNe6jVaut9v9+32u22eRA8n89boVDoxg88mUzqwWCQkSYIAkRRjNq2PV6tVnAcxwyHw5WDYMuy3iRJujvUzGKxGPXTGo3G2F3fi+IvMLmeTqe95XKJQCCwZsXj8TxjzGPGA6bGJZPJTCQS2T5p191wOHyMxWJP7rphGC+yLHv64vlu5LZarVZ2n+WGbHKmjClbWpS1KIruvqy/278NyGakZQAnR07gdqR/AfaxlNWnCI7OAAAAAElFTkSuQmCC');background-repeat:none;cursor:pointer" onclick="location.href='/lianxi'"></i>
		</div>
	</div>
</div>
<script>
	$(function() {
		var ads = [];
      	ads[1] = {
			title: "文字广告100R/月",
			href: "/",
			class: "pk-text-danger",
			expdate: "2119-08-19"
		}
      	ads[3] = {
			title: "新人站",
			href: "https://xinrenzhan.com",
			class: "pk-text-danger",
			expdate: "2119-07-13"
		}
      	ads[10] = {
			title: "文字广告100R/月",
			href: "/",
			class: "pk-text-primary",
			expdate: "2119-07-13"
		}
		//h代表几行,l代表几列
		var h = 2,
			l = 5,
			html = '';
		for(var j = 0; j < h; j++) {
			html += '<tr>';
			for(var i = 0; i < l; i++) {
				html += '<td style="width:' + (100 / l) + '%;padding:3px 2px 3px 12px"><div class="pk-text-nowrap" style="max-width:234px;overflow:hidden">';
				var d = j * l + i + 1;
				var o = ads[d];
				var f = true;
				if(typeof o!="undefined") {
					var nowtime = (new Date()).getTime();
					var exptime = Date.parse(new Date(o.expdate));
                  	//alert(nowtime);
					if(nowtime < exptime) {
                      	if(o.html){
                            html += o.html;
                        }else{
                        	html += '<a target="_blank" href="' + o.href + '" class="' + o.class + ' pk-hover-underline">' + o.title + '</a>';
                        }
						f = false;
					}
				}
				if(f) {
					html += '<a target="_blank" href="/lianxi" class="pk-hover-underline" title="广告位有空,点击查看详情" style="color:#777">AD' + (d < 10 ? '0' + d : d) + '虚位以待</a>';
				}
				html += '</div></td>';
			}
			html += '</tr>';
		}
		$('#_ylbox').removeClass('pk-hide').find('table').append(html);
	});
</script>
WP优化

WordPress免插件自动为图片添加alt和title

2020-5-25 12:16:42

WP优化

wordpress配置个性后台菜单-Menu Editor插件

2020-5-26 13:30:37

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索