飛魚(shqlsl) javascript作品集
更新時間:2006年12月16日 00:00:00 作者:
http://www.quansou.com/menu/menu.html# 純CSS抽屜菜單(美工版) http://www.quansou.com/menu.htm http://www.quansou.com/menu1.htm (無限級聯(lián)菜單) (美工版) http://www.quansou.com/autotime/time.html input日期控件(美工版) http://www.quansou.com/checkfrm/ 表單域驗證 (美工版) http://www.quansou.com/treemenu/ 無限級數(shù) (xml+js) http://www.quansou.com/scroll/scroll.html 中英文取長定長函數(shù): function gstr(sSource,iLen) { var el="...",hzlen; var re=new RegExp("^(.{"+(iLen)+"}).*$","i") try{hzlen=sSource.replace(re,"$1").match(/[^\x00-\xff]/g).length}catch(e){hzlen=0;} if(sSource.length+hzlen<=iLen)return sSource; re.compile("^(.{"+(iLen-Math.ceil(hzlen/2))+"}).*$","i") return sSource.replace(re,"$1").slice(0,iLen-3)+el; } |
相關(guān)文章
添加到收藏夾的Javascript腳本 for ie,firefox
添加到收藏夾的Javascript腳本 for ie,firefox...2006-12-12按鍵盤方向鍵翻頁跳轉(zhuǎn)的javascript代碼(支持ie,firefox)
按鍵盤方向鍵即可翻頁跳轉(zhuǎn),時間上就是利用了event.keyCode,按鍵檢測,大家可以可以參考下。2009-11-11document對象execCommand的command參數(shù)介紹
document對象execCommand的command參數(shù)介紹...2006-08-08