posted @ 2010-05-15 17:57 Just Do It 閱讀(446) | 評(píng)論 (0) | 編輯 收藏
posted @ 2009-12-14 23:15 Just Do It 閱讀(206) | 評(píng)論 (0) | 編輯 收藏
摘要: 在C/S程序中,我們通常會(huì)把漢字的拼音簡(jiǎn)碼記錄在一個(gè)表中,然后編寫一個(gè)工具函數(shù)來(lái)生成一段文字的拼音碼。而在WEB頁(yè)面上,文字的簡(jiǎn)碼存儲(chǔ)在數(shù)據(jù)庫(kù)表中的極不方便,使用AJAX技術(shù)也很繁瑣。那么如果能把文字的簡(jiǎn)碼直接存儲(chǔ)在js里,在客戶端實(shí)時(shí)生成拼音碼就比較方便了。 閱讀全文
posted @ 2009-12-04 09:54 Just Do It 閱讀(1783) | 評(píng)論 (0) | 編輯 收藏
posted @ 2009-12-01 16:03 Just Do It 閱讀(404) | 評(píng)論 (0) | 編輯 收藏
posted @ 2009-11-29 11:53 Just Do It 閱讀(392) | 評(píng)論 (0) | 編輯 收藏
摘要: 關(guān)于獲取各種瀏覽器可見窗口大小:
s = " 網(wǎng)頁(yè)可見區(qū)域?qū)挘? document.body.clientWidth;
s = " 網(wǎng)頁(yè)可見區(qū)域高:" document.body.clientHeight;
s = " 網(wǎng)頁(yè)可見區(qū)域?qū)挘? document.body.offsetWidth " (包括邊線和滾動(dòng)條的寬)";
s = " 網(wǎng)頁(yè)可見區(qū)域高:" document.body.offsetHeight " (包括邊線的寬)";
s = " 網(wǎng)頁(yè)正文全文寬:" document.body.scrollWidth;
s = " 網(wǎng)頁(yè)正文全文高:" document.body.scrollHeight;
s = " 網(wǎng)頁(yè)被卷去的高(ff):" document.body.scrollTop;
s = " 網(wǎng)頁(yè)被卷去的高(ie):" document.documentElement.scrollTop;
s = " 網(wǎng)頁(yè)被卷去的左:" document.body.scrollLeft;
s = " 網(wǎng)頁(yè)正文 閱讀全文
s = " 網(wǎng)頁(yè)可見區(qū)域?qū)挘? document.body.clientWidth;
s = " 網(wǎng)頁(yè)可見區(qū)域高:" document.body.clientHeight;
s = " 網(wǎng)頁(yè)可見區(qū)域?qū)挘? document.body.offsetWidth " (包括邊線和滾動(dòng)條的寬)";
s = " 網(wǎng)頁(yè)可見區(qū)域高:" document.body.offsetHeight " (包括邊線的寬)";
s = " 網(wǎng)頁(yè)正文全文寬:" document.body.scrollWidth;
s = " 網(wǎng)頁(yè)正文全文高:" document.body.scrollHeight;
s = " 網(wǎng)頁(yè)被卷去的高(ff):" document.body.scrollTop;
s = " 網(wǎng)頁(yè)被卷去的高(ie):" document.documentElement.scrollTop;
s = " 網(wǎng)頁(yè)被卷去的左:" document.body.scrollLeft;
s = " 網(wǎng)頁(yè)正文 閱讀全文
posted @ 2009-11-23 11:03 Just Do It 閱讀(883) | 評(píng)論 (2) | 編輯 收藏