访客评论后,将会发送评论内容到您指定的邮箱。插件Github地址:https://github.com/visamz/CommentToMailTypecho 1.1, 1.2.0实测可用!使用说明:下载插件将插件上传到 /usr/plugins/ 这个目录下登陆后台,在“控制台”下拉菜单中进入“插件管理”启用相关插件设置smtp服务器地址、邮箱地址、密码等信息补充:一款邮件模板,替换掉插件...
第1步:在function中加入如下代码:function theme_random_posts($limit = 10){
$defaults = array(
'number' => $limit,
'before' => '<ul class="list">',
'after' =&g...
JS获取当前js文件路径相关代码如下:代码1:JS获取当前js文件目录路径//页面解析到当前为止所有的script标签
var js = document.scripts;
//js[js.length - 1] 就是当前的js文件的路径
jsPath = js[js.length - 1].src.substring(0, js[js.length - 1].src.lastIndexOf...
Typecho插件PasteImagetypecho版本 1.1 (17.10.30) 实测有效!typecho版本 1.2.0 默认支持,无需添加该插件!github项目地址:https://github.com/zgq354/PasteImage插件说明:为 Typecho 自带编辑器增加粘贴图片上传功能
Typecho 最新开发版已经 直接支持粘贴上传功能,本插件仅供旧版本使用。
...
需加载jquery,JS代码如下:// 非本站链接新窗口打开
$(document.links).filter(function () {
return this.hostname != window.location.hostname;
}).attr('target', '_blank');
- « 前一页
- 1
- 2
- 3
- 4
- 5
- ...
- 7
- 后一页 »