]]>Google SVN操作步骤[摘]http://www.aygfsteel.com/justdoit/archive/2009/12/14/305974.htmlJust Do ItJust Do ItMon, 14 Dec 2009 15:15:00 GMThttp://www.aygfsteel.com/justdoit/archive/2009/12/14/305974.htmlhttp://www.aygfsteel.com/justdoit/comments/305974.htmlhttp://www.aygfsteel.com/justdoit/archive/2009/12/14/305974.html#Feedback0http://www.aygfsteel.com/justdoit/comments/commentRss/305974.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/305974.html
1. q入http://code.google.com/ 用Google帐户dQ推荐用gmail邮箱Q。然后点?gt;Project Hosting
]]>|页上的拼音码生?/title>http://www.aygfsteel.com/justdoit/archive/2009/12/04/304732.htmlJust Do ItJust Do ItFri, 04 Dec 2009 01:54:00 GMThttp://www.aygfsteel.com/justdoit/archive/2009/12/04/304732.htmlhttp://www.aygfsteel.com/justdoit/comments/304732.htmlhttp://www.aygfsteel.com/justdoit/archive/2009/12/04/304732.html#Feedback0http://www.aygfsteel.com/justdoit/comments/commentRss/304732.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/304732.html
在javascript中,我们可以用如下方式生成一个MAPL(fng)对象Q?br />
var charsCode = {"?:"A","?:"B",...};
于是得到某个文字的拼音简码就很简单了QcharsCode["?]卛_?br />
昄Q文字的码在数据表中有,我们可以用简单的sql语句q成上面定义简码MAP的JS代码Q工作量最大的那部分事情就搞定了?br />
接下来只需要定义工具函数即可:(x)
// 获取每个包括字符的拼音简码?/span> function getCharsCode(str){ str = str.toUpperCase(); var len = str.length; var c, result="", t; for(i=0; i<len; i++){ c = str.substr(i,1); t = mCharsCode[c]; if (""+t =="undefined") t =""; result += t; } return result; } // 对于英文单词Q仅取首字母 function getWordsCode(str){ str = str.toUpperCase(); str = str.replace(/([A-Z])[A-Z]*/g, "$1"); var len = str.length; var c, result="", t; for(i=0; i<len; i++){ c = str.substr(i,1); t = mCharsCode[c]; if (""+t =="undefined") t =""; result += t; } return result; }
]]>表达式求值的l典法http://www.aygfsteel.com/justdoit/archive/2009/12/01/304389.htmlJust Do ItJust Do ItTue, 01 Dec 2009 08:03:00 GMThttp://www.aygfsteel.com/justdoit/archive/2009/12/01/304389.htmlhttp://www.aygfsteel.com/justdoit/comments/304389.htmlhttp://www.aygfsteel.com/justdoit/archive/2009/12/01/304389.html#Feedback0http://www.aygfsteel.com/justdoit/comments/commentRss/304389.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/304389.html摘自Q?font style="background-color: #ece9d8">http://www.ibm.com/developerworks/cn/java/j-w3eva/index.html#main
]]>CSS的常用技?/title>http://www.aygfsteel.com/justdoit/articles/303858.htmlJust Do ItJust Do ItFri, 27 Nov 2009 02:10:00 GMThttp://www.aygfsteel.com/justdoit/articles/303858.htmlhttp://www.aygfsteel.com/justdoit/comments/303858.htmlhttp://www.aygfsteel.com/justdoit/articles/303858.html#Feedback0http://www.aygfsteel.com/justdoit/comments/commentRss/303858.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/303858.html收藏夹小图标
]]>IE6.0不支持Q意元素的hover伪类替代Ҏ(gu)http://www.aygfsteel.com/justdoit/articles/303395.htmlJust Do ItJust Do ItMon, 23 Nov 2009 14:46:00 GMThttp://www.aygfsteel.com/justdoit/articles/303395.htmlhttp://www.aygfsteel.com/justdoit/comments/303395.htmlhttp://www.aygfsteel.com/justdoit/articles/303395.html#Feedback0http://www.aygfsteel.com/justdoit/comments/commentRss/303395.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/303395.html
]]>关于clientWidth取值问题【摘?/title>http://www.aygfsteel.com/justdoit/archive/2009/11/23/303304.htmlJust Do ItJust Do ItMon, 23 Nov 2009 03:03:00 GMThttp://www.aygfsteel.com/justdoit/archive/2009/11/23/303304.htmlhttp://www.aygfsteel.com/justdoit/comments/303304.htmlhttp://www.aygfsteel.com/justdoit/archive/2009/11/23/303304.html#Feedback2http://www.aygfsteel.com/justdoit/comments/commentRss/303304.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/303304.htmlhttp://hi.baidu.com/bluedream_119/blog/item/dc377d4bef83aff783025c68.html
关于获取各种览器可见窗口大?
<script>
function getInfo()
{
var s = "";
s = " |页可见区域宽:(x)" document.body.clientWidth;
s = " |页可见区域高:(x)" document.body.clientHeight;
s = " |页可见区域宽:(x)" document.body.offsetWidth " (包括边线和滚动条的宽)";
s = " |页可见区域高:(x)" document.body.offsetHeight " (包括边线的宽)";
s = " |页正文全文宽:(x)" document.body.scrollWidth;
s = " |页正文全文高:(x)" document.body.scrollHeight;
s = " |页被卷ȝ?ff)Q? document.body.scrollTop;
s = " |页被卷ȝ?ie)Q? document.documentElement.scrollTop;
s = " |页被卷ȝ左:(x)" document.body.scrollLeft;
s = " |页正文部分上:(x)" window.screenTop;
s = " |页正文部分左:(x)" window.screenLeft;
s = " 屏幕分L率的高:(x)" window.screen.height;
s = " 屏幕分L率的宽:(x)" window.screen.width;
s = " 屏幕可用工作区高度:(x)" window.screen.availHeight;
s = " 屏幕可用工作区宽度:(x)" window.screen.availWidth;
s = " 你的屏幕讄?" window.screen.colorDepth " 位彩?;
s = " 你的屏幕讄 " window.screen.deviceXDPI " 像素/英寸";
//alert (s);
}
getInfo();
</script>
在我本地试当中Q?br />
在IE、FireFox、Opera下都可以使用
document.body.clientWidth
document.body.clientHeight
卛_获得Q很单,很方ѝ?br />
而在公司目当中Q?br />
Opera仍然使用
document.body.clientWidth
document.body.clientHeight
可是IE和FireFox则?br />
document.documentElement.clientWidth
document.documentElement.clientHeight
原来是W3C的标准在作怪啊
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
如果在页面中dq行标记的话 在IE中:(x)
document.body.clientWidth ==> BODY对象宽度
document.body.clientHeight ==> BODY对象高度
document.documentElement.clientWidth ==> 可见区域宽度
document.documentElement.clientHeight ==> 可见区域高度
在FireFox中:(x)
document.body.clientWidth ==> BODY对象宽度
document.body.clientHeight ==> BODY对象高度
document.documentElement.clientWidth ==> 可见区域宽度
document.documentElement.clientHeight ==> 可见区域高度
?
在Opera中:(x)
document.body.clientWidth ==> 可见区域宽度
document.body.clientHeight ==> 可见区域高度
document.documentElement.clientWidth ==> 面对象宽度Q即BODY对象宽度加上Margin宽)
document.documentElement.clientHeight ==> 面对象高度Q即BODY对象高度加上Margin高)
而如果没有定义W3C的标准,?br />
IE为:(x)
document.documentElement.clientWidth ==> 0
document.documentElement.clientHeight ==> 0
FireFox为:(x)
document.documentElement.clientWidth ==> 面对象宽度Q即BODY对象宽度加上Margin宽)document.documentElement.clientHeight ==> 面对象高度Q即BODY对象高度加上Margin高)
Opera为:(x)
document.documentElement.clientWidth ==> 面对象宽度Q即BODY对象宽度加上Margin宽)document.documentElement.clientHeight ==> 面对象高度Q即BODY对象高度加上Margin高)
]]>CSSl对定位、Q动定?/title>http://www.aygfsteel.com/justdoit/articles/303295.htmlJust Do ItJust Do ItMon, 23 Nov 2009 02:09:00 GMThttp://www.aygfsteel.com/justdoit/articles/303295.htmlhttp://www.aygfsteel.com/justdoit/comments/303295.htmlhttp://www.aygfsteel.com/justdoit/articles/303295.html#Feedback0http://www.aygfsteel.com/justdoit/comments/commentRss/303295.htmlhttp://www.aygfsteel.com/justdoit/services/trackbacks/303295.htmlhttp://www.w3school.com.cn/css/css_positioning_absolute.asp