posts - 5, comments - 2, trackbacks - 0, articles - 5
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

2009年11月23日

posted @ 2010-05-15 17:57 Just Do It 阅读(433) | 评论 (0)编辑 收藏

posted @ 2009-12-14 23:15 Just Do It 阅读(185) | 评论 (0)编辑 收藏

     摘要: 在C/S程序中,我们通常会把汉字的拼音简码记录在一个表中,然后编写一个工具函数来生成一段文字的拼音码。而在WEB页面上,文字的简码存储在数据库表中的极不方便,使用AJAX技术也很繁琐。那么如果能把文字的简码直接存储在js里,在客户端实时生成拼音码就比较方便了。  阅读全文

posted @ 2009-12-04 09:54 Just Do It 阅读(1767) | 评论 (0)编辑 收藏

posted @ 2009-12-01 16:03 Just Do It 阅读(384) | 评论 (0)编辑 收藏

posted @ 2009-11-29 11:53 Just Do It 阅读(377) | 评论 (0)编辑 收藏

     摘要: 关于获取各种浏览器可见窗口大小:
s = " 网页可见区域宽:" document.body.clientWidth;
s = " 网页可见区域高:" document.body.clientHeight;
s = " 网页可见区域宽:" document.body.offsetWidth " (包括边线和滚动条的宽)";
s = " 网页可见区域高:" document.body.offsetHeight " (包括边线的宽)";
s = " 网页正文全文宽:" document.body.scrollWidth;
s = " 网页正文全文高:" document.body.scrollHeight;
s = " 网页被卷去的高(ff):" document.body.scrollTop;
s = " 网页被卷去的高(ie):" document.documentElement.scrollTop;
s = " 网页被卷去的左:" document.body.scrollLeft;
s = " 网页正文  阅读全文

posted @ 2009-11-23 11:03 Just Do It 阅读(862) | 评论 (2)编辑 收藏