摘要: http://runjs.cn/detail/tyx8dbag//shakenum:抖动的次数,shakeDistance:抖动的距离jQuery.fn.Shake = function (shakenum , shakeDistance) { this.each(function () { ... 阅读全文
posted @ 2015-06-03 11:12 Xpress 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-04-21 16:27 Xpress 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 说到 IE 的 bug,一个臭名昭著的例子是它对于“盒模型”的错误解释:在 IE5.x 以及 Quirks 模式的 IE6/7 中,将 border 与 padding 都包含在 width 之内。这为前端工程师的工作平添了不少麻烦,几户每个需要定义尺寸的 box 都要思量一下:是否触发了“盒模型 ... 阅读全文
posted @ 2015-04-17 15:46 Xpress 阅读(420) 评论(0) 推荐(0) 编辑
摘要: JS:// ========== // = 鼠标hover事件 = // ========== function showHide (btn,box) { $(btn).hov... 阅读全文
posted @ 2015-04-15 11:17 Xpress 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 鼠标事件是在用户移动鼠标光标或者使用任意鼠标键点击时触发的。 (1):click事件:click事件于用户在元素敲击鼠标左键,并在相同元素上松开左键时触发。 $('p').click(function(){ alert('click function ... 阅读全文
posted @ 2015-04-15 09:27 Xpress 阅读(137) 评论(0) 推荐(0) 编辑
摘要: object标签用于定义一个嵌入的对象,包括:图像、音频、Java applets、ActiveX、PDF以及Flash。该标签允许您规定插入HTML文档中的对象的数据和参数,以及可用来显示和操作数据的代码。常用的功能:一、显示图片:[color=Red][/color]Picture As Obj... 阅读全文
posted @ 2015-04-07 14:07 Xpress 阅读(2297) 评论(0) 推荐(0) 编辑
摘要: 点击收起 立即预约 JS:$(function(){ $(function() {... 阅读全文
posted @ 2015-03-27 18:01 Xpress 阅读(918) 评论(0) 推荐(0) 编辑
摘要: 在CSS中使用CSS插件文件即可让IE6/IE7/IE8浏览器。具体CSS代码: 1 .yuan { 2 border: 2px solid #C0C0C0; 3 -moz-border-radius: 10px; 4 -webkit-border-radius: 10px; 5 borde... 阅读全文
posted @ 2015-03-20 17:13 Xpress 阅读(246) 评论(0) 推荐(0) 编辑
摘要: CSS:1 引用JS库:1 HTML: 1 2 地址: 3 4 5 6 密码: 7 8 9 10 11 12 13 JS代码: 1 阅读全文
posted @ 2015-03-20 14:30 Xpress 阅读(217) 评论(0) 推荐(0) 编辑
摘要: javascript: 1 function fzan(btn,texts) { 2 $(btn).zclip({ 3 path: "js/ZeroClipboard.swf", 4 copy: $(texts).text(), ... 阅读全文
posted @ 2015-03-18 17:33 Xpress 阅读(189) 评论(0) 推荐(0) 编辑