第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步主题目录找到index.php,把主题默认的分页导航的容器换成<?php $this->pageLink('点击查看更多','next'); ?>第2步找到footer.php,前引入js:或写入js文件中//点击加载更多
jQuery(document).ready(function($) {
//点击下一页的链接(即那个a标签)
$('.next'...
- « 前一页
- 1
- 2
- 3
- 4
- 5
- ...
- 7
- 后一页 »