![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 58
空道仙
程序,Web设计
展开
-
金字塔
/** * 第一层个数:1*2-1 = 1 第一层空白:最高层-当前层 *** 第二层个数:2*2-1 = 3 第二层空白:最高层-当前层 ***** 第三层个数:3*2-原创 2011-09-22 20:32:36 · 610 阅读 · 1 评论 -
禁止网页内容复制、选取、禁止右键菜单js代码
如果你想你的网站内容不给人家复制,可以看看下面的实现方法://禁止鼠标右键$(document).bind("contextmenu", function(e) { return false;});//禁止键盘按键: function key() { if (event.shiftKey) { wind原创 2011-11-07 09:31:17 · 2835 阅读 · 0 评论 -
使用JavaScript创建自定义对象
New Document var skydao = { obj: null, init: function(obj) { this.obj = this.createTag(obj['tag']); this.setAttribute(原创 2011-09-20 21:20:37 · 546 阅读 · 0 评论 -
自定义创建js库
(function() {if (typeof window.skydao == 'undefined') window.skydao = {};function getStyle(elem, name) {// if property has in style object so return if (emem.style[name]) {原创 2011-09-20 21:51:30 · 2169 阅读 · 0 评论 -
js自动循环显示广告
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;} h1,h2,h3,h4,h5,h6{font-size:100%;} ol,ul{list-style:none;} ad原创 2011-09-20 21:41:45 · 2585 阅读 · 0 评论 -
test
kdfldskjfsdf原创 2012-12-03 21:18:59 · 545 阅读 · 0 评论