01 2012 档案

单行文字水平向右滚动js实现
摘要:<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 孤舟苦渡 阅读(2938) 评论(0) 推荐(0)

js判断某个变量是否定义
摘要:typeof(type_hello) == "undefined" 阅读全文

posted @ 2012-01-15 18:28 孤舟苦渡 阅读(244) 评论(0) 推荐(0)

html过长自动替换省略号
摘要:width:300px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;用这个css样式就行了 阅读全文

posted @ 2012-01-15 18:14 孤舟苦渡 阅读(13743) 评论(0) 推荐(0)

解决ie6中隐藏元素命令失效问题
摘要:this.userName.setAttribute("style","display:none"); $("...").css({display:"none"}); $("...").hide();以上都不管用,faint只有下面的这个管用this.userName.style.display = "none"; 阅读全文

posted @ 2012-01-11 12:11 孤舟苦渡 阅读(217) 评论(0) 推荐(0)

[未解决]ie6中的css2.1选择器是咋工作的
摘要:一直觉得他选不上类呀,好多设定都不能生效,必须指定id才可以,估计是我用css3太傲娇了,要加强学习。ie6下是不是没有类这个概念啊,愁死了。 阅读全文

posted @ 2012-01-10 19:25 孤舟苦渡 阅读(147) 评论(0) 推荐(0)

解决ie6中两个元素不在一行
摘要:chrome下ie6下弄什么display:inline都没用。。把左边那个元素弄成float:left就行了 阅读全文

posted @ 2012-01-10 16:25 孤舟苦渡 阅读(231) 评论(0) 推荐(0)

[未解决]jQuery中autocomplete的source格式问题
摘要:文档中写的是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 孤舟苦渡 阅读(1768) 评论(0) 推荐(0)

setTimeout使用小tip
摘要:setTimeout("a()",1000); setTimeout(a,1000) 第二种没有小括号,如果想向a里传参数的话,需要自己重写setTimeout,具体方法见网络。 阅读全文

posted @ 2012-01-08 10:42 孤舟苦渡 阅读(252) 评论(0) 推荐(0)

Component returned failure code: 0x80070057
摘要:情况如图所示想想原因可能是因为用了setTimeout函数 造成this等啥的指向混乱。解决方法:专门为setTimeout自己写一个函数,而不调用更外部的函数,就可以了。不过这也是一种短期的方法,造成了代码冗余。 阅读全文

posted @ 2012-01-08 10:40 孤舟苦渡 阅读(385) 评论(0) 推荐(0)

[已解决]jQuery的animate中callback函数会立即执行
摘要:会在animate开始时执行,尚不知原因。$("#chat_frame").animate({height:"32px",width:"102px"}, "fast",minimizeFinish(self));function minimizeFinish(self){self._chat_frame_min = 1;window.alert("minimized");}改成酱紫就对了,摊手。 $("#chat_frame").animate({height:"3 阅读全文

posted @ 2012-01-06 10:53 孤舟苦渡 阅读(13059) 评论(1) 推荐(0)

notepad++中去掉所有回车
摘要:ctrl+h打开替换查找输入\r\n替换不填下面模式选择扩展ok 阅读全文

posted @ 2012-01-05 17:47 孤舟苦渡 阅读(1945) 评论(0) 推荐(0)

htc解决ie6下css不支持hover的问题
摘要:csshover.htc代码如下View Code <attach event="ondocumentready" handler="parseStylesheets" /><script language="JScript">/*** Pseudos - V1.30.050121 - hover & active* ---------------------------------------------* Peterned - http://www.xs4all.nl/~peterned/* (c) 阅读全文

posted @ 2012-01-05 15:20 孤舟苦渡 阅读(1107) 评论(0) 推荐(0)

今天talk的内容是zookeeper
摘要:zookeeper是做分布式协调的东西,自己没有什么经验,听不太懂,基础上差好多。Hadoop、paxos是什么= =总之前辈么好像了如指掌的样子,还要加油啊。 阅读全文

posted @ 2012-01-04 21:10 孤舟苦渡 阅读(135) 评论(0) 推荐(0)

插件解决ie6中png图片强烈马赛克
摘要:使用前使用后测试环境ietester解决方案:iepngfix.htchttp://www.twinhelix.com/css/iepngfix/ 阅读全文

posted @ 2012-01-04 10:59 孤舟苦渡 阅读(166) 评论(0) 推荐(0)

jQuery UI 组件一览
摘要:从http://docs.jquery.com/UI 摘下来的 方便自己和大家版本stable 1.8折叠面板accordion自动填充框autocomplete按钮button日期选择datepicker对话框dialog进度条progressbar拖动条slider选项卡tabs 阅读全文

posted @ 2012-01-03 22:30 孤舟苦渡 阅读(507) 评论(0) 推荐(0)

jQuery自定义slide方向
摘要:jQuery官方动画库只提供了slide的向下开,向上关,明显不够用嘛。so,找了找向左向右的代码。jQuery.fn.extend({ slideRightShow: function() { return this.each(function() { $(this).show('slide', {direction: 'right'}, 1000); }); }, slideLeftHide: function() { return this.each(function() { $(this).hide('slide', {direction 阅读全文

posted @ 2012-01-03 22:19 孤舟苦渡 阅读(32179) 评论(1) 推荐(1)