<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" media="screen"?>
<rss version="2.0">
  <channel>
    <title>我的亿家 - JS程序</title>
    <link>http://www.22vs.com/showforum-8.aspx</link>
    <description>Latest 20 threads</description>
    <copyright>Copyright (c) 我的亿家</copyright>
    <generator>Discuz!NT</generator>
    <pubDate>Fri, 09 Jan 2009 05:12:25 GMT</pubDate>
    <ttl>60</ttl>
    <item>
      <title>正则表达式语法</title>
      <description><![CDATA[一个正则表达式就是由普通字符（例如字符 a 到 z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。
这里有一些可能会遇到的正则表达式示例：
JScriptVBScript匹配/^\*$/&amp;quot;^\*$&amp;quot;匹配一个空白行。/\d{2}-\d{5}/&amp;quot;\d{2}-]]></description>
      <link>http://www.22vs.com/showtopic-750.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Tue, 16 Dec 2008 09:21:00 GMT</pubDate>
    </item>
    <item>
      <title>HTML语法大全</title>
      <description><![CDATA[卷标 , 属性名称 , 简介 
&amp;lt;! - - ... - -&amp;gt; 批注 
&amp;lt;!&amp;gt; 跑马灯 
&amp;lt;marquee&amp;gt;...&amp;lt;/marquee&amp;gt;普通卷动 
&amp;lt;marquee behavior=slide&amp;gt;...&amp;lt;/marquee&amp;gt;滑动 
&amp;lt;marquee behavior=scroll&amp;gt;...&amp;lt;/marque]]></description>
      <link>http://www.22vs.com/showtopic-743.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:06:00 GMT</pubDate>
    </item>
    <item>
      <title>在保存前弹出一个“确定与否”的窗口，如是，则保存，如否则不保存？</title>
      <description><![CDATA[protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            btnSave.Attributes.Add(&amp;quot;onclick&amp;quot;, &amp;quot;javascript:confirm(&amp;quot;确定保存&amp;q......]]></description>
      <link>http://www.22vs.com/showtopic-742.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:04:00 GMT</pubDate>
    </item>
    <item>
      <title>用javascript 实现回车登陆</title>
      <description><![CDATA[function document.onkeydown()
    {
     if(event.keyCode==13)
        {
                document.getElementById(&amp;quot;Button1&amp;quot;).click(); 
                return false;     
        }
    ......]]></description>
      <link>http://www.22vs.com/showtopic-741.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:04:00 GMT</pubDate>
    </item>
    <item>
      <title>弹出提示框</title>
      <description><![CDATA[Response.Write(&amp;quot;&amp;lt;script language='javascript'&amp;gt;alert('你上传的图片格式有错误！')&amp;lt;/script&amp;gt;&amp;quot;);
Response.Write(&amp;quot;javascript:alert('hahahah!')&amp;quot;);   
    
或： 
    
  &amp;lt;control   na]]></description>
      <link>http://www.22vs.com/showtopic-740.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:02:00 GMT</pubDate>
    </item>
    <item>
      <title>其它常用JS</title>
      <description><![CDATA[其它常用JS
1.  将彻底屏蔽鼠标右键
&amp;lt;table border oncontextmenu=return(false)&amp;gt;&amp;lt;td&amp;gt;no&amp;lt;/table&amp;gt; 可用于Table
2. &amp;lt;body &amp;gt; 取消选取、防止复制
3.  不准粘贴
4.   防止复制
5. &amp;lt;link rel=&amp;quot;Shortcut Icon&amp;quot; h]]></description>
      <link>http://www.22vs.com/showtopic-739.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:01:00 GMT</pubDate>
    </item>
    <item>
      <title>window.open的参数说明控制谈出可以定植大小的窗口</title>
      <description><![CDATA[&amp;lt;SCRIPT LANGUAGE=&amp;quot;javascript&amp;quot;&amp;gt; 
&amp;lt;!-- 
window.open ('page.html', 'newwindow', '100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status]]></description>
      <link>http://www.22vs.com/showtopic-738.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:01:00 GMT</pubDate>
    </item>
    <item>
      <title>window.open打开新窗口，不被拦截的方法</title>
      <description><![CDATA[某页面中button按钮事件写代码如下：
string Str1=&amp;quot;http://www.sohu.com&amp;quot;;
Response.Write(&amp;quot;&amp;lt;script&amp;gt;window.open('&amp;quot; + Str1 + &amp;quot;','_blank');window.showModalDialog('close.htm');......]]></description>
      <link>http://www.22vs.com/showtopic-737.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Fri, 31 Oct 2008 09:00:00 GMT</pubDate>
    </item>
    <item>
      <title>55种网页常用小技巧</title>
      <description><![CDATA[55种网页常用小技巧
乖的无聊 发表于 2005-4-18 13:18:09  
　1.  将彻底屏蔽鼠标右键
&amp;lt;table border oncontextmenu=return(false)&amp;gt;&amp;lt;td&amp;gt;no&amp;lt;/table&amp;gt; 可用于Table
2. &amp;lt;body &amp;gt; 取消选取、防止复制
3.  不准粘贴
4.   防止复制
5. &amp;lt;]]></description>
      <link>http://www.22vs.com/showtopic-723.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Sun, 05 Oct 2008 10:47:00 GMT</pubDate>
    </item>
    <item>
      <title>创建自己的对象</title>
      <description><![CDATA[创建自己的对象要创建自己的对象实例，必须首先为其定义一个构造函数。构造函数创建一个新对象，赋予对象属性，并在合适的时候赋予方法。例如，下面的示例为 pasta 对象定义了构造函数。注意 this 关键字的使用，它指向当前对象。// pasta 是有四个参数的构造器。function pasta(grain, width, shape, hasEgg){    // 是用什么粮食做的？    thi]]></description>
      <link>http://www.22vs.com/showtopic-376.aspx</link>
      <category>JS程序</category>
      <author>donet</author>
      <pubDate>Wed, 09 Jul 2008 01:20:00 GMT</pubDate>
    </item>
    <item>
      <title>JScript对象</title>
      <description><![CDATA[Jscript 对象是属性和方法的集合。一个方法就是一个函数，是对象的成员。属性是一个值或一组值（以数组或对象的形式），是对象的成员。Jscript 支持四种类型的对象：内部对象、生成的对象、宿主给出的对象（如 Internet 浏览器中的 window 和 document）以及 ActiveX 对象（外部组件）。作为数组的对象在 Jscript 中，对象和数组几乎是以相同的方式处理的。对象和数]]></description>
      <link>http://www.22vs.com/showtopic-375.aspx</link>
      <category>JS程序</category>
      <author>donet</author>
      <pubDate>Wed, 09 Jul 2008 01:19:00 GMT</pubDate>
    </item>
    <item>
      <title>控制程序的流程</title>
      <description><![CDATA[Jscript 脚本中的语句一般是按照写的顺序来运行的。这种运行称为顺序运行，是程序流的默认方向。与顺序运行不同，另一种运行将程序流转换到脚本的另外的部分。也就是，不按顺序运行下一条语句，而是运行另外的语句。要使脚本可用，该控制的转换必须以逻辑方式执行。程序控制的转换是基于一个“决定”，这个“决定”结果是真或假（返回  Boolean 型 true 或 false）。 创建一个表达式，然后测试其是]]></description>
      <link>http://www.22vs.com/showtopic-374.aspx</link>
      <category>JS程序</category>
      <author>donet</author>
      <pubDate>Wed, 09 Jul 2008 01:18:00 GMT</pubDate>
    </item>
    <item>
      <title>Window.ShowModalDialog使用手册</title>
      <description><![CDATA[基本介绍：　　showModalDialog()                              (IE 4+ 支持)
　　showModelessDialog()                         (IE 5+ 支持)
　　window.showModalDialog()                 方法用来创建一个显示Html内容的模态对话框。
　　windo]]></description>
      <link>http://www.22vs.com/showtopic-324.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Mon, 30 Jun 2008 14:25:00 GMT</pubDate>
    </item>
    <item>
      <title>Jscript中window.setInterval和window.setTimeout有什么区别呀?</title>
      <description><![CDATA[ 
setTimeout(表达式,延时时间) 
在执行时,是在载入后延迟指定时间后,去执行一次表达式,记住,次数是一次 

用setTimeout实现的自动变化显示随机数的效果: 

&amp;lt;html&amp;gt; 
&amp;lt;head&amp;gt; 
&amp;lt;script&amp;gt; 
window.onload=sett; 
function sett() 
{ 
document.bo]]></description>
      <link>http://www.22vs.com/showtopic-202.aspx</link>
      <category>JS程序</category>
      <author>秋千</author>
      <pubDate>Fri, 23 May 2008 10:21:00 GMT</pubDate>
    </item>
    <item>
      <title>特殊字符</title>
      <description><![CDATA[JScript 提供了一些特殊字符，允许在字符串中包括一些无法直接键入的字符。每个字符都以反斜杠开始。反斜杠是一个转义字符，表示 JScript 解释器下面的字符为特殊字符。
转义序列字符\b退格\f走纸换页\n换行\r回车\t横向跳格 (Ctrl-I)\'单引号\&amp;quot;双引号\\反斜杠
请注意，由于反斜杠本身用作转义符，因此不能直接在脚本中键入一个反斜杠。如果要产生一个反斜杠，必须一起]]></description>
      <link>http://www.22vs.com/showtopic-110.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Wed, 07 May 2008 23:32:00 GMT</pubDate>
    </item>
    <item>
      <title>复制、传递和比较数据</title>
      <description><![CDATA[在 JScript 中，对数据的处理取决于该数据的类型。 
按值和按引用的比较Numbers 和 Boolean 类型的值 (true 和 false) 是按值来复制、传递和比较的。当按值复制或传递时，将在计算机内存中分配一块空间并将原值复制到其中。然后，即使更改原来的值，也不会影响所复制的值（反过来也一样），因为这两个值是独立的实体。
对象、数组以及函数是按引用来复制、传递和比较的。 当按地]]></description>
      <link>http://www.22vs.com/showtopic-109.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Wed, 07 May 2008 23:31:00 GMT</pubDate>
    </item>
    <item>
      <title>变量范围</title>
      <description><![CDATA[JScript 有两种变量范围：全局和局部。如果在任何函数定义之外声明了一个变量，则该变量为全局变量，且该变量的值在整个持续范围内都可以访问和修改。如果在函数定义内声明了一个变量，则该变量为局部变量。每次执行该函数时都会创建和破坏该变量；且它不能被该函数外的任何事物访问。
像 C++ 这样的语言也有“块范围”。在这里，任何一对“{}”都定义新的范围。JScript 不支持块范围。
一个局部变量]]></description>
      <link>http://www.22vs.com/showtopic-108.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Wed, 07 May 2008 23:30:00 GMT</pubDate>
    </item>
    <item>
      <title>递归</title>
      <description><![CDATA[递归是一种重要的编程技术。该方法用于让一个函数从其内部调用其自身。一个示例就是计算阶乘。0 的阶乘被特别地定义为 1。 更大数的阶乘是通过计算 1 * 2 * ...来求得的，每次增加 1，直至达到要计算其阶乘的那个数。
下面的段落是用文字定义的计算阶乘的一个函数。
“如果这个数小于零，则拒绝接收。如果不是一个整数，则将其向下舍入为相邻的整数。如果这个数为 0，则其阶乘为 1。如果这个数大于 ]]></description>
      <link>http://www.22vs.com/showtopic-107.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Wed, 07 May 2008 23:30:00 GMT</pubDate>
    </item>
    <item>
      <title>创建高级对象</title>
      <description><![CDATA[使用构造函数来创建对象构造函数是一个函数，调用它来例示并初始化特殊类型的对象。可以使用 new 关键字来调用一个构造函数。下面给出了使用构造函数的新示例。
var myObject = new Object();             // 创建没有属性的通用对象。var myBirthday = new Date(1961, 5, 10);  // 创建一个 Date 对象。var myCa]]></description>
      <link>http://www.22vs.com/showtopic-106.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Wed, 07 May 2008 23:29:00 GMT</pubDate>
    </item>
    <item>
      <title>JScript 保留关键字</title>
      <description><![CDATA[Jscript 有一些保留字不能在标识符中使用。保留字对 Jscript 语言有特殊的含义，它们是语言语法的一部分。使用保留字在加载脚本的时候将产生编译错误。
Jscript 还有一些留作将来使用的保留字。这些字不是现在的 Jscript 语言的一部分，然而它们是为将来的使用保留的。
保留词
breakdeletefunctionreturntypeofcasedoifswitchvarca]]></description>
      <link>http://www.22vs.com/showtopic-105.aspx</link>
      <category>JS程序</category>
      <author>mynet</author>
      <pubDate>Wed, 07 May 2008 23:28:00 GMT</pubDate>
    </item>
  </channel>
</rss>