1.文字推荐位200元/年,需要联系QQ924994768

2.文字推荐广告位,帮你推广你的产品

3.文字推荐广告位,可以加粗、加颜色

dedebiz添加查看全文html代码的简单方法:

  <div id="article_content" class="article_content clearfix">
    <div id="content_views" class="htmledit_views">
       {dede:field.body/}
    </div>
  </div>
  <div id="treeSkill"></div>
<div id="vip">
<a class="submit" href="{dede:field name='arcurl'/}" rel="nofollow">查看全文</a>
</div>

CSS代码:

        .article_content
        {
            height: 200px;
            overflow: hidden;
        }
        #vip
        {
            width: 100%;
            background-image: -webkit-gradient(linear,left top, left bottom,from(rgba(255,255,255,0)),color-stop(70%, #fff));
            background-image: linear-gradient(-180deg,rgba(255,255,255,0) 0%,#fff 70%);
            padding-bottom: 16px;
            text-align: center;
            position: relative;
            z-index: 998;
            padding-top: 200px;
            margin-top: -200px;
        }
        .submit
        {
            font-size: 16px;
            background-color: #00CC69;
            border-color: rgba(48,131,235,0.9);
            color: #FFFFFF;
            border-radius: 3px;
            display: inline-block;
            padding: 6px 12px;
            margin-bottom: 0;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.42857143;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            -ms-touch-action: manipulation;
            touch-action: manipulation;
            cursor: pointer;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            background-image: none;
            border: 1px solid transparent;
            border-radius: 4px;
        }
.entry-copyright {
    padding: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #828282;
    border: 1px solid #efefef;
    background: rgba(239,239,239,.4);
    border-radius: 4px;
}

js代码:

$(function () {
    if (GetUrlPara() == "action=onClick") {
        $("#article_content").removeClass("article_content");
        $("#vip").remove();
    }
             else{
    				setTimeout(() => {
    				$(".baidu_pl").removeAttr("style");
                    $("#article_content").removeAttr("style");
					if($('#vip a').length>1)
					{$('#vip a').attr("href",$('#vip a:last').attr("href")+"?action=onClick");}else{$('#vip a').attr("href",$('#vip a').attr("href")+"?action=onClick");}
					

    				}, 1000);
    			  
    		 }
		 
});

function GetUrlPara() {
    var url = document.location.toString();
    var arrUrl = url.split("?");
    var para = arrUrl[1];
    return para;
}

 

相关文章 8

1

用自定义表单为dedebiz网站制作一个留言板的方法: 3个月前

用自定义表单为dedebiz网站制作一个留言板的方法:...

2

dedebiz修改搜索结果页关键字加粗标红或改成自己想要格式的方法 11个月前

dedebiz修改搜索结果页关键字加粗标红或改成自己想要格式的方法: /system/archive目录下searchview.class.php文件, 找到(大约304行) $fstr = str_i...

3

dedebiz文章列表排序方法汇总 1年前

dedebiz文章列表排序方法汇总 1.按点击量(文章阅读量)排序(orderby=hot 或 orderby=click),网站热门文章排序 2.随机排序 orderby=rand 用来随机抽...

4

dedebiz批量替换⽂章标题、正⽂内容关键词⽅法介绍:站长在采集⽂章或者复制别⼈⽂章 1年前

dedebiz批量替换⽂章标题、正⽂内容关键词⽅法介绍:站长在采集⽂章或者复制别⼈⽂章后,需要批量修改⽂章标题、关键词、正⽂、作者、...

5

dedebiz的arclist调用副栏目的文章的方法: 1年前

dedebiz的arclist调用副栏目的文章的方法: 打开/taglib/arclist.lib.php,查找以下代码 if($CrossID=='') $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).')';els...

6

dedebiz文章显示所属多个栏目的方法 1年前

dedebiz文章显示所属多个栏目的方法: 一个文章属于栏目一,也属于栏目二,在发表这个文章时,栏目可以选择栏目一,副栏目可以在栏目二选...

7

dedebiz内容管理系统的文章发布时间显示格式样式 2年前

dedebiz内容管理系统的文章发布时间显示格式样式多种,dedebiz利用strftime()函数格式化时间,strftime()参数详解,包括年份日期进制、小时格式等...

8

dedebiz调用发布时间与更新时间的方法 2年前

dedebiz调用发布时间与更新时间的方法,我们在数据库看见2个数据pubdate和senddate。 更新时间:pubdate 栏目调用[field:pubdate,文章页面调用{de...