<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[WEB交互设计]]></title>
<link>http://www.xyhot.com/</link>
<description><![CDATA[-  关注WEB应用开发技术 - 互联网信息 - 软件工程 - www.xyhot.com]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[huheng1234@163.com(胡亨)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>WEB交互设计</title> 
	<url>http://www.xyhot.com/images/logos.gif</url> 
	<link>http://www.xyhot.com/</link> 
	<description>WEB交互设计</description> 
</image>

			<item>
			<link>http://www.xyhot.com/default.asp?id=473</link>
			<title><![CDATA[ECLIPSE里面SVN图标消失,文件状态不显示问题]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[Java]]></category>
			<pubDate>Thu,03 Jun 2010 16:38:18 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=473</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ECLIPSE里面SVN状态图标消失,重新启动eclipse,重新导入工程也不能显示SVN状态图标.这多半是由于之前eclipse没有正常关闭引起的.<br/>解决办法2个:<br/><br/>1.&nbsp;在窗口-&gt;首选项-&gt;小组-&gt;svn看到菜单图标一项，图标集是默认的，换成Subersive，重启一下eclipse;<br/><br/>2.如上面操作还不能解决,删除.metadata文件,重新导入工程,便可解决.]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=472</link>
			<title><![CDATA[websphere启动报错：在执行 WASService.exe 时可能发生了错误]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[Java]]></category>
			<pubDate>Wed,21 Apr 2010 16:17:24 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=472</guid>	
		<description><![CDATA[在重新启动Websphere6.1&nbsp;时,报错:<br/>服务器已启动，但是初始化失败。startServer.log、SystemOut.log（或者<br/>zOS&nbsp;中的作业日志）以及<br/>d:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1<br/>下的其他日志文件可能包含故障信息。<br/>ADMU7704E:&nbsp;在尝试启动与服务器相关联的&nbsp;Windows<br/>服务时失败：server1；<br/>在执行<br/>WASService.exe<br/>时可能发生了错误：Starting&nbsp;Service:<br/>salesAppNode02<br/>Service<br/>failed&nbsp;to&nbsp;start.<br/>startServer&nbsp;return&nbsp;code&nbsp;=&nbsp;-1<br/><br/><br/><br/>Could&nbsp;not&nbsp;determine&nbsp;the&nbsp;process&nbsp;id&nbsp;of&nbsp;the&nbsp;java&nbsp;process.<br/>Changing&nbsp;the&nbsp;IBMWAS5Service&nbsp;-&nbsp;Tivoli&nbsp;Agent&nbsp;Manager&nbsp;service<br/>status&nbsp;to&nbsp;the&nbsp;&#34;stopped&#34;&nbsp;state.&nbsp;To&nbsp;prevent&nbsp;this&nbsp;error,&nbsp;try<br/>recreating&nbsp;this&nbsp;service&nbsp;with&nbsp;the&nbsp;-logRoot&nbsp;parameter.<br/>The&nbsp;value&nbsp;of&nbsp;the&nbsp;logRoot&nbsp;parameter&nbsp;should&nbsp;be&nbsp;the&nbsp;directory&nbsp;in<br/>which&nbsp;the&nbsp;server&#39;s&nbsp;.pid&nbsp;file&nbsp;is&nbsp;cr&#101;ated.&nbsp;<br/><br/>========&nbsp;解决:<br/>分配给websphere的内存不能大于1024M<br/><br/>修改文件:%你的WAS目录%\profiles\AppSrv01\config\cells\你的Cell\nodes\你的Node\servers\server1\server.xml<br/><br/>搜索关键字:maximumHeapSize&nbsp;<br/>改成&nbsp;<span style="color:Red">initialHeapSize=&#34;256&#34;&nbsp;maximumHeapSize=&#34;1024&#34;</span>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=471</link>
			<title><![CDATA[Acegi在WebSphere 6.1上的问题[404 错误]]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[Java]]></category>
			<pubDate>Tue,06 Apr 2010 12:01:47 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=471</guid>	
		<description><![CDATA[部署完后,测试Acegi登陆就出了个问题，报：404错误：找不到/j_acegi_security_check&nbsp;<br/><br/>查遍了google，才发现只是在websphere6.1&nbsp;fixpack3&nbsp;以后的服务器上才会出现这个问题，是Acegi的过滤器不兼容的问题，幸好已经找到了解决方案<br/><br/>在websphere里设置com.ibm.ws.webcontainer.invokefilterscompatibility的参数为true，就可以了，具体的方法是：<br/>1）启动websphere管理控制台<br/>2）进：服务器--应用服务器--选您使用的应用服务器（默认是server1）--web容器设置--web容器--定制属性<br/>3）新建一个属性：&nbsp;*名称：com.ibm.ws.webcontainer.invokefilterscompatibility&nbsp;&nbsp;*值：true&nbsp;&nbsp;描述：兼容Acegi过滤器<br/>4）保存并从启服务器<br/><img src="http://www.xyhot.com/attachments/month_1004/920104612657.jpg" border="0" alt=""/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=470</link>
			<title><![CDATA[[JS]JSON格式转换]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[HTML/JS/CSS]]></category>
			<pubDate>Tue,16 Mar 2010 10:03:00 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=470</guid>	
		<description><![CDATA[<textarea name="code" class="jscript">
<script type=&#34;text/javascript&#34;>

var JSON = function(sJSON){
    this.objType = (typeof sJSON);
    this.self = [];
    (function(s,o){for(var i in o){o.hasOwnProperty(i)&amp;&amp;(s[i]=o[i],s.self[i]=o[i])};})(this,(this.objType=='string')?eval('0,'+sJSON):sJSON);
}
JSON.prototype = {
    toString:function(){
        return this.getString();
    },
    valueOf:function(){
        return this.getString();
    },
    getString:function(){
        var sA = [];
        (function(o){
            var oo = null;
            sA.push('{');
            for(var i in o){
                if(o.hasOwnProperty(i) &amp;&amp; i!='prototype'){
                    oo = o[i];
                    if(oo instanceof Array){
                        sA.push(i+':[');
                        for(var b in oo){
                            if(oo.hasOwnProperty(b) &amp;&amp; b!='prototype'){
                                sA.push(oo[b]+',');
                                if(typeof oo[b]=='object') arguments.callee(oo[b]);
                            }
                        }
                        sA.push('],');
                        continue;
                    }else{
                        sA.push(i+':'+oo+',');
                    }
                    if(typeof oo=='object') arguments.callee(oo);
                }
            }
            sA.push('},');
        })(this.self);
        return sA.slice(0).join('').replace(/\[object object\],/ig,'').replace(/,\}/g,'}').replace(/,\]/g,']').slice(0,-1);
    },
    push:function(sName,sValue){
        this.self[sName] = sValue;
        this[sName] = sValue;
    }
}

var strA = '{allPrivList: [{id:&#34;func001&#34;, desc:&#34;商品管理&#34;},{id:&#34;func002&#34;, desc:&#34;類別管理&#34;},{id:&#34;func003&#34;, desc:&#34;行銷管理&#34;}],groupList: [{id:&#34;g001&#34;, desc:&#34;客服&#34;, privList: [&#34;func001&#34;, &#34;func002&#34;, &#34;func004&#34;] },{id:&#34;g002&#34;, desc:&#34;營運&#34;, privList: [&#34;func003&#34;]}]}';
var objA = new JSON(strA);
alert(objA);
alert(objA.allPrivList[0].desc+'\n'+objA.groupList[0].privList+'\n'+objA.groupList[1].desc);
objA.push(&#34;C&#34;,[1,&#34;hello baby&#34;,function(){alert(this.C[1])}]);
alert(objA);
objA.C[2].call(objA);



var objB = new JSON({});
alert(objB);
objB.push(&#34;A&#34;,function(){alert('test A')});
alert(objB);
objB.A();



var objC = new JSON([1]);
alert(objC);
objC.push(&#34;A&#34;,function(){alert('test A')});
alert(objC.A);



var xTree = new JSON({name:'root',list:[{name:'1',list:[{name:'1-1',list:[]},{name:'1-2',list:[]}]},{name:'look at me',list:[]}]});
alert(xTree);

var r = xTree.list.splice(1,1)[0];
alert(xTree);

xTree.list[0].list.splice(1,0,r);
alert(xTree);

</script>
</textarea><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.xyhot.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp51815">
<script type=&#34;text/javascript&#34;>

var JSON = function(sJSON){
    this.objType = (typeof sJSON);
    this.self = [];
    (function(s,o){for(var i in o){o.hasOwnProperty(i)&amp;&amp;(s[i]=o[i],s.self[i]=o[i])};})(this,(this.objType=='string')?eval('0,'+sJSON):sJSON);
}
JSON.prototype = {
    toString:function(){
        return this.getString();
    },
    valueOf:function(){
        return this.getString();
    },
    getString:function(){
        var sA = [];
        (function(o){
            var oo = null;
            sA.push('{');
            for(var i in o){
                if(o.hasOwnProperty(i) &amp;&amp; i!='prototype'){
                    oo = o[i];
                    if(oo instanceof Array){
                        sA.push(i+':[');
                        for(var b in oo){
                            if(oo.hasOwnProperty(b) &amp;&amp; b!='prototype'){
                                sA.push(oo[b]+',');
                                if(typeof oo[b]=='object') arguments.callee(oo[b]);
                            }
                        }
                        sA.push('],');
                        continue;
                    }else{
                        sA.push(i+':'+oo+',');
                    }
                    if(typeof oo=='object') arguments.callee(oo);
                }
            }
            sA.push('},');
        })(this.self);
        return sA.slice(0).join('').replace(/\[object object\],/ig,'').replace(/,\}/g,'}').replace(/,\]/g,']').slice(0,-1);
    },
    push:function(sName,sValue){
        this.self[sName] = sValue;
        this[sName] = sValue;
    }
}

var strA = '{allPrivList: [{id:&#34;func001&#34;, desc:&#34;商品管理&#34;},{id:&#34;func002&#34;, desc:&#34;類別管理&#34;},{id:&#34;func003&#34;, desc:&#34;行銷管理&#34;}],groupList: [{id:&#34;g001&#34;, desc:&#34;客服&#34;, privList: [&#34;func001&#34;, &#34;func002&#34;, &#34;func004&#34;] },{id:&#34;g002&#34;, desc:&#34;營運&#34;, privList: [&#34;func003&#34;]}]}';
var objA = new JSON(strA);
alert(objA);
alert(objA.allPrivList[0].desc+'\n'+objA.groupList[0].privList+'\n'+objA.groupList[1].desc);
objA.push(&#34;C&#34;,[1,&#34;hello baby&#34;,function(){alert(this.C[1])}]);
alert(objA);
objA.C[2].call(objA);



var objB = new JSON({});
alert(objB);
objB.push(&#34;A&#34;,function(){alert('test A')});
alert(objB);
objB.A();



var objC = new JSON([1]);
alert(objC);
objC.push(&#34;A&#34;,function(){alert('test A')});
alert(objC.A);



var xTree = new JSON({name:'root',list:[{name:'1',list:[{name:'1-1',list:[]},{name:'1-2',list:[]}]},{name:'look at me',list:[]}]});
alert(xTree);

var r = xTree.list.splice(1,1)[0];
alert(xTree);

xTree.list[0].list.splice(1,0,r);
alert(xTree);

</script>
</TEXTAREA><br/><INPUT onclick="runEx('temp51815')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp51815')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=469</link>
			<title><![CDATA[压缩JS代码的好助手]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[HTML/JS/CSS]]></category>
			<pubDate>Mon,25 Jan 2010 18:35:07 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=469</guid>	
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.xyhot.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp87151">
<html>
<head>
<title>JS Minifier</title>
<script type=&#34;text/javascript&#34;>
String.prototype.has=function(c){return this.indexOf(c)>-1;};function jsmin(comment,input,level){if(input===undefined){input=comment;comment='';level=2;}else if(level===undefined||level<1||level>3){level=2;}if(comment.length>0){comment+='\n';}var a='',b='',EOF=-1,LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',DIGITS='0123456789',ALNUM=LETTERS+DIGITS+'_$\\',theLookahead=EOF;function isAlphanum(c){return c!=EOF&amp;&amp;(ALNUM.has(c)||c.charCodeAt(0)>126);}function get(){var c=theLookahead;if(get.i==get.l){return EOF;}theLookahead=EOF;if(c==EOF){c=input.charAt(get.i);++get.i;}if(c>=' '||c=='\n'){return c;}if(c=='\r'){return'\n';}return' ';}get.i=0;get.l=input.length;function peek(){theLookahead=get();return theLookahead;}function next(){var c=get();if(c=='/'){switch(peek()){case'/':for(;;){c=get();if(c<='\n'){return c;}}break;case'*':get();for(;;){switch(get()){case'*':if(peek()=='/'){get();return' ';}break;case EOF:throw'Error: Unterminated comment.';}}break;default:return c;}}return c;}function action(d){var r=[];if(d==1){r.push(a);}if(d<3){a=b;if(a=='\''||a=='&#34;'){for(;;){r.push(a);a=get();if(a==b){break;}if(a<='\n'){throw'Error: unterminated string literal: '+a;}if(a=='\\'){r.push(a);a=get();}}}}b=next();if(b=='/'&amp;&amp;'(,=:[!&amp;|'.has(a)){r.push(a);r.push(b);for(;;){a=get();if(a=='/'){break;}else if(a=='\\'){r.push(a);a=get();}else if(a<='\n'){throw'Error: unterminated Regular Expression literal';}r.push(a);}b=next();}return r.join('');}function m(){var r=[];a='\n';r.push(action(3));while(a!=EOF){switch(a){case' ':if(isAlphanum(b)){r.push(action(1));}else{r.push(action(2));}break;case'\n':switch(b){case'{':case'[':case'(':case'+':case'-':r.push(action(1));break;case' ':r.push(action(3));break;default:if(isAlphanum(b)){r.push(action(1));}else{if(level==1&amp;&amp;b!='\n'){r.push(action(1));}else{r.push(action(2));}}}break;default:switch(b){case' ':if(isAlphanum(a)){r.push(action(1));break;}r.push(action(3));break;case'\n':if(level==1&amp;&amp;a!='\n'){r.push(action(1));}else{switch(a){case'}':case']':case')':case'+':case'-':case'&#34;':case'\'':if(level==3){r.push(action(3));}else{r.push(action(1));}break;default:if(isAlphanum(a)){r.push(action(1));}else{r.push(action(3));}}}break;default:r.push(action(1));break;}}}return r.join('');}jsmin.oldSize=input.length;ret=m(input);jsmin.newSize=ret.length;return comment+ret;}
function $(i) {return document.getElementById(i);}
function go() {
			$('output').value = jsmin($('comment').value, $('input').value, $('level').value);
			$('outputtitle').style.display = $('output').style.display = $('statstitle').style.display = $('stats').style.display = 'block';
			$('oldsize').value = jsmin.oldSize;
			$('newsize').value = jsmin.newSize;
			$('ratio').value = (Math.round(jsmin.newSize / jsmin.oldSize * 1000) / 10) + '%';
		}
		function bw() {
			$('comment').value = $('input').value = $('output').value = '';
			$('outputtitle').style.display = $('output').style.display = $('statstitle').style.display = $('stats').style.display = 'none';
}
</script>
<style type=&#34;text/css&#34;>
#comment { width:95%; height:4em; }
#input { width:95%; height:10em; }
#go { font-weight:bold; }
#outputtitle, #statstitle, #stats { display:none; }
#oldsize, #newsize, #ratio { text-align:right; width:4em; }
#output { width:95%; height:10em;display:none; }
h2 { margin-bottom:0; }
</style>
</head>
<body bgcolor=&#34;linen&#34;>
	<h1>JS Minifier</h1>
	<p>By Franck Marcia, 
	From the <a href=&#34;<a href="http://javascri&#112;t.crockford.com/jsmin.html" target="_blank">http://javascri&#112;t.crockford.com/jsmin.html</a>&#34; target=&#34;_blank&#34;>original idea</a> of <a href=&#34;<a href="http://www.crockford.com/" target="_blank">http://www.crockford.com/</a>&#34; target=&#34;_blank&#34;>Douglas Crockford</a>, 
	Last modified: 2006/08/31</p>
	<hr/>
	<h2>Comments</h2>
	<textarea id=&#34;comment&#34; name=&#34;comment&#34;><&#47textarea>
	<h2>Code</h2>
	<textarea id=&#34;input&#34; name=&#34;input&#34;><&#47textarea>
	


	<center>
		Level:&amp;nbsp;
		<sel&#101;ct id=&#34;level&#34;>
			<option value=&#34;1&#34;>minimal</option>
			<option value=&#34;2&#34; sel&#101;cted=&#34;sel&#101;cted&#34;>conservative</option>
			<option value=&#34;3&#34;>agressive</option>
		</sel&#101;ct>
		&amp;nbsp;&amp;nbsp;
		<input id=&#34;go&#34; type=&#34;submit&#34; value=&#34;JSMin&#34; onclick=&#34;go();return false;&#34;/>
		&amp;nbsp;&amp;nbsp;
		<input type=&#34;submit&#34; value=&#34;Clear&#34; onclick=&#34;bw();return false;&#34;/>


		<small><b>Minimal</b>: o&#114;iginal algorithm but keep linefeeds if single - <b>Conservative</b>: o&#114;iginal algorithm - <b>Agressive</b>: remove more linefeed than the o&#114;iginal algorithm but can be regressive</small>
	</center>
	<h2 id=&#34;outputtitle&#34;>Output</h2>
	<textarea id=&#34;output&#34; name=&#34;output&#34;><&#47textarea>
	<h2 id=&#34;statstitle&#34;>Stats</h2>
	<div id=&#34;stats&#34;>Old size: <input id=&#34;oldsize&#34;></span> New size: <input id=&#34;newsize&#34;></span> Ratio: <input id=&#34;ratio&#34;></span></div>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp87151')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp87151')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=468</link>
			<title><![CDATA[Cognos8.3 Content Manager配置SQLServer2005 连接出错]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[DW/BI]]></category>
			<pubDate>Wed,30 Dec 2009 16:40:17 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=468</guid>	
		<description><![CDATA[之前用SQLServer2000作为Cognos8.3&nbsp;运行库,连接很正常.最近由于换成SQLServer2005,测试连接出错:<br/><img src="http://www.xyhot.com/attachments/month_0912/020091230163620.jpg" border="0" alt=""/><br/>原来SQLServer2005默认禁用TCP/IP协议:<br/><img src="http://www.xyhot.com/attachments/month_0912/q20091230163841.jpg" border="0" alt=""/><br/>只需将协议启用就可以了,不过一定要重启SQL&nbsp;Server服务哦<br/>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=467</link>
			<title><![CDATA[[JS]左右方向无缝滚动]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[HTML/JS/CSS]]></category>
			<pubDate>Tue,29 Dec 2009 09:38:49 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=467</guid>	
		<description><![CDATA[<textarea name="code" class="jscript">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; 
	&#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34; xml:lang=&#34;zh-cn&#34; lang=&#34;zh-cn&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; />
<meta http-equiv=&#34;Content-Language&#34; content=&#34;zh-cn&#34; />
<title>来自web developer navigator!的dhScroll Ver2.0.0 左右横向无缝滚动</title>
<style type=&#34;text/css&#34;>
/*块1样式*/
#scroll {width:600px;height:250px;overflow:hidden;}
/*块2样式*/
.mqdemoa {width:6000px!important;width:3000px;margin:0;padding:0;}
/*块2子元素样式*/
.mqdemoa li {width:148px;margin:0 1px;height:250px;background:red;
float:left;list-style:none;}

/*其他样式，与scroll对象无关联*/
#prenext {width:600px;height:20px;overflow:hidden;}
#prenext span {display:block;font:12px &#34;宋体&#34;;width:50%;height:20px;line-height:20px;text-align:center;cursor:pointer;color:#fff;background:#000;}
#prenext .pre {float:left;}
#prenext .next {float:right;}
</style>
<script type=&#34;text/javascript&#34;>
function dhscroll(){
	//author:dh20156
	var dh = this;
	this.autoid = null;
	//块1
	this.scrollDOM = null;
	//块2
	this.scrollCDOM = null;
	//展示宽度（和块1宽度一致）
	this.showwidth = 0;
	//每次滚动长度，这个值要能被this.showwidth整除才行
	this.steplength = 20;
	var oldlength = this.steplength;
	//滚动时间间隔
	this.steptime = 1;
	//停顿时间
	this.resttime = 3000;
	//滚动长度
	this.uvwidth = 0;

	//无缝设置过程
	this.getsw = function(){
		var tempw = this.scrollCDOM.offsetWidth;
		var temps = this.scrollCDOM.innerHTML;
		this.scrollCDOM.innerHTML = [temps,temps].join(&#34;&#34;);
		this.scrollCDOM.style.width = tempw*2+&#34;px&#34;;
		if(document.attachEvent){
			this.scrollDOM.attachEvent(&#34;onmouseover&#34;,dh.pause);
			this.scrollDOM.attachEvent(&#34;onmouseout&#34;,dh.goon);
		}else{
			this.scrollDOM.addEventListener(&#34;mouseover&#34;,dh.pause,true);
			this.scrollDOM.addEventListener(&#34;mouseout&#34;,
dh.goon,true);
		}
		this.uvwidth = Math.ceil(this.scrollDOM.scrollWidth / 2);
	}

	//从右到左
	this.scrollleft = function(){
		if(this.autoid!=null){
			window.clearTimeout(this.autoid);
		}
		var uvleft = this.scrollDOM.scrollLeft;
		uvleft += this.steplength;

		this.scrollDOM.scrollLeft = uvleft;

		if(uvleft>=this.uvwidth){
			this.scrollDOM.scrollLeft = 0;
		}
		
		if(uvleft % this.showwidth == 0){
			if(this.autostart){this.autoid = 
window.setTimeout(function(){dh.scrollleft()},dh.resttime);}
		}else{
			this.autoid = window.setTimeout(function(){
dh.scrollleft()},dh.steptime);
		}
		document.getElementById(&#34;s&#34;).innerHTML = 
this.uvwidth+&#34;,&#34;+uvleft;
	}

	//从左到右
	this.scrollright = function(){
		if(this.autoid!=null){
			window.clearTimeout(this.autoid);
		}
		var uvleft = this.scrollDOM.scrollLeft;
		uvleft -= this.steplength;

		this.scrollDOM.scrollLeft = uvleft;

		if(uvleft <= 0){
			this.scrollDOM.scrollLeft = this.uvwidth;
		}

		if(uvleft % this.showwidth == 0){
			if(this.autostart){this.autoid = 
window.setTimeout(function(){dh.scrollright()},dh.resttime);}
		}else{
			this.autoid = window.setTimeout(function(){
dh.scrollright()},dh.steptime);
		}
		document.getElementById(&#34;s&#34;).innerHTML = 
this.uvwidth+&#34;,&#34;+uvleft;
	}

	//开始滚动，参数为方向，首屏是否停顿
	this.go = function(direction,rest){
		this.autostart = true;
		if(this.autoid!=null){
			window.clearTimeout(this.autoid);
		}
		if(direction==&#34;left&#34;){
			if(rest){
				this.autoid = window.setTimeout(function(){dh.scrollleft()},5000);
			}else{
				dh.scrollleft();
			}
		}else{
			if(rest){
				this.autoid = window.setTimeout(function(){dh.scrollright()},5000);
			}else{
				dh.scrollright();
			}
		}
	}

	//往右
	this.pre = function(){
			this.scrollright();
	}
	//往左
	this.next = function(){
			this.scrollleft();
	}
	//暂停
	this.pause = function(){
		dh.oldlength = dh.steplength;
		dh.steplength = 0;
	}
	//继续
	this.goon = function(){
		dh.steplength = dh.oldlength;
	}
}
</script>
</head>
<body>
<p id=&#34;s&#34;>scrollWidth, scrollLeft</p>

<div id=&#34;scroll&#34;>
<ul id=&#34;scroll2&#34; class=&#34;mqdemoa&#34;>
	<li>测试1</li>
	<li>测试2</li>
	<li>测试3</li>
	<li>测试4</li>
	<li>测试5</li>
	<li>测试6</li>
	<li>测试7</li>
	<li>测试8</li>
	<li>测试9</li>
	<li>测试10</li>
	<li>测试11</li>
	<li>测试12</li>
	<li>测试13</li>
	<li>测试14</li>
	<li>测试15</li>
	<li>测试16</li>
	<li>测试17</li>
	<li>测试18</li>
	<li>测试19</li>
	<li>测试20</li>
</ul>
</div>
<div id=&#34;prenext&#34;>
	<span class=&#34;pre&#34; 
onmouseover=&#34;this.style.background='#eee';this.style.color='#000'&#34; 
onmouseout=&#34;this.style.background='#000';this.style.color='#fff'&#34; 
onclick=&#34;dhs.pre();&#34;>上一页</span>
	<span class=&#34;next&#34; 
onmouseover=&#34;this.style.background='#eee';this.style.color='#000'&#34; 
onmouseout=&#34;this.style.background='#000';this.style.color='#fff'&#34; 
onclick=&#34;dhs.next();&#34;>下一页</span>
</div>
<dl>
<dt><h1>dhScroll Ver2.0.0 左右横向无缝滚动</h1></dt>
<dd>支持从左到右，从右到左两个方向的无缝滚动；</dd>

<dd>支持手动更改滚动方向；</dd>
<dd>支持连续/停顿方式滚动；</dd>
<dd>鼠标指向暂停滚动，移开继续；</dd>
<dt><h1>滚动对象模型</h1></dt>
<dd><块1><块2><块2的子元素>内容</块2的子元素></块2><
/块1></dd>
<dt><h1>滚动模型设置样式要点</h1></dt>

<dd>块1设置的宽度为展示宽度；overflow:hidden;</dd>
<dd>块2设置的宽度为块2子元素累计宽度（确保块2所有子元素排在一排）；</dd>
<dd>由于脚本中无缝部分采用innerHTML重写块2子元素，导致IE和FF在样式渲染上有所区别，
FF下块2的宽度应设置为块2宽度的两倍；</dd>
<dd>块2子元素必须确保排在一排，非表格的话最好float:left;</dd>
</dl>

<script type=&#34;text/javascript&#34;>
var dhs = new dhscroll();
dhs.scrollDOM = document.getElementById(&#34;scroll&#34;);
dhs.scrollCDOM = document.getElementById(&#34;scroll2&#34;);
dhs.showwidth = 600;
dhs.getsw();
dhs.go(&#34;left&#34;,true);
</script>
</body>
</html>
</textarea><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.xyhot.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp52661">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; 
	&#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34; xml:lang=&#34;zh-cn&#34; lang=&#34;zh-cn&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; />
<meta http-equiv=&#34;Content-Language&#34; content=&#34;zh-cn&#34; />
<title>来自web developer navigator!的dhScroll Ver2.0.0 左右横向无缝滚动</title>
<style type=&#34;text/css&#34;>
/*块1样式*/
#scroll {width:600px;height:250px;overflow:hidden;}
/*块2样式*/
.mqdemoa {width:6000px!important;width:3000px;margin:0;padding:0;}
/*块2子元素样式*/
.mqdemoa li {width:148px;margin:0 1px;height:250px;background:red;float:left;list-style:none;}

/*其他样式，与scroll对象无关联*/
#prenext {width:600px;height:20px;overflow:hidden;}
#prenext span {display:block;font:12px &#34;宋体&#34;;width:50%;height:20px;line-height:20px;text-align:center;cursor:pointer;color:#fff;background:#000;}
#prenext .pre {float:left;}
#prenext .next {float:right;}
</style>
<script type=&#34;text/javascript&#34;>
function dhscroll(){
	//author:dh20156
	var dh = this;
	this.autoid = null;
	//块1
	this.scrollDOM = null;
	//块2
	this.scrollCDOM = null;
	//展示宽度（和块1宽度一致）
	this.showwidth = 0;
	//每次滚动长度，这个值要能被this.showwidth整除才行
	this.steplength = 20;
	var oldlength = this.steplength;
	//滚动时间间隔
	this.steptime = 1;
	//停顿时间
	this.resttime = 3000;
	//滚动长度
	this.uvwidth = 0;

	//无缝设置过程
	this.getsw = function(){
		var tempw = this.scrollCDOM.offsetWidth;
		var temps = this.scrollCDOM.innerHTML;
		this.scrollCDOM.innerHTML = [temps,temps].join(&#34;&#34;);
		this.scrollCDOM.style.width = tempw*2+&#34;px&#34;;
		if(document.attachEvent){
			this.scrollDOM.attachEvent(&#34;onmouseover&#34;,dh.pause);
			this.scrollDOM.attachEvent(&#34;onmouseout&#34;,dh.goon);
		}else{
			this.scrollDOM.addEventListener(&#34;mouseover&#34;,dh.pause,true);
			this.scrollDOM.addEventListener(&#34;mouseout&#34;,dh.goon,true);
		}
		this.uvwidth = Math.ceil(this.scrollDOM.scrollWidth / 2);
	}

	//从右到左
	this.scrollleft = function(){
		if(this.autoid!=null){
			window.clearTimeout(this.autoid);
		}
		var uvleft = this.scrollDOM.scrollLeft;
		uvleft += this.steplength;

		this.scrollDOM.scrollLeft = uvleft;

		if(uvleft>=this.uvwidth){
			this.scrollDOM.scrollLeft = 0;
		}
		
		if(uvleft % this.showwidth == 0){
			if(this.autostart){this.autoid = window.setTimeout(function(){dh.scrollleft()},dh.resttime);}
		}else{
			this.autoid = window.setTimeout(function(){dh.scrollleft()},dh.steptime);
		}
		document.getElementById(&#34;s&#34;).innerHTML = this.uvwidth+&#34;,&#34;+uvleft;
	}

	//从左到右
	this.scrollright = function(){
		if(this.autoid!=null){
			window.clearTimeout(this.autoid);
		}
		var uvleft = this.scrollDOM.scrollLeft;
		uvleft -= this.steplength;

		this.scrollDOM.scrollLeft = uvleft;

		if(uvleft <= 0){
			this.scrollDOM.scrollLeft = this.uvwidth;
		}

		if(uvleft % this.showwidth == 0){
			if(this.autostart){this.autoid = window.setTimeout(function(){dh.scrollright()},dh.resttime);}
		}else{
			this.autoid = window.setTimeout(function(){dh.scrollright()},dh.steptime);
		}
		document.getElementById(&#34;s&#34;).innerHTML = this.uvwidth+&#34;,&#34;+uvleft;
	}

	//开始滚动，参数为方向，首屏是否停顿
	this.go = function(direction,rest){
		this.autostart = true;
		if(this.autoid!=null){
			window.clearTimeout(this.autoid);
		}
		if(direction==&#34;left&#34;){
			if(rest){
				this.autoid = window.setTimeout(function(){dh.scrollleft()},5000);
			}else{
				dh.scrollleft();
			}
		}else{
			if(rest){
				this.autoid = window.setTimeout(function(){dh.scrollright()},5000);
			}else{
				dh.scrollright();
			}
		}
	}

	//往右
	this.pre = function(){
			this.scrollright();
	}
	//往左
	this.next = function(){
			this.scrollleft();
	}
	//暂停
	this.pause = function(){
		dh.oldlength = dh.steplength;
		dh.steplength = 0;
	}
	//继续
	this.goon = function(){
		dh.steplength = dh.oldlength;
	}
}
</script>
</head>
<body>
<p id=&#34;s&#34;>scrollWidth, scrollLeft</p>

<div id=&#34;scroll&#34;>
<ul id=&#34;scroll2&#34; class=&#34;mqdemoa&#34;>
	<li>测试1</li>
	<li>测试2</li>
	<li>测试3</li>
	<li>测试4</li>
	<li>测试5</li>
	<li>测试6</li>
	<li>测试7</li>
	<li>测试8</li>
	<li>测试9</li>
	<li>测试10</li>
	<li>测试11</li>
	<li>测试12</li>
	<li>测试13</li>
	<li>测试14</li>
	<li>测试15</li>
	<li>测试16</li>
	<li>测试17</li>
	<li>测试18</li>
	<li>测试19</li>
	<li>测试20</li>
</ul>
</div>
<div id=&#34;prenext&#34;>
	<span class=&#34;pre&#34; onmouseover=&#34;this.style.background='#eee';this.style.color='#000'&#34; onmouseout=&#34;this.style.background='#000';this.style.color='#fff'&#34; onclick=&#34;dhs.pre();&#34;>上一页</span>
	<span class=&#34;next&#34; onmouseover=&#34;this.style.background='#eee';this.style.color='#000'&#34; onmouseout=&#34;this.style.background='#000';this.style.color='#fff'&#34; onclick=&#34;dhs.next();&#34;>下一页</span>
</div>
<dl>
<dt><h1>dhScroll Ver2.0.0 左右横向无缝滚动</h1></dt>
<dd>支持从左到右，从右到左两个方向的无缝滚动；</dd>

<dd>支持手动更改滚动方向；</dd>
<dd>支持连续/停顿方式滚动；</dd>
<dd>鼠标指向暂停滚动，移开继续；</dd>
<dt><h1>滚动对象模型</h1></dt>
<dd><块1><块2><块2的子元素>内容</块2的子元素></块2></块1></dd>
<dt><h1>滚动模型设置样式要点</h1></dt>

<dd>块1设置的宽度为展示宽度；overflow:hidden;</dd>
<dd>块2设置的宽度为块2子元素累计宽度（确保块2所有子元素排在一排）；</dd>
<dd>由于脚本中无缝部分采用innerHTML重写块2子元素，导致IE和FF在样式渲染上有所区别，FF下块2的宽度应设置为块2宽度的两倍；</dd>
<dd>块2子元素必须确保排在一排，非表格的话最好float:left;</dd>
</dl>

<script type=&#34;text/javascript&#34;>
var dhs = new dhscroll();
dhs.scrollDOM = document.getElementById(&#34;scroll&#34;);
dhs.scrollCDOM = document.getElementById(&#34;scroll2&#34;);
dhs.showwidth = 600;
dhs.getsw();
dhs.go(&#34;left&#34;,true);
</script>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp52661')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp52661')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=466</link>
			<title><![CDATA[[JS]可输入选择框简单原型]]></title>
			<author>huheng1234@163.com(xyhot.com)</author>
			<category><![CDATA[HTML/JS/CSS]]></category>
			<pubDate>Tue,22 Dec 2009 10:09:42 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=466</guid>	
		<description><![CDATA[<textarea name="code" class="xml">
<style type=&#34;text/css&#34;>
.combobx {width:100px;overflow:hidden;position:relative;background:red;}
.combobxB {width:100px;position:absolute;left:0;top:1px;clip:rect(1px auto auto 81px);}
/*FF下调整一点点.combobxB {width:100px;position:absolute;left:0;top:0;
clip:rect(2px auto auto 81px);}*/
.combobxA {width:100px;}
</style>

<div class=&#34;combobx&#34;>
<input type=&#34;text&#34; class=&#34;combobxA&#34;>
<sel&#101;ct class=&#34;combobxB&#34;>
  <option>小学</option>
  <option>中学</option>
  <option>大学</option>
</sel&#101;ct>
</div>
</textarea><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.xyhot.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp85950">
<style type=&#34;text/css&#34;>
.combobx {width:100px;overflow:hidden;position:relative;background:red;}
.combobxB {width:100px;position:absolute;left:0;top:1px;clip:rect(1px auto auto 81px);}
/*FF下调整一点点.combobxB {width:100px;position:absolute;left:0;top:0;
clip:rect(2px auto auto 81px);}*/
.combobxA {width:100px;}
</style>

<div class=&#34;combobx&#34;>
<input type=&#34;text&#34; class=&#34;combobxA&#34;>
<sel&#101;ct class=&#34;combobxB&#34;>
  <option>小学</option>
  <option>中学</option>
  <option>大学</option>
</sel&#101;ct>
</div>
</TEXTAREA><br/><INPUT onclick="runEx('temp85950')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp85950')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=465</link>
			<title><![CDATA[org.apache.commons.lang.StringUtil 常用方法使用例子]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[Java]]></category>
			<pubDate>Fri,18 Dec 2009 11:35:30 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=465</guid>	
		<description><![CDATA[<strong><span style="color:Blue">1.空字符串检查</span></strong><br/>使用函数:&nbsp;StringUtils.isBlank(testString)<br/>函数介绍:&nbsp;当testString为空,长度为零或者仅由空白字符(whitespace)组成时,返回True;否则返回False<br/>例程:<br/><textarea name="code" class="java">
    String test = &#34;&#34;;
    String test2 = &#34;\n\n\t&#34;;
    String test3 = null;
    String test4 = &#34;Test&#34;; 
    System.out.println( &#34;test blank? &#34; + StringUtils.isBlank( test ) );
    System.out.println( &#34;test2 blank? &#34; + StringUtils.isBlank( test2 ) );
    System.out.println( &#34;test3 blank? &#34; + StringUtils.isBlank( test3 ) );
    System.out.println( &#34;test4 blank? &#34; + StringUtils.isBlank( test4 ) );
</textarea><br/>输出如下:<br/>test&nbsp;blank?&nbsp;true<br/>test2&nbsp;blank?&nbsp;true<br/>test3&nbsp;blank?&nbsp;true<br/>test4&nbsp;blank?&nbsp;False<br/>函数StringUtils.isNotBlank(testString)的功能与StringUtils.isBlank(testString)相反.<br/><br/><strong><span style="color:Blue">2.清除空白字符</span></strong><br/>使用函数:&nbsp;StringUtils.trimToNull(testString)<br/>函数介绍:清除掉testString首尾的空白字符,如果仅testString全由空白字符<br/>(whitespace)组成则返回null<br/>例程:<br/><textarea name="code" class="java">
    String test1 = &#34;\t&#34;;
    String test2 = &#34; A Test &#34;;
    String test3 = null;

    System.out.println( &#34;test1 trimToNull: &#34; + StringUtils.trimToNull( test1 ) );
    System.out.println( &#34;test2 trimToNull: &#34; + StringUtils.trimToNull( test2 ) );
    System.out.println( &#34;test3 trimToNull: &#34; + StringUtils.trimToNull( test3 ) );
</textarea><br/>输出如下:<br/>test1&nbsp;trimToNull:&nbsp;null<br/>test2&nbsp;trimToNull:&nbsp;A&nbsp;Test<br/>test3&nbsp;trimToNull:&nbsp;null<br/><br/>注意：函数StringUtils.trim(testString)与<br/>StringUtils.trimToNull(testString)功能类似，但testString由空白字符<br/>(whitespace)组成时返回零长度字符串。<br/><br/><strong><span style="color:Blue">3.取得字符串的缩写</span></strong><br/>使用函数:&nbsp;StringUtils.abbreviate(testString,width)和StringUtils.abbreviate(testString,offset，width)<br/>函数介绍:在给定的width内取得testString的缩写,当testString的长度小于width则返回原字符串.<br/>例程:<br/><textarea name="code" class="java">
    String test = &#34;This is a test of the abbreviation.&#34;;
    String test2 = &#34;Test&#34;;

    System.out.println( StringUtils.abbreviate( test, 15 ) );
    System.out.println( StringUtils.abbreviate( test, 5,15 ) );
    System.out.println( StringUtils.abbreviate( test2, 10 ) );
</textarea><br/>输出如下:<br/>This&nbsp;is&nbsp;a&nbsp;te...<br/>...is&nbsp;a&nbsp;test...<br/>Test<br/><br/><strong><span style="color:Blue">4.劈分字符串</span></strong><br/>使用函数:&nbsp;StringUtils.split(testString,splitChars,arrayLength)<br/>函数介绍:splitChars中可以包含一系列的字符串来劈分testString,并可以设定得<br/>到数组的长度.注意设定长度arrayLength和劈分字符串间有抵触关系,建议一般情况下<br/>不要设定长度.<br/>例程:<br/><textarea name="code" class="java">
    String input = &#34;A b,c.d|e&#34;;
    String input2 = &#34;Pharmacy, basketball funky&#34;;
   
    String[] array1 = StringUtils.split( input, &#34; ,.|&#34;);
    String[] array2 = StringUtils.split( input2, &#34; ,&#34;, 2 );

    System.out.println( ArrayUtils.toString( array1 ) );
    System.out.println( ArrayUtils.toString( array2 ) );
</textarea><br/>输出如下:<br/>{A,b,c,d,e}<br/>{Pharmacy,basketball&nbsp;funky}<br/><br/><strong><span style="color:Blue">5.查找嵌套字符串</span></strong><br/>使用函数:StringUtils.substringBetween(testString,header,tail)<br/>函数介绍：在testString中取得header和tail之间的字符串。不存在则返回空<br/>例程：<br/><textarea name="code" class="java">
    String htmlContent = &#34;ABC1234ABC4567&#34;;
    System.out.println(StringUtils.substringBetween(htmlContent, &#34;1234&#34;, &#34;4567&#34;));
    System.out.println(StringUtils.substringBetween(htmlContent, &#34;12345&#34;, &#34;4567&#34;));
</textarea><br/>输出如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;ABC<br/>&nbsp;&nbsp;&nbsp;&nbsp;null<br/><br/><br/><strong><span style="color:Blue">6.去除尾部换行符</span></strong><br/>使用函数:StringUtils.chomp(testString)<br/>函数介绍:去除testString尾部的换行符<br/>例程:<br/><textarea name="code" class="java">
    String input = &#34;Hello\n&#34;;
    System.out.println( StringUtils.chomp( input ));
    String input2 = &#34;Another test\r\n&#34;;
    System.out.println( StringUtils.chomp( input2 ));
</textarea><br/>输出如下:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Hello<br/>&nbsp;&nbsp;&nbsp;&nbsp;Another&nbsp;test<br/><br/><br/><strong><span style="color:Blue">7.重复字符串</span></strong><br/>使用函数:StringUtils.repeat(repeatString,count)<br/>函数介绍:得到将repeatString重复count次后的字符串<br/>例程:<br/><textarea name="code" class="java">
    System.out.println( StringUtils.repeat( &#34;*&#34;, 10));
    System.out.println( StringUtils.repeat( &#34;China &#34;, 5));
</textarea><br/>输出如下:<br/>&nbsp;&nbsp;&nbsp;&nbsp;**********<br/>&nbsp;&nbsp;&nbsp;&nbsp;China&nbsp;China&nbsp;China&nbsp;China&nbsp;China<br/><br/>其他函数:StringUtils.center(&nbsp;testString,&nbsp;count,repeatString&nbsp;);<br/>函数介绍:把testString插入将repeatString重复多次后的字符串中间,得到字符串<br/>的总长为count<br/>例程:<br/><textarea name="code" class="java">
    System.out.println( StringUtils.center( &#34;China&#34;, 11,&#34;*&#34;));
</textarea><br/>输出如下:<br/>&nbsp;&nbsp;&nbsp;&nbsp;***China***<br/><br/><br/><strong><span style="color:Blue">8.颠倒字符串</span></strong><br/>使用函数:StringUtils.reverse(testString)<br/>函数介绍:得到testString中字符颠倒后的字符串<br/>例程:<br/><textarea name="code" class="java">
    System.out.println( StringUtils.reverse(&#34;ABCDE&#34;));
</textarea><br/>输出如下:<br/>&nbsp;&nbsp;&nbsp;&nbsp;EDCBA<br/><br/><strong><span style="color:Blue">9.判断字符串内容的类型</span></strong><br/>函数介绍:<br/>StringUtils.isNumeric(&nbsp;testString&nbsp;)&nbsp;:如果testString全由数字组成返回True<br/>StringUtils.isAlpha(&nbsp;testString&nbsp;)&nbsp;:如果testString全由字母组成返回True<br/>StringUtils.isAlphanumeric(&nbsp;testString&nbsp;)&nbsp;:如果testString全由数字或数字组<br/>成返回True<br/>StringUtils.isAlphaspace(&nbsp;testString&nbsp;)&nbsp;:如果testString全由字母或空格组<br/>成返回True<br/><br/>例程:<br/><textarea name="code" class="java">
    String state = &#34;Virginia&#34;;
    System.out.println( &#34;Is state number? &#34; + StringUtils.isNumeric(state ) );
    System.out.println( &#34;Is state alpha? &#34; + StringUtils.isAlpha( state ));
    System.out.println( &#34;Is state alphanumeric? &#34; +StringUtils.isAlphanumeric( state ) );
    System.out.println( &#34;Is state alphaspace? &#34; + StringUtils.isAlphaSpace( state ) );
</textarea><br/>输出如下:<br/>&nbsp;&nbsp;&nbsp;&nbsp;Is&nbsp;state&nbsp;number?&nbsp;false<br/>&nbsp;&nbsp;&nbsp;&nbsp;Is&nbsp;state&nbsp;alpha?&nbsp;true<br/>&nbsp;&nbsp;&nbsp;&nbsp;Is&nbsp;state&nbsp;alphanumeric?&nbsp;true<br/>&nbsp;&nbsp;&nbsp;&nbsp;Is&nbsp;state&nbsp;alphaspace?&nbsp;true<br/><br/><strong><span style="color:Blue">10.取得某字符串在另一字符串中出现的次数</span></strong><br/>使用函数:StringUtils.countMatches(testString,seqString)<br/>函数介绍:取得seqString在testString中出现的次数,未发现则返回零<br/>例程:<br/><textarea name="code" class="java">
    System.out.println(StringUtils.countMatches( &#34;Chinese People&#34;, &#34;e&#34;));
</textarea><br/>输出:<br/>&nbsp;&nbsp;&nbsp;&nbsp;4<br/><br/><strong><span style="color:Blue">11.部分截取字符串</span></strong><br/>使用函数:<br/>StringUtils.substringBetween(testString,fromString,toString&nbsp;):取得两字符<br/>之间的字符串<br/>StringUtils.substringAfter(&nbsp;):取得指定字符串后的字符串<br/>StringUtils.substringBefore(&nbsp;)：取得指定字符串之前的字符串<br/>StringUtils.substringBeforeLast(&nbsp;)：取得最后一个指定字符串之前的字符串<br/>StringUtils.substringAfterLast(&nbsp;)：取得最后一个指定字符串之后的字符串<br/><br/>函数介绍：上面应该都讲明白了吧。<br/>例程：<br/><textarea name="code" class="java">
    String formatted = &#34; 25 * (30,40) [50,60] | 30&#34;;
    System.out.print(&#34;N0: &#34; + StringUtils.substringBeforeLast( formatted, &#34;*&#34; ) );
    System.out.print(&#34;, N1: &#34; + StringUtils.substringBetween( formatted, &#34;(&#34;, &#34;,&#34; ) );
    System.out.print(&#34;, N2: &#34; + StringUtils.substringBetween( formatted, &#34;,&#34;, &#34;)&#34; ) );
    System.out.print(&#34;, N3: &#34; + StringUtils.substringBetween( formatted, &#34;[&#34;, &#34;,&#34; ) );
    System.out.print(&#34;, N4: &#34; + StringUtils.substringBetween( formatted, &#34;,&#34;, &#34;]&#34; ) );
    System.out.print(&#34;, N5: &#34; + StringUtils.substringAfterLast( formatted, &#34;|&#34; ) );
</textarea><br/>输出如下：<br/>&nbsp;&nbsp;&nbsp;&nbsp;N0:&nbsp;25&nbsp;,&nbsp;N1:&nbsp;30,&nbsp;N2:&nbsp;40,&nbsp;N3:&nbsp;50,&nbsp;N4:&nbsp;40)&nbsp;[50,60,&nbsp;N5:&nbsp;30<br/>]]></description>
		</item>
		
			<item>
			<link>http://www.xyhot.com/default.asp?id=464</link>
			<title><![CDATA[[JS]iframe未正确闭合的错误]]></title>
			<author>huheng1234@163.com(huheng1234)</author>
			<category><![CDATA[HTML/JS/CSS]]></category>
			<pubDate>Mon,14 Dec 2009 11:55:12 +0800</pubDate>
			<guid>http://www.xyhot.com/default.asp?id=464</guid>	
		<description><![CDATA[<textarea name="code" class="xml">
<!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01//EN&#34;
&#34;<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank">http://www.w3.org/TR/html4/strict.dtd</a>&#34;>
<html>
<head>
<title>Rank's HTML document</title>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34;>
</head>
<body>
<h1>坑</h1>
<div class=&#34;hd&#34;><h3>hi, guy</h3></div>
<div class=&#34;bd&#34;><p>wh&#101;re is your alert of your javascript?</p></div>
<iframe src=&#34;about:blank&#34; frameborder=&#34;0&#34; />
</body>
<script type=&#34;text/javascript&#34;>
alert('这个alert不能执行!');
</script>
</html>
</textarea><br/><textarea name="code" class="xml">
<!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01//EN&#34;
&#34;<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank">http://www.w3.org/TR/html4/strict.dtd</a>&#34;>
<html>
<head>
<title>Rank's HTML document</title>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34;>
</head>
<body>
<h1>坑</h1>
<div class=&#34;hd&#34;><h3>hi, guy</h3></div>
<div class=&#34;bd&#34;><p>wh&#101;re is your alert of your javascript?</p></div>
<iframe src=&#34;about:blank&#34; frameborder=&#34;0&#34; ></iframe >
</body>
<script type=&#34;text/javascript&#34;>
alert('恭喜你，这个alert执行了!');
</script>
</html>
</textarea><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.xyhot.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp11009">
<!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01//EN&#34;
&#34;<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank">http://www.w3.org/TR/html4/strict.dtd</a>&#34;>
<html>
<head>
<title>Rank's HTML document</title>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34;>
</head>
<body>
<h1>坑</h1>
<div class=&#34;hd&#34;><h3>hi, guy</h3></div>
<div class=&#34;bd&#34;><p>wh&#101;re is your alert of your javascript?</p></div>
<iframe src=&#34;about:blank&#34; frameborder=&#34;0&#34; />
</body>
<script type=&#34;text/javascript&#34;>
alert('这个alert不能执行!');
</script>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp11009')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp11009')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
</channel>
</rss>