??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-DANCE WITH JAVAhttp://www.qpkxbc.shop/dreamstone/开发出高质量的pȝzh-cnSat, 24 Aug 2019 00:49:31 GMTSat, 24 Aug 2019 00:49:31 GMT60做了个osworkflow的designer工具Q模仿jbpm的样式。大家试用用http://www.qpkxbc.shop/dreamstone/archive/2009/09/14/295047.htmldreamstonedreamstoneMon, 14 Sep 2009 10:01:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2009/09/14/295047.htmlhttp://www.qpkxbc.shop/dreamstone/comments/295047.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2009/09/14/295047.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/295047.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/295047.html http://www.qpkxbc.shop/Files/dreamstone/eclipse1.part1.rar
http://www.qpkxbc.shop/Files/dreamstone/eclipse1.part2.rar
http://www.qpkxbc.shop/Files/dreamstone/eclipse1.part3.rar
http://www.qpkxbc.shop/Files/dreamstone/eclipse1.part4.rar
http://www.qpkxbc.shop/Files/dreamstone/eclipse1.part5.rar
http://www.qpkxbc.shop/Files/dreamstone/eclipse1.part6.rar

dreamstone 2009-09-14 18:01 发表评论
]]>
理解osworkflow 工作?/title><link>http://www.qpkxbc.shop/dreamstone/archive/2009/08/19/291755.html</link><dc:creator>dreamstone</dc:creator><author>dreamstone</author><pubDate>Wed, 19 Aug 2009 02:44:00 GMT</pubDate><guid>http://www.qpkxbc.shop/dreamstone/archive/2009/08/19/291755.html</guid><wfw:comment>http://www.qpkxbc.shop/dreamstone/comments/291755.html</wfw:comment><comments>http://www.qpkxbc.shop/dreamstone/archive/2009/08/19/291755.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/dreamstone/comments/commentRss/291755.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/dreamstone/services/trackbacks/291755.html</trackback:ping><description><![CDATA[<div class="ExternalClass9797756EA2854CA5AC8E4E7B0550C56D"> <p><font color="#ff0000">什么是工作:</font><br /> 是工作程的计模型,卛_工作程中的工作如何前后l织在一L逻辑和规则在计算Z以恰当的模型q行表示q对其实施计。工作流要解决的主要问题是:为实现某个业务目标,在多个参与者之_利用计算机,按某U预定规则自动传递文档、信息或者Q务?strong> </strong><br /> </p> <p><font color="#ff0000">工作的应用场景Q?br /> </font><font color="#000000">soa中的时序~排Qoapȝ中的审批{。大部分理程中都可以用到工作?/font></p> <p><font color="#ff0000">工作与业务的关p?br /> </font><font color="#000000">一、业务集成到工作中Q一U常见的做法是把所有的业务集成到工作流中,如果有个业务定义个functionQ然后放q去。例如要生成spcode?br /> 1、带来的好处Q?br /> 业务与工作流完全集成Q只需要找到工作流配置文gQ以他ؓȝp扑ֈ所有的业务。让代码的阅ȝ护更方便?br /> 2、坏处:<br /> q不是最好的理念Q仍焉要一ơ次的读原来的代码,复用性差Q可剥离性差Q比如我不想用工作流了)Q替换性差Q比如我想从osworkflow到jbpmQ,侵入性高。跟现在大家说的最多的soa冲突?br /> 3、适用环境<br /> 项目开发,灉|Q重写难度不?/font></p> <p>二、业务单独写Q工作流后加入进?br /> 用非工作的代码实现所有的业务Q再用工作流~排<br /> 1、带来的好处Q?br /> W合soa的原则,可以分组Ӟ分服务,分应用,复用性好Q一旦复用消耗小Qƈ不需要了解内部代码?br /> 2、坏处:<br /> 初期消耗大Q业务划分难度大Q需要频J调整?br /> 3、适用环境<br /> 大型的目好Q甚臛_以在应用之间l织。在电子pȝ集成中最有用?br /> <font color="#ff0000"><br /> </font><font color="#ff0000">工作引擎:</font><br /> 字面意思理解,工作引擎就是工作流核心元素解决Ҏ?br /> 那工作流的核心是什么呢Q?br /> 有权限的操作者触发流E在各种条g下的跌{?br /> 关键的是权限Q条Ӟ跌{?br /> 所以工作流引擎实现的就是:<br /> Ҏ角色、分工和条g的不同决定信息传递\?br /> </p> <p>使用工作引擎带来的便利Q?br /> 1、开发简?br /> 2、稳定?br /> 3、易l护</p> <p><font color="#ff0000">理解工作:</font><br /> 一句话Q其实Y件设计上更多的是借鉴非Y件知识,比如设计模式来源于徏{。哲学上也有大同理论?/p> <p><br /> 说了好久的工作流Q知道它的好处,知道它的坏处Q知道应用场景,但工作流q是有点朦胧Q想到设计工作流Q理解工作流q是有点头疼。特别是在大的场景,比如说我要实CQ意方式定义的程。听到这个就头大。那如何解决q个问题呢?<br /> <br /> 是q类问题Q约Ҏ从理论的高度来解冟뀂那么我们来看osworkflow是基于什么实现的Q有限状态机。当我们攑ֈ宏观Q我们要解决所有问题的时候会感觉很棘手,L程。但攑ֈ微观呢。虽然我们最l是要解x个的路由。但是我只要解决L两个step之间的\由。所有的路由p决了。这也是数学上的归纳法?br /> <br /> 好了现在的问题已l变成如何解决两个step之间的\׃Q从两个step之间的\由,再次~减刎ͼ我只需要知道一个step可以C么地方,那我q道是否两个step之间存在路由?br /> <br /> 那放C个step上是否就是有限状态机了呢Q没错?br /> step是状态,action是状态{换,但是osworkflow赋予了action太多的功能,变成了action中的result才是转换Q而action变成了{换过E中一些列操作及{换的集合?/p> <p><font color="#ff0000">有限状态机Q?br /> </font>你熟悉他吗,一定的Q一定熟悉他Q想x多少E序是基于他实现的。比如rpg游戏中迷宫的L路口Q比如rpg游戏中的情节讑֮。如果你写一个游戏引擎,你会发现fsmM有多q。即使你不写游戏引擎Q你玩游戏吗Q在rpg中是否用W通过一个个的点再现q迷宫地图,是否通过一ơ次的通关扑ֈ各种隐藏情节Q这是状态机?/p> <p><font color="#ff0000">osworkflow的设计工P</font><br /> Z么osworkflow不提供设计工具呢Qosworkflow开发者说Q要灉|Q这是程序员q的事情。但是uml本n也是E序员干的事情。再x因ؓosworkflowZ有限状态机Q而对于有限状态机q种如果用uml表现出来是困隄。MZ些难以控制的地方Q再来看看jbpmQ因为jbpm是基于状态图的,来源于umlQ所以更Ҏ计工兗?/p> <p><br /> 个h理解Q大家交?/p> </div> <img src ="http://www.qpkxbc.shop/dreamstone/aggbug/291755.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/dreamstone/" target="_blank">dreamstone</a> 2009-08-19 10:44 <a href="http://www.qpkxbc.shop/dreamstone/archive/2009/08/19/291755.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>html in mms or fetch remote media in mms(彩信中能否自动访问远E资?http://www.qpkxbc.shop/dreamstone/archive/2009/05/22/277270.htmldreamstonedreamstoneFri, 22 May 2009 03:51:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2009/05/22/277270.htmlhttp://www.qpkxbc.shop/dreamstone/comments/277270.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2009/05/22/277270.html#Feedback1http://www.qpkxbc.shop/dreamstone/comments/commentRss/277270.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/277270.html阅读全文

dreamstone 2009-05-22 11:51 发表评论
]]>
axis2 入门 quickstart(webservice Requested resource not found)http://www.qpkxbc.shop/dreamstone/archive/2009/01/31/252781.htmldreamstonedreamstoneSat, 31 Jan 2009 03:20:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2009/01/31/252781.htmlhttp://www.qpkxbc.shop/dreamstone/comments/252781.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2009/01/31/252781.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/252781.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/252781.html阅读全文

dreamstone 2009-01-31 11:20 发表评论
]]>
使用Apache+tomcat比单独用tomcat能带来什么样的好处及坏处http://www.qpkxbc.shop/dreamstone/archive/2008/11/07/239231.htmldreamstonedreamstoneFri, 07 Nov 2008 04:33:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2008/11/07/239231.htmlhttp://www.qpkxbc.shop/dreamstone/comments/239231.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2008/11/07/239231.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/239231.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/239231.html阅读全文

dreamstone 2008-11-07 12:33 发表评论
]]>
acegi的验证问? ---中文用户名登录,及md5加密密码方式http://www.qpkxbc.shop/dreamstone/archive/2008/09/19/230020.htmldreamstonedreamstoneFri, 19 Sep 2008 13:29:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2008/09/19/230020.htmlhttp://www.qpkxbc.shop/dreamstone/comments/230020.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2008/09/19/230020.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/230020.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/230020.html 因ؓ之前acegi都是另一个同事负责,现在同事不在Q只能自p冻I扑ֈacegi中取得用户名的地?br /> org.acegisecurity.ui.webapp.AuthenticationProcessingFilter 中的q段代码
 1public Authentication attemptAuthentication(HttpServletRequest request)
 2        throws AuthenticationException {
 3        String username = obtainUsername(request);
 4        String password = obtainPassword(request);
 5
 6        if (username == null{
 7            username = "";
 8        }

 9
10        if (password == null{
11            password = "";
12        }

13
14        UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username, password);
15
16        // Place the last username attempted into HttpSession for views
17        request.getSession().setAttribute(ACEGI_SECURITY_LAST_USERNAME_KEY, username);
18
19        // Allow subclasses to set the "details" property
20        setDetails(request, authRequest);
21
22        return this.getAuthenticationManager().authenticate(authRequest);
23    }

24

取出username后发现是qQ如果解册个问题呢Q第一个想到的是{?br />
username=new String(username.getBytes("ISO8859-1"),"UTF-8");
解决问题Q但是这D代码要嵌入到acegi中必重新编译acegi
上边的办法改动太大,再想办法Q想到既焉题是来自~码Q看看web.xml的filter发现原因在这
spring的filter是解决编码问题的Q但是因为acegi的filter在spring之前Q所以编码没有{码。又不能把acegi的filter挪到spring filter之后Q这样就有安全问题了?br />
那就增加一个filterQ只qod链接Q然后设|一下代替spring的encodingfilter讄一下编码,解决问题
public class EncodeChnUsernameFilter implements Filter{
    
private static final String ACEGI_SECURITY_FORM_USERNAME_KEY ="j_username";
    
private static final String ACEGI_SECURITY_FORM_PASSWORD_KEY = "j_password";
    
public void destroy() {
        
    }


    
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        request.setCharacterEncoding(
"UTF-8");
        chain.doFilter(request, response);
    }


    
public void init(FilterConfig arg0) throws ServletException {
        
    }

}
中文用户名登录问题解决了?br />
但是另一个问题来了,密码是非明文的md5加密的,需要加密,同样不想更改acegi?br /> 那好吧l用filterQ看看能否getParameter后再set回去
String password= request.getParameter("j_password");
//q里是个md5加密函数
password = md5(password);
//怎么setq去呢?
request.getParameterMap().put("j_password",password);
//启动试一下,异常报错Qmap不能putQ看一下异常,发现q个不是普通的mapQ是org.apache.catalina.util.ParameterMapQ这个map中有个标志位lockQtomcat不让更改http接收到的倹{?br /> //Z不服输的_Q一定要搞定它,呵呵
ParameterMap map = (ParameterMap)request.getParameterMap();
map.setLock(
false);
map.put(
"j_password",password);
map.setLock(
true);
//搞定Q不对,~译不通过Q发现org.apache.catalina.util.ParameterMap的jar包是catalina.jar?br /> 把这个包攑ֈlib下编译,通过Q运行出向下转型错误Q仔l看一下发现request.getParameterMap()出来的ParameterMap.getClass()的id?00多,而接受{?/span>
的ParameterMap.class.getClass()?000多,不是一个类啊。想想也对,lib下和tomcat的server/lib下各有一个catalina.jarq个是两个cM?br />
eclipse add 外部jar包,直接add上tomcat中的catalina.jarQ编译运行,q是有问题,q次是报的classNotFound异常Qؓ什么会q样呢,命名Server
/lib下有q个jar包,后来想了下明白了。tomcat一定是限定了catalina.jar不能被普通的用户cL直接引用。处于安全性考虑吧。这条\C通了Q回到acegi才发现acegi的配|文件中是可以随意配|autheticationfilter的,自己写一个autheticationfilterQ配|进去,不用pȝ的,解决问题Qfilter里边怎么写都没问题,爱怎么处理怎么处理Q呵?/span>



dreamstone 2008-09-19 21:29 发表评论
]]>
apache Ant中文手册 2.0?(教程)http://www.qpkxbc.shop/dreamstone/archive/2008/01/25/177827.htmldreamstonedreamstoneFri, 25 Jan 2008 10:36:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2008/01/25/177827.htmlhttp://www.qpkxbc.shop/dreamstone/comments/177827.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2008/01/25/177827.html#Feedback109http://www.qpkxbc.shop/dreamstone/comments/commentRss/177827.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/177827.html阅读全文

dreamstone 2008-01-25 18:36 发表评论
]]>
javascript 兌列表的实?单的和复杂的)http://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144114.htmldreamstonedreamstoneFri, 14 Sep 2007 01:39:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144114.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144114.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144114.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/144114.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144114.html阅读全文

dreamstone 2007-09-14 09:39 发表评论
]]>
javascript 动态添加删除控?/title><link>http://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144111.html</link><dc:creator>dreamstone</dc:creator><author>dreamstone</author><pubDate>Fri, 14 Sep 2007 01:39:00 GMT</pubDate><guid>http://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144111.html</guid><wfw:comment>http://www.qpkxbc.shop/dreamstone/comments/144111.html</wfw:comment><comments>http://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144111.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/dreamstone/comments/commentRss/144111.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/dreamstone/services/trackbacks/144111.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><!</span><span style="color: #000000">DOCTYPE HTML PUBLIC </span><span style="color: #000000">"</span><span style="color: #000000">-//W3C//DTD HTML 4.0 Transitional//EN</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">HTML</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">HEAD</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">TITLE</span><span style="color: #000000">></span><span style="color: #000000"> New Document </span><span style="color: #000000"></</span><span style="color: #000000">TITLE</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">META NAME</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">Generator</span><span style="color: #000000">"</span><span style="color: #000000"> CONTENT</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">EditPlus</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">META NAME</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">Author</span><span style="color: #000000">"</span><span style="color: #000000"> CONTENT</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">META NAME</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">Keywords</span><span style="color: #000000">"</span><span style="color: #000000"> CONTENT</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">META NAME</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">Description</span><span style="color: #000000">"</span><span style="color: #000000"> CONTENT</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">HEAD</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">BODY</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">script language</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">javascript</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">var</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">,j </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">;     </span><span style="color: #008000">//</span><span style="color: #008000">行号与列?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">var</span><span style="color: #000000"> oNewRow  ;    </span><span style="color: #008000">//</span><span style="color: #008000">定义插入行对?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">var</span><span style="color: #000000"> oNewCell1,oNewCell2;     </span><span style="color: #008000">//</span><span style="color: #008000">定义插入列对?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">d条g?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">function</span><span style="color: #000000"> AddRow()<br /> <img id="Codehighlighter1_423_862_Open_Image" onclick="this.style.display='none'; Codehighlighter1_423_862_Open_Text.style.display='none'; Codehighlighter1_423_862_Closed_Image.style.display='inline'; Codehighlighter1_423_862_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_423_862_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_423_862_Closed_Text.style.display='none'; Codehighlighter1_423_862_Open_Image.style.display='inline'; Codehighlighter1_423_862_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_423_862_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_423_862_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />i </span><span style="color: #000000">=</span><span style="color: #000000"> document.all.MyTable.rows.length;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />oNewRow </span><span style="color: #000000">=</span><span style="color: #000000"> document.all.MyTable.insertRow(i);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />oNewRow.id </span><span style="color: #000000">=</span><span style="color: #000000"> j;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">dW一?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">oNewCell1 </span><span style="color: #000000">=</span><span style="color: #000000"> document.all.MyTable.rows[i].insertCell(</span><span style="color: #000000">0</span><span style="color: #000000">)<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />oNewCell1.innerHTML </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"><input type='text' id='Value</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> j </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">'</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000"> size='14' value=\</span><span style="color: #000000">"</span><span style="color: #000000">\</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">dW二?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">oNewCell2 </span><span style="color: #000000">=</span><span style="color: #000000"> document.all.MyTable.rows[i].insertCell(</span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />oNewCell2.innerHTML </span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000"><input type=button name=Del</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> j </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"> value='删除当前?</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">onClick='DelCurrentRow(</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> j </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">);'></span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />j</span><span style="color: #000000">++</span><span style="color: #000000">;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">删除?/span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">function</span><span style="color: #000000"> DelCurrentRow(j)<br /> <img id="Codehighlighter1_897_1005_Open_Image" onclick="this.style.display='none'; Codehighlighter1_897_1005_Open_Text.style.display='none'; Codehighlighter1_897_1005_Closed_Image.style.display='inline'; Codehighlighter1_897_1005_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_897_1005_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_897_1005_Closed_Text.style.display='none'; Codehighlighter1_897_1005_Open_Image.style.display='inline'; Codehighlighter1_897_1005_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_897_1005_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_897_1005_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">with</span><span style="color: #000000">(document.all.MyTable)<br /> <img id="Codehighlighter1_926_1003_Open_Image" onclick="this.style.display='none'; Codehighlighter1_926_1003_Open_Text.style.display='none'; Codehighlighter1_926_1003_Closed_Image.style.display='inline'; Codehighlighter1_926_1003_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_926_1003_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_926_1003_Closed_Text.style.display='none'; Codehighlighter1_926_1003_Open_Image.style.display='inline'; Codehighlighter1_926_1003_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_926_1003_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_926_1003_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">var</span><span style="color: #000000"> i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;i</span><span style="color: #000000"><</span><span style="color: #000000">rows.length;i</span><span style="color: #000000">++</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_960_1001_Open_Image" onclick="this.style.display='none'; Codehighlighter1_960_1001_Open_Text.style.display='none'; Codehighlighter1_960_1001_Closed_Image.style.display='inline'; Codehighlighter1_960_1001_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_960_1001_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_960_1001_Closed_Text.style.display='none'; Codehighlighter1_960_1001_Open_Image.style.display='inline'; Codehighlighter1_960_1001_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_960_1001_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_960_1001_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000"> (rows[i].id </span><span style="color: #000000">==</span><span style="color: #000000"> j)<br /> <img id="Codehighlighter1_983_999_Open_Image" onclick="this.style.display='none'; Codehighlighter1_983_999_Open_Text.style.display='none'; Codehighlighter1_983_999_Closed_Image.style.display='inline'; Codehighlighter1_983_999_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_983_999_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_983_999_Closed_Text.style.display='none'; Codehighlighter1_983_999_Open_Image.style.display='inline'; Codehighlighter1_983_999_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_983_999_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_983_999_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />deleteRow(i);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">script</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">form method</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">post</span><span style="color: #000000">"</span><span style="color: #000000"> action</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">div style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">margin-left:80px;color:red;font-weight:bold;</span><span style="color: #000000">"</span><span style="color: #000000">></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">div align</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">center</span><span style="color: #000000">"</span><span style="color: #000000"> class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">title-font</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />动态添加HTML元素<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">br</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">table style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">border:0px;</span><span style="color: #000000">"</span><span style="color: #000000"> cellpadding</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000"> cellspacing</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />     align</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">center</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">tr</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">td style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">border:0px;</span><span style="color: #000000">"</span><span style="color: #000000"> width</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">340</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">hr</span><span style="color: #000000">></</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">td style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">border:0px;</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">input type</span><span style="color: #000000">=</span><span style="color: #000000">button value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">d</span><span style="color: #000000">"</span><span style="color: #000000"> name</span><span style="color: #000000">"</span><span style="color: #000000">addFieldBT</span><span style="color: #000000">"</span><span style="color: #000000"> onclick</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">AddRow();</span><span style="color: #000000">"</span><span style="color: #000000">/></</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">tr</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">table</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">br</span><span style="color: #000000">><</span><span style="color: #000000">br</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">table style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">border:0px;</span><span style="color: #000000">"</span><span style="color: #000000"> cellpadding</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000"> cellspacing</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />   align</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">center</span><span style="color: #000000">"</span><span style="color: #000000"> class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">TableBody</span><span style="color: #000000">"</span><span style="color: #000000"> id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">MyTable</span><span style="color: #000000">"</span><span style="color: #000000"> border</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">0</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">table</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">br</span><span style="color: #000000">><</span><span style="color: #000000">br</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">table style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">border:0px;</span><span style="color: #000000">"</span><span style="color: #000000"> cellpadding</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000"> cellspacing</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />   align</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">center</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"><</span><span style="color: #000000">tr</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"><</span><span style="color: #000000">td align</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">center</span><span style="color: #000000">"</span><span style="color: #000000"> style</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">border:0px;</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"><</span><span style="color: #000000">input type</span><span style="color: #000000">=</span><span style="color: #000000">button value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">提交</span><span style="color: #000000">"</span><span style="color: #000000"> name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">searchBT</span><span style="color: #000000">"</span><span style="color: #000000"> onclick</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />   </span><span style="color: #000000"></</span><span style="color: #000000">td</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #000000"></</span><span style="color: #000000">tr</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">table</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">script language</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">javascript</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000">AddRow()</span><span style="color: #000000"></</span><span style="color: #000000">script</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">form</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">BODY</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">HTML</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://www.qpkxbc.shop/dreamstone/aggbug/144111.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/dreamstone/" target="_blank">dreamstone</a> 2007-09-14 09:39 <a href="http://www.qpkxbc.shop/dreamstone/archive/2007/09/14/144111.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>最单的ajax实现http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144107.htmldreamstonedreamstoneMon, 10 Sep 2007 15:00:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144107.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144107.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144107.html#Feedback2http://www.qpkxbc.shop/dreamstone/comments/commentRss/144107.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144107.html<script type="text/javascript" language="javascript">

    
var http_request = false;

    
function makeRequest(url) {

        http_request 
= false;

        
if (window.XMLHttpRequest) // Mozilla, Safari,
            http_request = new XMLHttpRequest();
            
if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text
/xml');
            }

        }
 else if (window.ActiveXObject) // IE
            try {
                http_request 
= new ActiveXObject("Msxml2.XMLHTTP");
            }
 catch (e) {
                
try {
                    http_request 
= new ActiveXObject("Microsoft.XMLHTTP");
                }
 catch (e) {}
            }

        }


        
if (!http_request) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            
return false;
        }

        http_request.onreadystatechange 
= alertContents;
        http_request.open('GET', url, 
true);
        http_request.send(
null);

    }


    
function alertContents() {

        
if (http_request.readyState == 4{
            
if (http_request.status == 200{
                alert(http_request.responseText);
            }
 else {
                alert('There was a problem 
with the request.');
            }

        }


    }

</script>
<span
    style
="cursor: pointer; text-decoration: underline"
    onclick
="makeRequest('test.html')">
        Make a request
</span>


dreamstone 2007-09-10 23:00 发表评论
]]>
javascript两种渐变效果q度条的实现http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144105.htmldreamstonedreamstoneMon, 10 Sep 2007 14:58:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144105.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144105.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144105.html#Feedback2http://www.qpkxbc.shop/dreamstone/comments/commentRss/144105.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144105.html阅读全文

dreamstone 2007-09-10 22:58 发表评论
]]>
vb script实现杀掉进E?/title><link>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144104.html</link><dc:creator>dreamstone</dc:creator><author>dreamstone</author><pubDate>Mon, 10 Sep 2007 14:54:00 GMT</pubDate><guid>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144104.html</guid><wfw:comment>http://www.qpkxbc.shop/dreamstone/comments/144104.html</wfw:comment><comments>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144104.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/dreamstone/comments/commentRss/144104.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/dreamstone/services/trackbacks/144104.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #008000">'</span><span style="color: #008000"> ProcessKillLocal.vbs</span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />'</span><span style="color: #008000"> Sample VBScript to kill a program</span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />'</span><span style="color: #008000"> Author Guy Thomas http://computerperformance.co.uk/</span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />'</span><span style="color: #008000"> Version 2.7 - December 2005</span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />'</span><span style="color: #008000"> ------------------------ -------------------------------' </span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Option</span><span style="color: #000000"> </span><span style="color: #0000ff">Explicit</span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Dim</span><span style="color: #000000"> objWMIService, objProcess, colProcess<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Dim</span><span style="color: #000000"> strComputer, strProcessKill <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />strComputer </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">.</span><span style="color: #000000">"</span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />strProcessKill </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">'otrun.exe'</span><span style="color: #000000">"</span><span style="color: #000000"> <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Set</span><span style="color: #000000"> objWMIService </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">GetObject</span><span style="color: #000000">(</span><span style="color: #000000">"</span><span style="color: #000000">winmgmts:</span><span style="color: #000000">"</span><span style="color: #000000"> _<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">&</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">{impersonationLevel=impersonate}!\\</span><span style="color: #000000">"</span><span style="color: #000000"> _ <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">&</span><span style="color: #000000"> strComputer </span><span style="color: #000000">&</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">\root\cimv2</span><span style="color: #000000">"</span><span style="color: #000000">) <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Set</span><span style="color: #000000"> colProcess </span><span style="color: #000000">=</span><span style="color: #000000"> objWMIService.ExecQuery _<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />(</span><span style="color: #000000">"</span><span style="color: #000000">Select * from Win32_Process Where Name = </span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">&</span><span style="color: #000000"> strProcessKill )<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">For</span><span style="color: #000000"> </span><span style="color: #0000ff">Each</span><span style="color: #000000"> objProcess in colProcess<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />objProcess.Terminate()<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Next</span><span style="color: #000000"> <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />WSCript.Echo </span><span style="color: #000000">"</span><span style="color: #000000">Just killed process </span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">&</span><span style="color: #000000"> strProcessKill _<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">&</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"> on </span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">&</span><span style="color: #000000"> strComputer<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />WScript.Quit <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #008000">'</span><span style="color: #008000"> End of WMI Example of a Kill Process </span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://www.qpkxbc.shop/dreamstone/aggbug/144104.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 22:54 <a href="http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144104.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript 止输入、禁止粘帖、禁止拖放、禁止输入法http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144103.htmldreamstonedreamstoneMon, 10 Sep 2007 14:50:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144103.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144103.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144103.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/144103.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144103.html function regInput(str){  
 reg=/^[a-z]*$/;
 return reg.test(str)
}
</script>
<input type="text"
 onkeypress = "return regInput(String.fromCharCode(event.keyCode))"
 onpaste = "return regInput(window.clipboardData.getData('Text'))"
 ondrop = "return regInput(event.dataTransfer.getData('Text'))"
 style="ime-mode:Disabled"><br>
<input type="text"><br><br>

另外如果要兼容ie ,firefox netscapt三个览器,׃能用onkeypress事g?br /> 而应该把onkeypress事g变成 onkeydown事g+onkeyup事g?br /> 再keydown事g中检查,q设|标志位Q在onkeyup事g中返回,cMq样
script language="javascript">
 var tag;
    function kd(evt) {
  alert(evt.keyCode);
  if (evt.keyCode >= 48 && evt.keyCode <= 57) {
   tag=true; 
   return;
  }else{
   if (evt.keyCode==8){
    tag=true;
    return;
   }
  }
  tag=false;
 }
 function kp(){
  return tag;
 }
</script>
至于Z么这P自己试一下不q样的结果吧

dreamstone 2007-09-10 22:50 发表评论
]]>
javascript 格式化数?/title><link>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144096.html</link><dc:creator>dreamstone</dc:creator><author>dreamstone</author><pubDate>Mon, 10 Sep 2007 14:02:00 GMT</pubDate><guid>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144096.html</guid><wfw:comment>http://www.qpkxbc.shop/dreamstone/comments/144096.html</wfw:comment><comments>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144096.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/dreamstone/comments/commentRss/144096.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/dreamstone/services/trackbacks/144096.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">script</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_47_2660_Open_Image" onclick="this.style.display='none'; Codehighlighter1_47_2660_Open_Text.style.display='none'; Codehighlighter1_47_2660_Closed_Image.style.display='inline'; Codehighlighter1_47_2660_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_47_2660_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_47_2660_Closed_Text.style.display='none'; Codehighlighter1_47_2660_Open_Image.style.display='inline'; Codehighlighter1_47_2660_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">function</span><span style="color: #000000"> formatNumber(number,pattern)</span><span id="Codehighlighter1_47_2660_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_47_2660_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> str            </span><span style="color: #000000">=</span><span style="color: #000000"> number.toString();<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> strInt;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> strFloat;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> formatInt;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> formatFloat;<br /> <img id="Codehighlighter1_195_303_Open_Image" onclick="this.style.display='none'; Codehighlighter1_195_303_Open_Text.style.display='none'; Codehighlighter1_195_303_Closed_Image.style.display='inline'; Codehighlighter1_195_303_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_195_303_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_195_303_Closed_Text.style.display='none'; Codehighlighter1_195_303_Open_Image.style.display='inline'; Codehighlighter1_195_303_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">/</span><span style="color: #000000">\.</span><span style="color: #000000">/</span><span style="color: #000000">g.test(pattern))</span><span id="Codehighlighter1_195_303_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_195_303_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        formatInt        </span><span style="color: #000000">=</span><span style="color: #000000"> pattern.split('.')[</span><span style="color: #000000">0</span><span style="color: #000000">];<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        formatFloat        </span><span style="color: #000000">=</span><span style="color: #000000"> pattern.split('.')[</span><span style="color: #000000">1</span><span style="color: #000000">];<br /> <img id="Codehighlighter1_308_385_Open_Image" onclick="this.style.display='none'; Codehighlighter1_308_385_Open_Text.style.display='none'; Codehighlighter1_308_385_Closed_Image.style.display='inline'; Codehighlighter1_308_385_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_308_385_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_308_385_Closed_Text.style.display='none'; Codehighlighter1_308_385_Open_Image.style.display='inline'; Codehighlighter1_308_385_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_308_385_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_308_385_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        formatInt        </span><span style="color: #000000">=</span><span style="color: #000000"> pattern;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        formatFloat        </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_412_918_Open_Image" onclick="this.style.display='none'; Codehighlighter1_412_918_Open_Text.style.display='none'; Codehighlighter1_412_918_Closed_Image.style.display='inline'; Codehighlighter1_412_918_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_412_918_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_412_918_Closed_Text.style.display='none'; Codehighlighter1_412_918_Open_Image.style.display='inline'; Codehighlighter1_412_918_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">/</span><span style="color: #000000">\.</span><span style="color: #000000">/</span><span style="color: #000000">g.test(str))</span><span id="Codehighlighter1_412_918_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_412_918_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_443_807_Open_Image" onclick="this.style.display='none'; Codehighlighter1_443_807_Open_Text.style.display='none'; Codehighlighter1_443_807_Closed_Image.style.display='inline'; Codehighlighter1_443_807_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_443_807_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_443_807_Closed_Text.style.display='none'; Codehighlighter1_443_807_Open_Image.style.display='inline'; Codehighlighter1_443_807_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(formatFloat</span><span style="color: #000000">!=</span><span style="color: #0000ff">null</span><span style="color: #000000">)</span><span id="Codehighlighter1_443_807_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_443_807_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">var</span><span style="color: #000000"> tempFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> Math.round(parseFloat('</span><span style="color: #000000">0</span><span style="color: #000000">.'</span><span style="color: #000000">+</span><span style="color: #000000">str.split('.')[</span><span style="color: #000000">1</span><span style="color: #000000">])</span><span style="color: #000000">*</span><span style="color: #000000">Math.pow(</span><span style="color: #000000">10</span><span style="color: #000000">,formatFloat.length))</span><span style="color: #000000">/</span><span style="color: #000000">Math.pow(</span><span style="color: #000000">10</span><span style="color: #000000">,formatFloat.length);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            strInt        </span><span style="color: #000000">=</span><span style="color: #000000"> (Math.floor(number)</span><span style="color: #000000">+</span><span style="color: #000000">Math.floor(tempFloat)).toString();                <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            strFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">/</span><span style="color: #000000">\.</span><span style="color: #000000">/</span><span style="color: #000000">g.test(tempFloat.toString())</span><span style="color: #000000">?</span><span style="color: #000000">tempFloat.toString().split('.')[</span><span style="color: #000000">1</span><span style="color: #000000">]:'</span><span style="color: #000000">0</span><span style="color: #000000">';            <br /> <img id="Codehighlighter1_812_912_Open_Image" onclick="this.style.display='none'; Codehighlighter1_812_912_Open_Text.style.display='none'; Codehighlighter1_812_912_Closed_Image.style.display='inline'; Codehighlighter1_812_912_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_812_912_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_812_912_Closed_Text.style.display='none'; Codehighlighter1_812_912_Open_Image.style.display='inline'; Codehighlighter1_812_912_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_812_912_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_812_912_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            strInt        </span><span style="color: #000000">=</span><span style="color: #000000"> Math.round(number).toString();<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            strFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000">0</span><span style="color: #000000">';<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_923_985_Open_Image" onclick="this.style.display='none'; Codehighlighter1_923_985_Open_Text.style.display='none'; Codehighlighter1_923_985_Closed_Image.style.display='inline'; Codehighlighter1_923_985_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_923_985_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_923_985_Closed_Text.style.display='none'; Codehighlighter1_923_985_Open_Image.style.display='inline'; Codehighlighter1_923_985_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_923_985_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_923_985_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        strInt        </span><span style="color: #000000">=</span><span style="color: #000000"> str;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        strFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000">0</span><span style="color: #000000">';<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_1010_1821_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1010_1821_Open_Text.style.display='none'; Codehighlighter1_1010_1821_Closed_Image.style.display='inline'; Codehighlighter1_1010_1821_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1010_1821_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1010_1821_Closed_Text.style.display='none'; Codehighlighter1_1010_1821_Open_Image.style.display='inline'; Codehighlighter1_1010_1821_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000">(formatInt</span><span style="color: #000000">!=</span><span style="color: #0000ff">null</span><span style="color: #000000">)</span><span id="Codehighlighter1_1010_1821_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1010_1821_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> outputInt    </span><span style="color: #000000">=</span><span style="color: #000000"> '';<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> zero        </span><span style="color: #000000">=</span><span style="color: #000000"> formatInt.match(</span><span style="color: #000000">/</span><span style="color: #000000">0</span><span style="color: #000000">*</span><span style="color: #000000">$</span><span style="color: #000000">/</span><span style="color: #000000">)[</span><span style="color: #000000">0</span><span style="color: #000000">].length;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> comma        </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img id="Codehighlighter1_1168_1244_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1168_1244_Open_Text.style.display='none'; Codehighlighter1_1168_1244_Closed_Image.style.display='inline'; Codehighlighter1_1168_1244_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1168_1244_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1168_1244_Closed_Text.style.display='none'; Codehighlighter1_1168_1244_Open_Image.style.display='inline'; Codehighlighter1_1168_1244_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">/</span><span style="color: #000000">,</span><span style="color: #000000">/</span><span style="color: #000000">g.test(formatInt))</span><span id="Codehighlighter1_1168_1244_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1168_1244_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            comma        </span><span style="color: #000000">=</span><span style="color: #000000"> formatInt.match(</span><span style="color: #000000">/</span><span style="color: #000000">,[</span><span style="color: #000000">^</span><span style="color: #000000">,]</span><span style="color: #000000">*/</span><span style="color: #000000">)[</span><span style="color: #000000">0</span><span style="color: #000000">].length</span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000">;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_1292_1302_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1292_1302_Open_Text.style.display='none'; Codehighlighter1_1292_1302_Closed_Image.style.display='inline'; Codehighlighter1_1292_1302_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1292_1302_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1292_1302_Closed_Text.style.display='none'; Codehighlighter1_1292_1302_Open_Image.style.display='inline'; Codehighlighter1_1292_1302_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> newReg        </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> RegExp('(\\d</span><span id="Codehighlighter1_1292_1302_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1292_1302_Open_Text"><span style="color: #000000">{'</span><span style="color: #000000">+</span><span style="color: #000000">comma</span><span style="color: #000000">+</span><span style="color: #000000">'}</span></span><span style="color: #000000">)','g');<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_1343_1496_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1343_1496_Open_Text.style.display='none'; Codehighlighter1_1343_1496_Closed_Image.style.display='inline'; Codehighlighter1_1343_1496_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1343_1496_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1343_1496_Closed_Text.style.display='none'; Codehighlighter1_1343_1496_Open_Image.style.display='inline'; Codehighlighter1_1343_1496_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(strInt.length</span><span style="color: #000000"><</span><span style="color: #000000">zero)</span><span id="Codehighlighter1_1343_1496_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1343_1496_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputInt        </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Array(zero</span><span style="color: #000000">+</span><span style="color: #000000">1</span><span style="color: #000000">).join('</span><span style="color: #000000">0</span><span style="color: #000000">')</span><span style="color: #000000">+</span><span style="color: #000000">strInt;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputInt        </span><span style="color: #000000">=</span><span style="color: #000000"> outputInt.substr(outputInt.length</span><span style="color: #000000">-</span><span style="color: #000000">zero,zero)<br /> <img id="Codehighlighter1_1501_1550_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1501_1550_Open_Text.style.display='none'; Codehighlighter1_1501_1550_Closed_Image.style.display='inline'; Codehighlighter1_1501_1550_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1501_1550_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1501_1550_Closed_Text.style.display='none'; Codehighlighter1_1501_1550_Open_Image.style.display='inline'; Codehighlighter1_1501_1550_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_1501_1550_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1501_1550_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputInt        </span><span style="color: #000000">=</span><span style="color: #000000"> strInt;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> <br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        outputInt            </span><span style="color: #000000">=</span><span style="color: #000000"> outputInt.substr(</span><span style="color: #000000">0</span><span style="color: #000000">,outputInt.length</span><span style="color: #000000">%</span><span style="color: #000000">comma)</span><span style="color: #000000">+</span><span style="color: #000000">outputInt.substring(outputInt.length</span><span style="color: #000000">%</span><span style="color: #000000">comma).replace(newReg,(comma</span><span style="color: #000000">!=</span><span style="color: #0000ff">null</span><span style="color: #000000">?</span><span style="color: #000000">',':'')</span><span style="color: #000000">+</span><span style="color: #000000">'$</span><span style="color: #000000">1</span><span style="color: #000000">')<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        outputInt            </span><span style="color: #000000">=</span><span style="color: #000000"> outputInt.replace(</span><span style="color: #000000">/^</span><span style="color: #000000">,</span><span style="color: #000000">/</span><span style="color: #000000">,'');<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        strInt    </span><span style="color: #000000">=</span><span style="color: #000000"> outputInt;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_1849_2497_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1849_2497_Open_Text.style.display='none'; Codehighlighter1_1849_2497_Closed_Image.style.display='inline'; Codehighlighter1_1849_2497_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1849_2497_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1849_2497_Closed_Text.style.display='none'; Codehighlighter1_1849_2497_Open_Image.style.display='inline'; Codehighlighter1_1849_2497_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000">(formatFloat</span><span style="color: #000000">!=</span><span style="color: #0000ff">null</span><span style="color: #000000">)</span><span id="Codehighlighter1_1849_2497_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1849_2497_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> outputFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> '';<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> zero        </span><span style="color: #000000">=</span><span style="color: #000000"> formatFloat.match(</span><span style="color: #000000">/^</span><span style="color: #000000">0</span><span style="color: #000000">*/</span><span style="color: #000000">)[</span><span style="color: #000000">0</span><span style="color: #000000">].length;<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_1979_2365_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1979_2365_Open_Text.style.display='none'; Codehighlighter1_1979_2365_Closed_Image.style.display='inline'; Codehighlighter1_1979_2365_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1979_2365_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1979_2365_Closed_Text.style.display='none'; Codehighlighter1_1979_2365_Open_Image.style.display='inline'; Codehighlighter1_1979_2365_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(strFloat.length</span><span style="color: #000000"><</span><span style="color: #000000">zero)</span><span id="Codehighlighter1_1979_2365_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1979_2365_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputFloat        </span><span style="color: #000000">=</span><span style="color: #000000"> strFloat</span><span style="color: #000000">+</span><span style="color: #0000ff">new</span><span style="color: #000000"> Array(zero</span><span style="color: #000000">+</span><span style="color: #000000">1</span><span style="color: #000000">).join('</span><span style="color: #000000">0</span><span style="color: #000000">');<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000">outputFloat        = outputFloat.substring(0,formatFloat.length);</span><span style="color: #008000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            </span><span style="color: #0000ff">var</span><span style="color: #000000"> outputFloat1    </span><span style="color: #000000">=</span><span style="color: #000000"> outputFloat.substring(</span><span style="color: #000000">0</span><span style="color: #000000">,zero);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">var</span><span style="color: #000000"> outputFloat2    </span><span style="color: #000000">=</span><span style="color: #000000"> outputFloat.substring(zero,formatFloat.length);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputFloat        </span><span style="color: #000000">=</span><span style="color: #000000"> outputFloat1</span><span style="color: #000000">+</span><span style="color: #000000">outputFloat2.replace(</span><span style="color: #000000">/</span><span style="color: #000000">0</span><span style="color: #000000">*</span><span style="color: #000000">$</span><span style="color: #000000">/</span><span style="color: #000000">,'');<br /> <img id="Codehighlighter1_2370_2455_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2370_2455_Open_Text.style.display='none'; Codehighlighter1_2370_2455_Closed_Image.style.display='inline'; Codehighlighter1_2370_2455_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_2370_2455_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2370_2455_Closed_Text.style.display='none'; Codehighlighter1_2370_2455_Open_Image.style.display='inline'; Codehighlighter1_2370_2455_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_2370_2455_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2370_2455_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputFloat        </span><span style="color: #000000">=</span><span style="color: #000000"> strFloat.substring(</span><span style="color: #000000">0</span><span style="color: #000000">,formatFloat.length);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        strFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> outputFloat;<br /> <img id="Codehighlighter1_2502_2607_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2502_2607_Open_Text.style.display='none'; Codehighlighter1_2502_2607_Closed_Image.style.display='inline'; Codehighlighter1_2502_2607_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_2502_2607_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2502_2607_Closed_Text.style.display='none'; Codehighlighter1_2502_2607_Open_Image.style.display='inline'; Codehighlighter1_2502_2607_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_2502_2607_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2502_2607_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_2561_2601_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2561_2601_Open_Text.style.display='none'; Codehighlighter1_2561_2601_Closed_Image.style.display='inline'; Codehighlighter1_2561_2601_Closed_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_2561_2601_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2561_2601_Closed_Text.style.display='none'; Codehighlighter1_2561_2601_Open_Image.style.display='inline'; Codehighlighter1_2561_2601_Open_Text.style.display='inline';" src="http://www.qpkxbc.shop/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(pattern</span><span style="color: #000000">!=</span><span style="color: #000000">'' </span><span style="color: #000000">||</span><span style="color: #000000"> (pattern</span><span style="color: #000000">==</span><span style="color: #000000">'' </span><span style="color: #000000">&&</span><span style="color: #000000"> strFloat</span><span style="color: #000000">==</span><span style="color: #000000">'</span><span style="color: #000000">0</span><span style="color: #000000">'))</span><span id="Codehighlighter1_2561_2601_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.qpkxbc.shop/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2561_2601_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            strFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> '';<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">return</span><span style="color: #000000"> strInt</span><span style="color: #000000">+</span><span style="color: #000000">(strFloat</span><span style="color: #000000">==</span><span style="color: #000000">''</span><span style="color: #000000">?</span><span style="color: #000000">'':'.'</span><span style="color: #000000">+</span><span style="color: #000000">strFloat);<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber(</span><span style="color: #000000">0</span><span style="color: #000000">,''));<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber(</span><span style="color: #000000">12432.21</span><span style="color: #000000">,'#,###'));<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber(</span><span style="color: #000000">12432.21</span><span style="color: #000000">,'#,###.</span><span style="color: #000000">000</span><span style="color: #000000">#'));<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber(</span><span style="color: #000000">12432</span><span style="color: #000000">,'#,###.</span><span style="color: #000000">00</span><span style="color: #000000">'));<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber('</span><span style="color: #000000">12432.415</span><span style="color: #000000">','#,###.</span><span style="color: #000000">0</span><span style="color: #000000">#'));<br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">script</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.qpkxbc.shop/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://www.qpkxbc.shop/dreamstone/aggbug/144096.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 22:02 <a href="http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144096.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用vbscript来重写javascripthttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144018.htmldreamstonedreamstoneMon, 10 Sep 2007 07:45:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144018.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144018.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144018.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/144018.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144018.html 可以试用vbscript来重写javascriptQ虽然这U方法也有很多弊端?br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script  language=javascript>
    
function msg(){            
          execScript(
"n=msgbox('是否保存',4,'自定的的confirm')","vbscript");   
          alert(n);
          
return(n == 1);      
  }
   
</script>
<BODY>
    
<input type="button" onclick="msg()" value="click" />
</BODY>
</HTML>


dreamstone 2007-09-10 15:45 发表评论
]]>
eclipse 3.4 m1发布?/title><link>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144015.html</link><dc:creator>dreamstone</dc:creator><author>dreamstone</author><pubDate>Mon, 10 Sep 2007 07:42:00 GMT</pubDate><guid>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144015.html</guid><wfw:comment>http://www.qpkxbc.shop/dreamstone/comments/144015.html</wfw:comment><comments>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144015.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/dreamstone/comments/commentRss/144015.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/dreamstone/services/trackbacks/144015.html</trackback:ping><description><![CDATA[http://download.eclipse.org/eclipse/downloads/drops/S-3.4M1-200708091105/index.php <img src ="http://www.qpkxbc.shop/dreamstone/aggbug/144015.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 15:42 <a href="http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144015.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>js转换中把10q制数字转换?6q制http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144014.htmldreamstonedreamstoneMon, 10 Sep 2007 07:40:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144014.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144014.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144014.html#Feedback2http://www.qpkxbc.shop/dreamstone/comments/commentRss/144014.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144014.html  
var x = 33;
 
alert(x.toString(16));
 
</script>

dreamstone 2007-09-10 15:40 发表评论
]]>
javascript中的各种输入限制http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144013.htmldreamstonedreamstoneMon, 10 Sep 2007 07:37:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144013.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144013.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144013.html#Feedback1http://www.qpkxbc.shop/dreamstone/comments/commentRss/144013.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144013.html1.文本框输入限?

֮现限制输入大、小写英文,数字QQ点小敎ͼ日期Q中文,部分英文Q部分中文等众多功能。直接加入到html代码中即可用?/p>

<script>
function regInput(obj, reg, inputStr)
{
var docSel = documentQselection.createRange()
if (docSel.parentElement().tagName != "INPUT") return false
oSel = docSel.duplicate()
oSel.text = ""
var srcRange = obj.createTextRange()
oSel.setEndPoint("StartToStart", srcRange)
var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
return reg.test(str)
}
</script>

写英文Q?lt;xmp style= "display:inline"> </xmp>
<input onkeypress = "return regInput(this, /^[a-z]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[a-z]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[a-z]*$/, event.dataTransfer.getData('Text'))"
style="ime-mode:Disabled"><br>

大写英文Q?lt;xmp style= "display:inline"> </xmp>
<input onkeypress = "return regInput(this, /^[A-Z]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[A-Z]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[A-Z]*$/, event.dataTransfer.getData('Text'))"
style="ime-mode:Disabled">
<br>

L数字Q?lt;xmp style="display:inline"> </xmp>
<input onkeypress = "return regInput(this, /^[0-9]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))"
style="ime-mode:Disabled"><br>

?位小敎ͼ<xmp style="display:inline"> </xmp>
<input onkeypress = "return regInput(this, /^\d*\.?\d{0,2}$/,
String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^\d*\.?\d{0,2}$/,
window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^\d*\.?\d{0,2}$/,
event.dataTransfer.getData('Text'))"
style="ime-mode:Disabled">

? 123.12<br>

日  期:<xmp style="display:inline"> </xmp>

<input onkeypress = "return regInput(this, /^\d{1,4}
([-\/](\d{1,2}([-\/](\d{1,2})?)?)?)?$/,
String.fromCharCode(event.keyCode))"

onpaste = "return regInput(this, /^\d{1,4}([-\/](\d{1,2}
([-\/](\d{1,2})?)?)?)?$/,
window.clipboardData.getData('Text'))"

ondrop = "return regInput(this, /^\d{1,4}([-\/](\d{1,2}
([-\/](\d{1,2})?)?)?)?$/,
event.dataTransfer.getData('Text'))"

style="ime-mode:Disabled">

? 2002-9-29<br>

L中文Q?lt;xmp style="display:inline"> </xmp>

<input onkeypress = "return regInput(this, /^$/,
String.fromCharCode(event.keyCode))"

onpaste = "return regInput(this, /^[\u4E00-\u9FA5]*$/,
window.clipboardData.getData('Text'))"

ondrop = "return regInput(this, /^[\u4E00-\u9FA5]*$/,
event.dataTransfer.getData('Text'))"><br>

部分英文Q?lt;xmp style="display:inline"> </xmp>
<input onkeypress = "return regInput(this, /^[a-e]*$/,
String.fromCharCode(event.keyCode))"

onpaste = "return regInput(this, /^[a-e]*$/,
window.clipboardData.getData('Text'))"

ondrop = "return regInput(this, /^[a-e]*$/,
event.dataTransfer.getData('Text'))"

style="ime-mode:Disabled">

范围: a,b,c,d,e<br>

部分中文Q?lt;xmp style="display:inline"> </xmp>
<script language=javascript>

function checkChinese(oldLength, obj)
{
var oTR = window.documentQselection.createRange()
var reg = /[^一二三四五六七八九十]/g
oTR.moveStart("character", -1*(obj.value.length-oldLength))
oTR.text = oTR.text.replace(reg, "")
}
</script>

<input onkeypress="return false" onkeydown=
"setTimeout('checkChinese('+this.value.length+','+this.uniqueID+')',
1)"

onpaste = "return regInput(this, /^[一二三四五六七八九十]*$/,
window.clipboardData.getData('Text'))"

ondrop = "return regInput(this, /^[一二三四五六七八九十]*$/,
event.dataTransfer.getData('Text'))">

范围: 一二三四五六七八九?lt;br>

2.不能展开右键Q不能全选,不能复制的实?

<body oncontextmenu="window.event.returnvalue=false"
onkeypress="window.event.returnvalue=false"
onkeydown="window.event.returnvalue=false"
onkeyup="window.event.returnvalue=false"
ondragstart="window.event.returnvalue=false"
onselectstart="event.returnvalue=false">
...
</body>

3.止面正文内容被选取

<body oncontextmenu="return false" ondragstart="return false"
onselectstart ="return false" onselect="documentQselection.empty()"
oncopy="documentQselection.empty()" onbeforecopy="return false"onmouseup="documentQselection.empty()">

4.避免别h把网|在框架中

<script language=“javascript”><!--if (self!=top){top.location=self.location;}-->< /script>

5.示查看源代?

<frameset>
<frame src="你要保密的文件的URL">
</frameset>

6.关闭输入?

<input style="ime-mode:disabled">

7.止囄下蝲

在这里的最后加入:

oncontextmenu="return false" ondragstart="return false" onselectstart="return
false" scroll="auto"

8.止~存

在HEAD里加入:

<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">



dreamstone 2007-09-10 15:37 发表评论
]]>
javascript中实现动态广告的Ҏhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144012.htmldreamstonedreamstoneMon, 10 Sep 2007 07:31:00 GMThttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144012.htmlhttp://www.qpkxbc.shop/dreamstone/comments/144012.htmlhttp://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144012.html#Feedback0http://www.qpkxbc.shop/dreamstone/comments/commentRss/144012.htmlhttp://www.qpkxbc.shop/dreamstone/services/trackbacks/144012.html阅读全文

dreamstone 2007-09-10 15:31 发表评论
]]>
js中实现table的插入、修攏V删?/title><link>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144008.html</link><dc:creator>dreamstone</dc:creator><author>dreamstone</author><pubDate>Mon, 10 Sep 2007 07:24:00 GMT</pubDate><guid>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144008.html</guid><wfw:comment>http://www.qpkxbc.shop/dreamstone/comments/144008.html</wfw:comment><comments>http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144008.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/dreamstone/comments/commentRss/144008.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/dreamstone/services/trackbacks/144008.html</trackback:ping><description><![CDATA[     摘要: q来工作慢慢q离web、远jsQ看着自己q些q来学习q程中写q的上百个的js demoQ感觉还是把它们发上来吧。虽然它们不够完善,但对于js初学者还是比较有用的。整理一下慢慢发上来Q算是留念吧? 好了Q第一从table开始吧 是上边是一个表Q下Ҏ一些录入控件text ,select 实现了:插入 Q删除,修改Q读取,验证cd唯一?每种cd只能输入一个记? 文中的内容直接存成h...  <a href='http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144008.html'>阅读全文</a><img src ="http://www.qpkxbc.shop/dreamstone/aggbug/144008.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 15:24 <a href="http://www.qpkxbc.shop/dreamstone/archive/2007/09/10/144008.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <a href="http://www.qpkxbc.shop/"><span class="STYLE1">1һ152ͼ</span></a> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <a href="http://1169769.cn">Dzͼ</a> <a href="http://www.bxhylq.icu">ʱʱ</a> <a href="http://www.jfcgfl.icu">pk10Ѽƻ</a> <a href="http://www.koizfa.icu">ʱʱֻ</a> <a href="http://www.dhqhns.icu">㶫ʱʱ</a> <a href="http://www.anhawr.icu"> pkͼ </a> <a href="http://www.vdhbud.icu">ͧһ׬5000ƻ</a> <a href="http://www.zbamwy.icu">pk10־ĵ</a> <a href="http://www.motmhj.icu">1ǧÿӮ100</a> <a href="http://4587898.cn">ֲapp</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>