Savalone's Blog

  • Home
  • About

js 根据浏览器语言跳转不同网址

javascript2019年08月01日savalone542 Views

<script>!function(){varlang=navigator.language||navigator.userLanguage;lang=lang.substr(0,2);if(lang&nbs

Continue reading→

Pbootcms ajax 无刷新点赞

pbootcms2019年07月29日savalone1471 Views

放在详情模板页,可自定义css<buttonclass="support">点赞</button><divid="result">{content:likes}</div><script>$('.support').on('click',function(){varurl='{content:likeslink}';&

Continue reading→

屏蔽鼠标右键 js

javascript2019年07月29日savalone499 Views

有时候客户让加代码不让别人偷他的图片,文章之类的,需要用一些js屏蔽鼠标动作。<script>document.oncontextmenu=newFunction("event.returnValue=false");//禁止右键功能document.onselectstart=newFunction("event.returnV

Continue reading→

百度编辑器 UEditor 用 highlight.js 库实现代码高亮

javascript2019年07月27日savalone2029 Views

支持 PJAX 、用 highlightjs-line-numbers.js 添加行号、用 clipboard.js 增加一键复制按钮

Continue reading→

js 本页面搜索查找,包含查找下一个

javascript2019年07月06日savalone601 Views

这个功能和浏览器自带的Ctrl+F属于重复了,但在某些地方还是需要这样的功能的,包括封装、自定义搜索样式等。dome下载:本页面搜索demo.zip效果:<!DOCTYPEhtml><html><head><metahttp-equiv="Content-Type"content="text/html;charset=UTF-8">&l

Continue reading→
<<<···12345>>>

Category

  • —PbootCMS(10)
  • —DedeCMS(8)
  • —ASPCMS(5)
  • —HTML(7)
  • —CSS(3)
  • —JavaScript(23)
  • —PHP(5)
  • —Windows(9)
  • —Linux(2)
  • —Software(8)
  • —Template(12)
  • —Recreation(2)

Tags

  • 软件
  • 读书
  • 资源
  • 模板
  • 电影
  • 美剧
  • Pbcms
  • 教程
  • UEditor
  • pjax
  • pb二开
  • 博客
  • ajax
  • 正则
  • css基础
  • 服务器
  • Adobe
  • IIS
  • iframe

Copyright © Savalone's Blog All Rights Reserved.

  • Home
  • About