Cpp Lover

整理知识,记录成长轨迹

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 2 3 4 5 6 7 ··· 9 下一页

2010年4月22日

摘要: 遇到一个控件需要用innerHTML格式化后写到html中,需要格式化的控件为 <inputtype="text"name="date"runat="server"id="begin_date_b"onFocus="WdatePicker({lang:'zh-cn',startDate:'%y-%M-0100',dateFmt:'yyyy年MM月dd日HH时',alwaysUseStartD... 阅读全文
posted @ 2010-04-22 10:23 quanhailee 阅读(2173) 评论(0) 推荐(0) 编辑

2010年4月21日

摘要: 1.在网上发现两款做得很酷的日历,首推My97DatePicker,地址为http://www.my97.net/dp/index.asp 还有一款为jscalendar,目前版本是1.8 http://www.dynarch.com/2. 寒羽枫javascript日历控件 http://blog.csdn.net/cityhunter172/archive/2009/03/04/3957836... 阅读全文
posted @ 2010-04-21 23:58 quanhailee 阅读(241) 评论(0) 推荐(0) 编辑

摘要: http://www.jb51.net/article/18220.htm 1. name1.addEventListener('click',function () { info.innerHTML += "红色" + "<br>"; },false); name2.addEventListener('click',function () { info.innerHTML += "绿... 阅读全文
posted @ 2010-04-21 06:27 quanhailee 阅读(219) 评论(0) 推荐(0) 编辑

2010年4月20日

摘要: 参考http://www.jonllen.com/jonllen/js/77.aspx http://blog.csdn.net/bestchen_1/archive/2009/07/31/4396749.aspx 最好的:http://hi.baidu.com/qdh126/blog/item/e5efb2ce86870e0592457ef0.html 其实最重要的是获取img的坐标,再通过ar... 阅读全文
posted @ 2010-04-20 23:41 quanhailee 阅读(830) 评论(0) 推荐(0) 编辑

摘要: window.event问题问题说明:window.event 只能在IE下运行,而不能在Firefox下运行,这是因为Firefox的event只能在事件发生的现场使用。解决方法:在事件发生的函数上加上event参数,在函数体内(假设形参为evt)使用 var myEvent = evt?evt:(window.event?window.event:null) 在Firefox页面调用后,其w... 阅读全文
posted @ 2010-04-20 13:48 quanhailee 阅读(16022) 评论(0) 推荐(0) 编辑

2010年4月19日

摘要: offsetHeight = borderTopWidth + clientHeight + scrollbarWidth + borderBottomWidth; offsetWidth = borderLeftWidth + clientWidth + scrollbarWidth + borderRightWidth; 元素内部实际可用区域(高) = clientHeight - pad... 阅读全文
posted @ 2010-04-19 11:25 quanhailee 阅读(11580) 评论(0) 推荐(0) 编辑

摘要: 在初始化函数中加入下面这句代码就OK了! System.useCodePage=true; 例如初始化函数为initApp() public function initApp():void{ System.useCodePage=true; } 阅读全文
posted @ 2010-04-19 10:18 quanhailee 阅读(1868) 评论(0) 推荐(0) 编辑

2010年4月17日

摘要: 【疑问】event.srcElement怎么取得tr的title值 <a title="a测试" onclick="alert(event.srcElement.title)" >a</a> <br> <table border=1> <tr title="tr测试" onclick="alert(event.srcElement.title)... 阅读全文
posted @ 2010-04-17 16:24 quanhailee 阅读(515) 评论(0) 推荐(0) 编辑

摘要: ———————————————————————————————————————— textContent与innerText的不同 IE下有个innerText属性,FF下有个textContent属性。很多以前给IE写脚本的,在FF下找不到innerText属性,于是网上搜到的建议是用textContent来替代。反之给FF写脚本的也一样。 但是实际上,这里有个误解。网上很多文章说“FF下等效于... 阅读全文
posted @ 2010-04-17 14:46 quanhailee 阅读(593) 评论(0) 推荐(0) 编辑

2010年4月16日

摘要: 1.代码搜索介绍   www.google.com/codesearch   程序员靠“代码”养家糊口,优秀的程序员当然应该具备出众的代码编写能力。在单机时代,编写代码主要依靠“死记硬背”或者“照抄书本”,在互联网时代,一切变得不一样了,特别是Google代码搜索的出现,独辟蹊径,为程序员们迈向成功提供了一把利器。在该项服务中... 阅读全文
posted @ 2010-04-16 10:50 quanhailee 阅读(9261) 评论(2) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 9 下一页