帝国cms模板:帝国cms精仿《快乐麻花》笑话网站源码
网址:http://www.52img.cn/dingzhi/ecmsmb/mahua.html
1.【修正】图片链接地址使用绝对地址导致GIF采集处理插件不能使用。
解决方法:
打开/e/ecmsshop/1/gif.php 文件
在此代码下加入:
$zzimg=str_replace("你的网址","",$zzimg);
2.【增加】在后台UE编辑器及投稿UE编辑器中插入图片为“绝对地址”.
打开/e/extend/UE/ueditor.config.js 后台UE
打开/e/extend/UE/ueditor.memberconfig.js 前台投稿UE
找到imagepath:在后面加入自己的网址即可.
3.【增加】在后台UE编辑器及投稿UE编辑器中自定义增减功能.
打开/e/extend/UE/ueditor.config.js
在“toolbars”加入对应工具的代码
百度UE 对应代码 一览表:
http://www.52img.cn/daima/php/jingyan/1000110000000274.html
4.动态图 播放按钮 增加“加载中”,避免网站卡顿延迟~更人性化。
修改方法 找到
/ecmsshop/js/ecmsshop.js
找到
$('.gif-play-btn').live('click',function(){
...
}
修改为
//gif播放
$('.gif-play-btn').live('click',function(){
$(this).css("background","none");
$(this).html("<img src='/ecmsshop/images/loading.gif' width='50' height='50'>");
var tthis = $(this).parent().find('img');
var img = new Image();
var that=$(this);
img.src = tthis.attr('mahuagifimg');
img.onload = function(){
that.css('display','none');
tthis.attr('src',tthis.attr('mahuagifimg'));
tthis.removeAttr('mahuagifimg');
};
})
function loadtext(){
$(".gif-play-btn").text();
}
function lzLoad(){
var line=$(window).scrollTop()+2*$(window).height();
//if(Loaded>=line) return false;
$('img[mahuaImg]').each(function(){
var top = $(this).offset().top;
if (top < line){
if($(this).attr('mahuaImg')!=''){
$(this).attr('src', $(this).attr('mahuaImg'));
$(this).removeAttr('mahuaImg');
}
}
});
注:将下面GIF加载图片 上传到 /ecmsshop/images/
http://mahua.52img.cn/ecmsshop/images/loading.gif
帝国CMS□插件/模板交流群: 212407736
- 浏览:人
- 收藏:次
- 评论:次
- 推荐:次
- 附件下载:次
- 收藏FAVORITE收藏后可以在我的收藏里查看,看到好的文章记得收藏哦!
-
请您评分EVALUATE
X
- 分享SHARE IN