摘要: 写了个小的图片切换demo,之前用过类似的插件,想自己用jq实现个,写得有点乱..html部分:<!DOCTYPE HTML><html> <head> <meta charset="UTF-8"> <title>fangyin</title> <link rel="stylesheet" href="css/test.css"> <script type="text/javascript" src="js/jque 阅读全文
posted @ 2013-01-26 14:47 GM_Lv 阅读(690) 评论(0) 推荐(0) 编辑
摘要: http://www.jb51.net/css/33740.html 阅读全文
posted @ 2013-01-24 16:55 GM_Lv 阅读(166) 评论(0) 推荐(0) 编辑
摘要: mark 来自:http://www.zhangxinxu.com/wordpress/2013/01/js-paint-ie6-relative-ie8-inline-block-bug-fix/http://www.zhangxinxu.com/study/201301/repaint-layout-ie6-relative-bug.html 阅读全文
posted @ 2013-01-23 01:02 GM_Lv 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 这里有一篇很好的文章,http://dustwell.com/div-span-inline-block.html在stackoverflow中查了下这几个的区别和关系,总算有所理解http://stackoverflow.com/questions/9189810/css-display-inline-vs-inline-block 阅读全文
posted @ 2013-01-22 22:13 GM_Lv 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 基本操作:1234567891011121314151617181920212223242526272829303132db.addUser(username,password) //添加用户db.auth(usrename,password) //设置数据库连接验证db.cloneDataBase(fromhost) //从目标服务器克隆一个数据库db.commandHelp(name) //returns the help for the commanddb.copyDatabase(fromdb,todb,fromhost) //复制数据库fromdb---源数据库名称,todb---目 阅读全文
posted @ 2013-01-21 00:45 GM_Lv 阅读(186) 评论(0) 推荐(0) 编辑
摘要: jquery加载页面的方法(页面加载完成就执行),建议大家看下windows.onload与$(document).ready之间的区别。1、$(function(){ $("#a").click(function(){ //adding your code here });});2、$(document).ready(function(){ $("#a").click(function(){ //adding your code here });});3、window.onload = function(){ $("#a").cli 阅读全文
posted @ 2013-01-06 18:51 GM_Lv 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 其实之前一直对于document.documentElement和document.body不是很清楚,查了下资料->在html和xhtml中定义的差别..要获取当前页面的滚动条纵坐标位置,用:document.documentElement.scrollTop;而不是:document.body.scrollTop;documentElement 对应的是 html 标签,而 body 对应的是 body 标签在设计页面时可能经常会用到固定层的位置,这就需要获取一些html对象的坐标以更灵活的设置目标层的坐标,这里可能就会用到document.body.scrollTop等属性,但是此 阅读全文
posted @ 2013-01-06 14:40 GM_Lv 阅读(187) 评论(0) 推荐(0) 编辑
摘要: (1)利用原生的js进行判断:window.onscroll=function(){var seeHeight = document.documentElement.clientHeight;var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;for(var i=l;i<imgNum;i++){if(imgObj[i].offsetTop < seeHeight + scrollTop){if(imgObj[i].src == ""){imgObj[i].sr 阅读全文
posted @ 2013-01-06 14:20 GM_Lv 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: “本地对象”包含哪些内容:Object、Function、Array、String、Boolean、Number、Date、RegExp、Error、EvalError、RangeError、ReferenceError、SyntaxError、TypeError、URIError由此可以看出,简单来说,本地对象就是 ECMA-262 定义的类(引用类型)ECMA-262 把内置对象(built-in object)定义为“由 ECMAScript 实现提供的、独立于宿主环境的所有对象,在 ECMAScript 程序开始执行时出现”。这意味着开发者不必明确实例化内置对象,它已被实例化了。同样是 阅读全文
posted @ 2013-01-06 10:49 GM_Lv 阅读(209) 评论(0) 推荐(0) 编辑
摘要: http://stylechen.com/attribute-property.htmlhttp://omiga.org/blog/archives/2055 阅读全文
posted @ 2013-01-05 23:56 GM_Lv 阅读(505) 评论(0) 推荐(0) 编辑