??xml version="1.0" encoding="utf-8" standalone="yes"?>浙江快乐12:BlogJava - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/开发出高质量的系统zh-cnMon, 10 Dec 2018 13:33:46 GMTMon, 10 Dec 2018 13:33:46 GMT60做了个osworkflow的designer工具,模仿jbpm的样式。大家试用用 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2009/09/14/295047.htmldreamstonedreamstoneMon, 14 Sep 2009 10:01:00 GMT//www.ot7t.com.cn/dreamstone/archive/2009/09/14/295047.html//www.ot7t.com.cn/dreamstone/comments/295047.html//www.ot7t.com.cn/dreamstone/archive/2009/09/14/295047.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/295047.html//www.ot7t.com.cn/dreamstone/services/trackbacks/295047.html //www.ot7t.com.cn/Files/dreamstone/eclipse1.part1.rar
//www.ot7t.com.cn/Files/dreamstone/eclipse1.part2.rar
//www.ot7t.com.cn/Files/dreamstone/eclipse1.part3.rar
//www.ot7t.com.cn/Files/dreamstone/eclipse1.part4.rar
//www.ot7t.com.cn/Files/dreamstone/eclipse1.part5.rar
//www.ot7t.com.cn/Files/dreamstone/eclipse1.part6.rar

dreamstone 2009-09-14 18:01 发表评论
]]>
理解osworkflow 工作?/title><link>//www.ot7t.com.cn/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>//www.ot7t.com.cn/dreamstone/archive/2009/08/19/291755.html</guid><wfw:comment>//www.ot7t.com.cn/dreamstone/comments/291755.html</wfw:comment><comments>//www.ot7t.com.cn/dreamstone/archive/2009/08/19/291755.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/dreamstone/comments/commentRss/291755.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/dreamstone/services/trackbacks/291755.html</trackback:ping><description><![CDATA[<div class="ExternalClass9797756EA2854CA5AC8E4E7B0550C56D"> <p><font color="#ff0000">什么是工作流:</font><br /> 就是工作流程的计算模型,即将工作流程中的工作如何前后组织在一起的逻辑和规则在计算机中以恰当的模型进行表示并对其实施计算。工作流要解决的主要问题是:为实现某个业务目标,在多个参与者之间,利用计算机,按某种预定规则自动传递文?、信息或者任务?strong> </strong><br /> </p> <p><font color="#ff0000">工作流的应用场景?br /> </font><font color="#000000">soa中的时序编排,oa系统中的审批流转。大部分管理流程中都可以用到工作流?/font></p> <p><font color="#ff0000">工作流与业务的关?br /> </font><font color="#000000">一、业务集成到工作流中:一种常见的做法是把所有的业务集成到工作流中,如果有个业务就定义个function,然后放进去。例如要生成spcode?br /> 1、带来的好处?br /> 业务与工作流完全集成,只需要找到工作流配置文件,以他为主线就能找到所有的业务。让代码的阅读维护更方便?br /> 2、坏处:<br /> 并不是最好的理念,仍然需要一次次的读原来的代码,复用性差,可剥离性差(比如我不想用工作流了),替换性差(比如我想从osworkflow到jbpm),侵入性高。跟现在大家说的最多的soa冲突?br /> 3、适用环境<br /> 小项目开发,灵活,重写难度不?/font></p> <p>二、业务单独写,工作流后加入进?br /> 用非工作流的代码实现所有的业务,再用工作流编排<br /> 1、带来的好处?br /> 符合soa的原则,可以分组件,分服务,分应用,复用性好,一旦复用消耗小,并不需要了解内部代码?br /> 2、坏处:<br /> 初期消耗大,业务划分难度大,需要频繁调整?br /> 3、适用环境<br /> 越大型的项目越好,甚至可以在应用之间组织。在电子系统集成中最有用?br /> <font color="#ff0000"><br /> </font><font color="#ff0000">工作流引擎:</font><br /> 字面意思理解,工作流引擎就是工作流核心元素解决方案?br /> 那工作流的核心是什么呢?br /> 有权限的操作者触发流程在各种条件下的跳转?br /> 关键的是权限,条件,跳转?br /> 所以工作流引擎实现的就是:<br /> 根据角色、分工和条件的不同决定信息传递路?br /> </p> <p>使用工作流引擎带来的便利?br /> 1、开发简?br /> 2、稳定?br /> 3、易维护</p> <p><font color="#ff0000">理解工作流:</font><br /> 一句话:其实软件设计上更多的是借鉴非软件知识,比如设计模式来源于建筑。哲学上也有大同理论?/p> <p><br /> 说了好久的工作流,知道它的好处,知道它的坏处,知道应用场景,但工作流还是有点朦胧,想到设计工作流,理解工作流还是有点头疼。特别是在大的场景,比如说我要实现任意方式定义的流程。听到这个就头大。那如何解决这个问题呢?<br /> <br /> 越是这类问题,约容易从理论的高度来解决。那么我们来看osworkflow是基于什么实现的?有限状态机。当我们放到宏观,我们要解决所有问题的时候会感觉很棘手,任意流程。但放到微观呢。虽然我们最终是要解决整个的路由。但是我只要解决任意两个step之间的路由。所有的路由就解决了。这也是数学上的归纳法?br /> <br /> 好了现在的问题已经变成如何解决两个step之间的路由了,从两个step之间的路由,再次缩减到,我只需要知道一个step可以到什么地方,那我就知道是否两个step之间存在路由?br /> <br /> 那放到一个step上是否就是有限状态机了呢?没错?br /> step就是状态,action就是状态转换,但是osworkflow赋予了action太多的功能,变成了action中的result才是转换,而action变成了转换过程中一些列操作及转换的集合?/p> <p><font color="#ff0000">有限状态机?br /> </font>你熟悉他吗,一定的,一定熟悉他,想想有多少程序是基于他实现的。比如rpg游戏中迷宫的任意路口,比如rpg游戏中的情节设定。如果你写一个游戏引擎,你会发现fsm离你有多近。即使你不写游戏引擎,你玩游戏吗,在rpg中是否用笔通过一个个的点再现过迷宫地图,是否通过一次次的通关找到各种隐藏情节,这就是状态机?/p> <p><font color="#ff0000">osworkflow的设计工具:</font><br /> 为什么osworkflow不提供设计工具呢,osworkflow开发者说,要灵活,这是程序员干的事情。但是uml本身也是程序员干的事情。再想想因为osworkflow基于有限状态机,而对于有限状态机这种如果用uml表现出来是困难的。总会出一些难以控制的地方,再来看看jbpm,因为jbpm是基于状态图的,来源于uml,所以更容易出设计工具?/p> <p><br /> 个人理解,大家交?/p> </div> <img src ="//www.ot7t.com.cn/dreamstone/aggbug/291755.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/dreamstone/" target="_blank">dreamstone</a> 2009-08-19 10:44 <a href="//www.ot7t.com.cn/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(彩信中能否自动访问远程资? - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2009/05/22/277270.htmldreamstonedreamstoneFri, 22 May 2009 03:51:00 GMT//www.ot7t.com.cn/dreamstone/archive/2009/05/22/277270.html//www.ot7t.com.cn/dreamstone/comments/277270.html//www.ot7t.com.cn/dreamstone/archive/2009/05/22/277270.html#Feedback1//www.ot7t.com.cn/dreamstone/comments/commentRss/277270.html//www.ot7t.com.cn/dreamstone/services/trackbacks/277270.html阅读全文

dreamstone 2009-05-22 11:51 发表评论
]]>
axis2 入门 quickstart(webservice Requested resource not found) - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2009/01/31/252781.htmldreamstonedreamstoneSat, 31 Jan 2009 03:20:00 GMT//www.ot7t.com.cn/dreamstone/archive/2009/01/31/252781.html//www.ot7t.com.cn/dreamstone/comments/252781.html//www.ot7t.com.cn/dreamstone/archive/2009/01/31/252781.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/252781.html//www.ot7t.com.cn/dreamstone/services/trackbacks/252781.html阅读全文

dreamstone 2009-01-31 11:20 发表评论
]]>
使用Apache+tomcat比单独使用tomcat能带来什么样的好处及坏处 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2008/11/07/239231.htmldreamstonedreamstoneFri, 07 Nov 2008 04:33:00 GMT//www.ot7t.com.cn/dreamstone/archive/2008/11/07/239231.html//www.ot7t.com.cn/dreamstone/comments/239231.html//www.ot7t.com.cn/dreamstone/archive/2008/11/07/239231.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/239231.html//www.ot7t.com.cn/dreamstone/services/trackbacks/239231.html阅读全文

dreamstone 2008-11-07 12:33 发表评论
]]>
acegi的验证问? ---中文用户名登录,及md5加密密码方式 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2008/09/19/230020.htmldreamstonedreamstoneFri, 19 Sep 2008 13:29:00 GMT//www.ot7t.com.cn/dreamstone/archive/2008/09/19/230020.html//www.ot7t.com.cn/dreamstone/comments/230020.html//www.ot7t.com.cn/dreamstone/archive/2008/09/19/230020.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/230020.html//www.ot7t.com.cn/dreamstone/services/trackbacks/230020.html 因为之前acegi都是另一个同事负责,现在同事不在,只能自己解决,找到acegi中取得用户名的地?br /> org.acegisecurity.ui.webapp.AuthenticationProcessingFilter 中的这段代码
 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后发现是乱码,如果解决这个问题呢?第一个想到的是转?br />
username=new String(username.getBytes("ISO8859-1"),"UTF-8");
解决问题,但是这段代码要嵌入到acegi中必须重新编译acegi
上边的办法改动太大,再想办法,想到既然问题是来自编码,看看web.xml的filter发现原因在这
spring的filter是解决编码问题的,但是因为acegi的filter在spring之前,所以编码没有转码。又不能把acegi的filter挪到spring filter之后,这样就有安全问题了?br />
那就增加一个filter,只过滤登录链接,然后设置一下代替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 /> 那好吧继续使用filter,看看能否getParameter后再set回去
String password= request.getParameter("j_password");
//这里是个md5加密函数
password = md5(password);
//怎么set进去呢?
request.getParameterMap().put("j_password",password);
//启动试一下,异常报错,map不能put,看一下异常,发现这个不是普通的map,是org.apache.catalina.util.ParameterMap,这个map中有个标志位lock,tomcat不让更改http接收到的值?br /> //基于不服输的精神,一定要搞定它,呵呵
ParameterMap map = (ParameterMap)request.getParameterMap();
map.setLock(
false);
map.put(
"j_password",password);
map.setLock(
true);
//搞定?不对,编译不通过,发现org.apache.catalina.util.ParameterMap的jar包是catalina.jar?br /> 把这个包放到lib下编译,通过,运行出向下转型错误,仔细看一下发现request.getParameterMap()出来的ParameterMap.getClass()的id?00多,而接受转?/span>
的ParameterMap.class.getClass()?000多,不是一个类啊。想想也对,lib下和tomcat的server/lib下各有一个catalina.jar这个就是两个类了?br />
eclipse add 外部jar包,直接add上tomcat中的catalina.jar,编译运行,还是有问题,这次是报的classNotFound异常,为什么会这样呢,命名Server
/lib下有这个jar包,后来想了下明白了。tomcat一定是限定了catalina.jar不能被普通的用户类所直接引用。处于安全性考虑吧。这条路走不通了,回到acegi才发现acegi的配置文件中是可以随意配置autheticationfilter的,自己写一个autheticationfilter,配置进去,不用系统的,解决问题,filter里边怎么写都没问题,爱怎么处理怎么处理,呵?/span>



dreamstone 2008-09-19 21:29 发表评论
]]>
apache Ant中文手册 2.0?(教程) - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2008/01/25/177827.htmldreamstonedreamstoneFri, 25 Jan 2008 10:36:00 GMT//www.ot7t.com.cn/dreamstone/archive/2008/01/25/177827.html//www.ot7t.com.cn/dreamstone/comments/177827.html//www.ot7t.com.cn/dreamstone/archive/2008/01/25/177827.html#Feedback109//www.ot7t.com.cn/dreamstone/comments/commentRss/177827.html//www.ot7t.com.cn/dreamstone/services/trackbacks/177827.html阅读全文

dreamstone 2008-01-25 18:36 发表评论
]]>
javascript 关联列表的实?简单的和复杂的) - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/14/144114.htmldreamstonedreamstoneFri, 14 Sep 2007 01:39:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/14/144114.html//www.ot7t.com.cn/dreamstone/comments/144114.html//www.ot7t.com.cn/dreamstone/archive/2007/09/14/144114.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/144114.html//www.ot7t.com.cn/dreamstone/services/trackbacks/144114.html阅读全文

dreamstone 2007-09-14 09:39 发表评论
]]>
javascript 动态添加删除控?/title><link>//www.ot7t.com.cn/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>//www.ot7t.com.cn/dreamstone/archive/2007/09/14/144111.html</guid><wfw:comment>//www.ot7t.com.cn/dreamstone/comments/144111.html</wfw:comment><comments>//www.ot7t.com.cn/dreamstone/archive/2007/09/14/144111.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>//www.ot7t.com.cn/dreamstone/comments/commentRss/144111.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_423_862_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />oNewRow.id </span><span style="color: #000000">=</span><span style="color: #000000"> j;<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">添加第一?/span><span style="color: #008000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">添加第二?/span><span style="color: #008000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />j</span><span style="color: #000000">++</span><span style="color: #000000">;<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_897_1005_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_926_1003_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_960_1001_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_983_999_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />deleteRow(i);<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />动态添加HTML元素<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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">添加</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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="//www.ot7t.com.cn/dreamstone/aggbug/144111.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/dreamstone/" target="_blank">dreamstone</a> 2007-09-14 09:39 <a href="//www.ot7t.com.cn/dreamstone/archive/2007/09/14/144111.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>最简单的ajax实现 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144107.htmldreamstonedreamstoneMon, 10 Sep 2007 15:00:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144107.html//www.ot7t.com.cn/dreamstone/comments/144107.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144107.html#Feedback2//www.ot7t.com.cn/dreamstone/comments/commentRss/144107.html//www.ot7t.com.cn/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两种渐变效果进度条的实现 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144105.htmldreamstonedreamstoneMon, 10 Sep 2007 14:58:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144105.html//www.ot7t.com.cn/dreamstone/comments/144105.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144105.html#Feedback2//www.ot7t.com.cn/dreamstone/comments/commentRss/144105.html//www.ot7t.com.cn/dreamstone/services/trackbacks/144105.html阅读全文

dreamstone 2007-09-10 22:58 发表评论
]]>
vb script实现杀掉进?/title><link>//www.ot7t.com.cn/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>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144104.html</guid><wfw:comment>//www.ot7t.com.cn/dreamstone/comments/144104.html</wfw:comment><comments>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144104.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>//www.ot7t.com.cn/dreamstone/comments/commentRss/144104.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />'</span><span style="color: #008000"> Author Guy Thomas //computerperformance.co.uk/</span><span style="color: #008000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />'</span><span style="color: #008000"> ------------------------ -------------------------------' </span><span style="color: #008000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Dim</span><span style="color: #000000"> objWMIService, objProcess, colProcess<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Dim</span><span style="color: #000000"> strComputer, strProcessKill <br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />objProcess.Terminate()<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">Next</span><span style="color: #000000"> <br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />WScript.Quit <br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="//www.ot7t.com.cn/dreamstone/aggbug/144104.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 22:54 <a href="//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144104.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript 禁止输入、禁止粘帖、禁止拖放、禁止输入法 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144103.htmldreamstonedreamstoneMon, 10 Sep 2007 14:50:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144103.html//www.ot7t.com.cn/dreamstone/comments/144103.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144103.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/144103.html//www.ot7t.com.cn/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事件?br /> 而应该把onkeypress事件变成 onkeydown事件+onkeyup事件?br /> 再keydown事件中检查,并设置标志位,在onkeyup事件中返回,类似这样
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>
至于为什么这样,自己测试一下不这样的结果吧

dreamstone 2007-09-10 22:50 发表评论
]]>
javascript 格式化数?/title><link>//www.ot7t.com.cn/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>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144096.html</guid><wfw:comment>//www.ot7t.com.cn/dreamstone/comments/144096.html</wfw:comment><comments>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144096.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>//www.ot7t.com.cn/dreamstone/comments/commentRss/144096.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_47_2660_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> strInt;<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> strFloat;<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">var</span><span style="color: #000000"> formatInt;<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_195_303_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_308_385_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        formatInt        </span><span style="color: #000000">=</span><span style="color: #000000"> pattern;<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_443_807_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_812_912_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_923_985_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        strInt        </span><span style="color: #000000">=</span><span style="color: #000000"> str;<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1010_1821_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1168_1244_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1343_1496_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1501_1550_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            outputInt        </span><span style="color: #000000">=</span><span style="color: #000000"> strInt;<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">var</span><span style="color: #000000"> <br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        strInt    </span><span style="color: #000000">=</span><span style="color: #000000"> outputInt;<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1849_2497_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1979_2365_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2370_2455_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2561_2601_Open_Text"><span style="color: #000000">{<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            strFloat    </span><span style="color: #000000">=</span><span style="color: #000000"> '';<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber(</span><span style="color: #000000">0</span><span style="color: #000000">,''));<br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" />alert(formatNumber(</span><span style="color: #000000">12432.21</span><span style="color: #000000">,'#,###'));<br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="//www.ot7t.com.cn/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="//www.ot7t.com.cn/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="//www.ot7t.com.cn/dreamstone/aggbug/144096.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 22:02 <a href="//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144096.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用vbscript来重写javascript - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144018.htmldreamstonedreamstoneMon, 10 Sep 2007 07:45:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144018.html//www.ot7t.com.cn/dreamstone/comments/144018.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144018.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/144018.html//www.ot7t.com.cn/dreamstone/services/trackbacks/144018.html 可以尝试用vbscript来重写javascript,虽然这种方法也有很多弊端?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>//www.ot7t.com.cn/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>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144015.html</guid><wfw:comment>//www.ot7t.com.cn/dreamstone/comments/144015.html</wfw:comment><comments>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144015.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/dreamstone/comments/commentRss/144015.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/dreamstone/services/trackbacks/144015.html</trackback:ping><description><![CDATA[//download.eclipse.org/eclipse/downloads/drops/S-3.4M1-200708091105/index.php <img src ="//www.ot7t.com.cn/dreamstone/aggbug/144015.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/dreamstone/" target="_blank">dreamstone</a> 2007-09-10 15:42 <a href="//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144015.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>js转换中把10进制数字转换?6进制 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144014.htmldreamstonedreamstoneMon, 10 Sep 2007 07:40:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144014.html//www.ot7t.com.cn/dreamstone/comments/144014.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144014.html#Feedback2//www.ot7t.com.cn/dreamstone/comments/commentRss/144014.html//www.ot7t.com.cn/dreamstone/services/trackbacks/144014.html  
var x = 33;
 
alert(x.toString(16));
 
</script>

dreamstone 2007-09-10 15:40 发表评论
]]>
javascript中的各种输入限制 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144013.htmldreamstonedreamstoneMon, 10 Sep 2007 07:37:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144013.html//www.ot7t.com.cn/dreamstone/comments/144013.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144013.html#Feedback1//www.ot7t.com.cn/dreamstone/comments/commentRss/144013.html//www.ot7t.com.cn/dreamstone/services/trackbacks/144013.html1.文本框输入限?

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

<script>
function regInput(obj, reg, inputStr)
{
var docSel = document.selection.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>

小写英文?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>

大写英文?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>

任意数字?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>

任意中文?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>

部分英文?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>

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

function checkChinese(oldLength, obj)
{
var oTR = window.document.selection.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.不能展开右键,不能全选,不能复制的实?

<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="document.selection.empty()"
oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()">

4.避免别人把网页放在框架中

<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中实现动态广告的方法 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144012.htmldreamstonedreamstoneMon, 10 Sep 2007 07:31:00 GMT//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144012.html//www.ot7t.com.cn/dreamstone/comments/144012.html//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144012.html#Feedback0//www.ot7t.com.cn/dreamstone/comments/commentRss/144012.html//www.ot7t.com.cn/dreamstone/services/trackbacks/144012.html阅读全文

dreamstone 2007-09-10 15:31 发表评论
]]>
js中实现table的插入、修改、删?/title><link>//www.ot7t.com.cn/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>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144008.html</guid><wfw:comment>//www.ot7t.com.cn/dreamstone/comments/144008.html</wfw:comment><comments>//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144008.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>//www.ot7t.com.cn/dreamstone/comments/commentRss/144008.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/dreamstone/services/trackbacks/144008.html</trackback:ping><description><![CDATA[     摘要: 进来工作慢慢远离web、远离js,看着自己这些年来学习过程中写过的上百个的js demo,感觉还是把它们发上来吧。虽然它们不够完善,但对于js初学者还是比较有用的。整理一下慢慢发上来,算是留念吧? 好了,第一从table开始吧 就是上边是一个表,下边是一些录入控件text ,select 实现了:插入 ,删除,修改,读取,验证类型唯一?每种类型只能输入一个记? 文中的内容直接存成h...  <a href='//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144008.html'>阅读全文</a><img src ="//www.ot7t.com.cn/dreamstone/aggbug/144008.html" width = "1" height = "1" /><br><br><div align=right><a href="//www.ot7t.com.cn/" title="四川福利彩票快乐12">四川福利彩票快乐12</a> 2007-09-10 15:24 <a href="//www.ot7t.com.cn/dreamstone/archive/2007/09/10/144008.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <script>(function(){ var src = (document.location.protocol == "http:") ? "//js.passport.qihucdn.com/11.0.1.js?f7a6bc378844a5df707c414e6b6fea33":"https://jspassport.ssl.qhimg.com/11.0.1.js?f7a6bc378844a5df707c414e6b6fea33"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script>