摘要: 官方教程http://code.google.com/chrome/extensions/devguide.htmlchrome浏览器开启实验模式:在快捷方式后面加 --enable-experimental-extension-apis 阅读全文
posted @ 2012-02-01 16:08 孤舟苦渡 阅读(240) 评论(0) 推荐(0) 编辑
摘要: <mce:script type="text/javascript"><!-- var speed=30 var MyMar=setInterval(Marquee,speed) demo2.innerHTML=demo1.innerHTML demo.onmouseover=function() {clearInterval(MyMar)} demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} function Marquee(){ if(demo.scrollLeft<=0) 阅读全文
posted @ 2012-01-16 14:17 孤舟苦渡 阅读(2916) 评论(0) 推荐(0) 编辑
摘要: typeof(type_hello) == "undefined" 阅读全文
posted @ 2012-01-15 18:28 孤舟苦渡 阅读(235) 评论(0) 推荐(0) 编辑
摘要: width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;用这个css样式就行了 阅读全文
posted @ 2012-01-15 18:14 孤舟苦渡 阅读(13732) 评论(0) 推荐(0) 编辑
摘要: this.userName.setAttribute("style","display:none"); $("...").css({display:"none"}); $("...").hide();以上都不管用,faint只有下面的这个管用this.userName.style.display = "none"; 阅读全文
posted @ 2012-01-11 12:11 孤舟苦渡 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 一直觉得他选不上类呀,好多设定都不能生效,必须指定id才可以,估计是我用css3太傲娇了,要加强学习。ie6下是不是没有类这个概念啊,愁死了。 阅读全文
posted @ 2012-01-10 19:25 孤舟苦渡 阅读(141) 评论(0) 推荐(0) 编辑
摘要: chrome下ie6下弄什么display:inline都没用。。把左边那个元素弄成float:left就行了 阅读全文
posted @ 2012-01-10 16:25 孤舟苦渡 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 文档中写的是http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions可是我这么用var a = new Array();#(..).autocomplete(a);报错this.source is not a function查了一下http://stackoverflow.com/questions/3308935/jquery-autocomplete-this-source-is-not-a-function-error他说要这么写var a = new Array();#(..).autoco 阅读全文
posted @ 2012-01-10 11:16 孤舟苦渡 阅读(1754) 评论(0) 推荐(0) 编辑
摘要: setTimeout("a()",1000); setTimeout(a,1000) 第二种没有小括号,如果想向a里传参数的话,需要自己重写setTimeout,具体方法见网络。 阅读全文
posted @ 2012-01-08 10:42 孤舟苦渡 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 情况如图所示想想原因可能是因为用了setTimeout函数 造成this等啥的指向混乱。解决方法:专门为setTimeout自己写一个函数,而不调用更外部的函数,就可以了。不过这也是一种短期的方法,造成了代码冗余。 阅读全文
posted @ 2012-01-08 10:40 孤舟苦渡 阅读(365) 评论(0) 推荐(0) 编辑