<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?627</link>
<title><![CDATA[JS得到窗口高度和屏幕高度]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Tue, 14 Jan 2014 05:40:24 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?627</guid> 
<description>
<![CDATA[ 
	<br/><div class="code">&lt;SCRIPT &nbsp; LANGUAGE=&quot;JavaScript&quot;&gt; &nbsp;<br/>var s = &quot;网页可见区域宽 ：&quot;+ document.body.clientWidth; &nbsp;<br/>s += &quot;&#92;r&#92;n网页可见区域高：&quot;+ document.body.clientHeight; &nbsp; <br/>s += &quot;&#92;r&#92;n网页可见区域高：&quot;+ document.body.offsetHeight +&quot; (包括边线的宽)&quot;; &nbsp;<br/>s += &quot;&#92;r&#92;n网页正文全文宽：&quot;+ document.body.scrollWidth; &nbsp;<br/>s += &quot;&#92;r&#92;n网页正文全文高：&quot;+ document.body.scrollHeight; &nbsp;<br/>s += &quot;&#92;r&#92;n网页被卷去的高：&quot;+ document.body.scrollTop; &nbsp;<br/>s += &quot;&#92;r&#92;n网页被卷去的左：&quot;+ document.body.scrollLeft; &nbsp;<br/>s += &quot;&#92;r&#92;n网页正文部分上：&quot;+ window.screenTop; &nbsp;<br/>s += &quot;&#92;r&#92;n网页正文部分左：&quot;+ window.screenLeft; &nbsp;<br/>s += &quot;&#92;r&#92;n屏幕分辨率的高：&quot;+ window.screen.height; &nbsp;<br/>s += &quot;&#92;r&#92;n屏幕分辨率的宽：&quot;+ window.screen.width; &nbsp;<br/>s += &quot;&#92;r&#92;n屏幕可用工作区高度：&quot;+ window.screen.availHeight; &nbsp;<br/>s += &quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;+ window.screen.availWidth; &nbsp;<br/>alert(s); <br/>&lt;/SCRIPT&gt; </div><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?620</link>
<title><![CDATA[jquery datatable 中文参数说明]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Tue, 09 Jul 2013 09:58:15 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?620</guid> 
<description>
<![CDATA[ 
	<p>DataTables(<a href="http://www.datatables.net/">http://www.datatables.net/</a>)是我功能强大的表格解决方案。<br /><br />先把它主页上写的特性翻译罗列如下： <br />可变长度分页；动态过滤；多列排序，带数据类型检测功能；列宽度的智能处理；从多种数据源获取数据（DOM，js Array, ajax file, server-side returning）；滚动配置属性；完整国际化支持； jquery UI ThemeRoller支持；经历了个2600多个单元测试，相当牢固；有为数不少的插件支持；免费的；状态保存能力；支持隐藏列；动态创建表格的能力；自动ajax数据加载；自定义DOM位置；单列过滤（这个与前面的过滤有区别么？）；多种分页器；无损的DOM交互；参与排序的列高亮；高级数据源配置；扩展的插件支持功能；可以用css完全配置表象；丰富的文档； 110多个例子；对Adobe AIR的完全支持。 <br /><br /><span>引入</span><br /><br /><span>使用</span></p><div><div><div>Javascript代码 &nbsp;</div></div><span><span>$(document).ready(</span><span>function</span><span>(){ &nbsp;</span></span><span> &nbsp; &nbsp;$(<span>'#example'</span><span>).dataTable(); &nbsp;</span></span><span>}); &nbsp;</span><span> &nbsp;</span><span><span>// 另一个例子</span><span> &nbsp;</span></span><span>$(document).ready(<span>function</span><span>(){ &nbsp;</span></span><span> &nbsp; &nbsp;$(<span>'#example'</span><span>).dataTable({ &nbsp;</span></span><span> &nbsp; &nbsp; &nbsp; &nbsp;<span>&quot;bInfo&quot;</span><span>: </span><span>false</span><span> &nbsp;</span></span><span> &nbsp; &nbsp;}); &nbsp;</span><span>}); &nbsp;</span></div><br /><br />要注意的是，要被dataTable处理的table对象，必须有thead与tbody，而且，结构要规整（数据不一定要完整），这样才能正确处理。 <br /><br />以下是在进行dataTable绑定处理时候可以附加的参数： <br /><table border="0"><tbody><tr><td>属性名称</td><td>取值范围</td><td>解释</td></tr><tr><td>bAutoWidth</td><td>true or false, default true</td><td>是否自动计算表格各列宽度</td></tr><tr><td>bDeferRender</td><td>true or false, default false</td><td>用于渲染的一个参数</td></tr><tr><td>bFilter</td><td>true or false, default true</td><td>开关，是否启用客户端过滤功能</td></tr><tr><td>bInfo</td><td>true or false, default true</td><td>开关，是否显示表格的一些信息</td></tr><tr><td>bJQueryUI</td><td>true or false, default false</td><td>是否使用jquery ui themeroller的风格</td></tr><tr><td>bLengthChange</td><td>true or false, default true</td><td>开关，是否显示一个每页长度的选择条（需要分页器支持）</td></tr><tr><td>bPaginate</td><td>true or false, default true</td><td>开关，是否显示（使用）分页器</td></tr><tr><td>bProcessing</td><td>true or false, defualt false</td><td>开关，以指定当正在处理数据的时候，是否显示&ldquo;正在处理&rdquo;这个提示信息</td></tr><tr><td>bScrollInfinite</td><td>true or false, default false</td><td>开关，以指定是否无限滚动（与sScrollY配合使用），在大数据量的时候很有用。当这个标志为true的时候，分页器就默认关闭</td></tr><tr><td>bSort</td><td>true or false, default true</td><td>开关，是否让各列具有按列排序功能</td></tr><tr><td>bSortClasses</td><td>true or false, default true</td><td>开关，指定当当前列在排序时，是否增加classes 'sorting_1', 'sorting_2' and 'sorting_3'，打开后，在处理大数据时，性能有所损失</td></tr><tr><td>bStateSave</td><td>true or false, default false</td><td>开关，是否打开客户端状态记录功能。这个数据是记录在cookies中的，打开了这个记录后，即使刷新一次页面，或重新打开浏览器，之前的状态都是保存下来的</td></tr><tr><td>sScrollX</td><td>'disabled' or &nbsp;'100%' 类似的字符串</td><td>是否开启水平滚动，以及指定滚动区域大小</td></tr><tr><td>sScrollY</td><td>'disabled' or '200px' 类似的字符串</td><td>是否开启垂直滚动，以及指定滚动区域大小</td></tr><tr><td>--</td><td>--</td><td>--</td></tr><tr><td>选项</td><td> </td><td> </td></tr><tr><td>aaSorting</td><td>array array[int,string], 如[], [[0,'asc'], [0,'desc']]</td><td>指定按多列数据排序的依据</td></tr><tr><td>aaSortingFixed</td><td>同上</td><td>同上。唯一不同点是不能被用户的自定义配置冲突</td></tr><tr><td>aLengthMenu</td><td>default [10, 25, 50, 100]，可以为一维数组，也可为二维数组，比如：[[10, 25, 50, -1], [10, 25, 50, &quot;All&quot;]]</td><td>这个为选择每页的条目数，当使用一个二维数组时，二维层面只能有两个元素，第一个为显示每页条目数的选项，第二个是关于这些选项的解释</td></tr><tr><td>aoSearchCols</td><td>default null, 类似：[null, {&quot;sSearch&quot;: &quot;My filter&quot;}, null,{&quot;sSearch&quot;: &quot;^[0-9]&quot;, &quot;bEscapeRegex&quot;: false}]</td><td>给每个列单独定义其初始化搜索列表特性（这一块还没搞懂）</td></tr><tr><td>asStripClasses</td><td>default ['odd', 'even'], 比如['strip1', 'strip2', 'strip3']</td><td>指定要被应用到各行的class风格，会自动循环</td></tr><tr><td>bDestroy</td><td>true or false, default false</td><td>用于当要在同一个元素上执行新的dataTable绑定时，将之前的那个数据对象清除掉，换以新的对象设置</td></tr><tr><td>bRetrieve</td><td>true or false, default false</td><td>用于指明当执行dataTable绑定时，是否返回DataTable对象</td></tr><tr><td>bScrollCollapse</td><td>true or false, default false</td><td>指定适当的时候缩起滚动视图</td></tr><tr><td>bSortCellsTop</td><td>true or false, default false</td><td>（未知的东东）</td></tr><tr><td>iCookieDuration</td><td>整数，默认7200，单位为秒</td><td>指定用于存储客户端信息到cookie中的时间长度，超过这个时间后，自动过期</td></tr><tr><td>iDeferLoading</td><td>整数，默认为null</td><td>延迟加载，它的参数为要加载条目的数目，通常与bServerSide，sAjaxSource等配合使用</td></tr><tr><td>iDisplayLength</td><td>整数，默认为10</td><td>用于指定一屏显示的条数，需开启分页器</td></tr><tr><td>iDisplayStart</td><td>整数，默认为0</td><td>用于指定从哪一条数据开始显示到表格中去</td></tr><tr><td>iScrollLoadGap</td><td>整数，默认为100</td><td>用于指定当DataTable设置为滚动时，最多可以一屏显示多少条数据</td></tr><tr><td>oSearch</td><td>默认{ &quot;sSearch&quot;: &quot;&quot;, &quot;bRegex&quot;: false, &quot;bSmart&quot;: true }</td><td>又是初始时指定搜索参数相关的，有点复杂，没搞懂目前</td></tr><tr><td>sAjaxDataProp</td><td>字符串，default 'aaData'</td><td>指定当从服务端获取表格数据时，数据项使用的名字</td></tr><tr><td>sAjaxSource</td><td>URL字符串，default null</td><td>指定要从哪个URL获取数据</td></tr><tr><td>sCookiePrefix</td><td>字符串，default 'SpryMedia_DataTables_'</td><td>当打开状态存储特性后，用于指定存储在cookies中的字符串的前缀名字</td></tr><tr><td>sDom</td><td>default lfrtip (when bJQueryUI is false) or &lt;&quot;H&quot;lfr&gt;t&lt;&quot;F&quot;ip&gt; (when bJQueryUI is true)</td><td>这是用于定义DataTable布局的一个强大的属性，另开专门文档来补充说明吧</td></tr><tr><td>sPaginationType</td><td>'full_numbers' or 'two_button', default 'two_button'</td><td>用于指定分页器风格</td></tr><tr><td>sScrollXInner</td><td>string default 'disabled'</td><td>又是水平滚动相关的，没搞懂啥意思</td></tr></tbody></table><br /><br />DataTable支持如下回调函数 <br /><table border="0"><tbody><tr><td>回调函数名称</td><td>参数</td><td>返回值</td><td>默认</td><td>功能</td></tr><tr><td>fnCookieCallback</td><td>1.string: Name of the cookie defined by DataTables 2.object: Data to be stored in the cookie 3.string: Cookie expires string 4.string: Path of the cookie to set</td><td>string: cookie formatted string (which should be encoded by using encodeURIComponent())</td><td>null</td><td>当每次cookies改变时，会触发这个函数调用</td></tr><tr><td>fnDrawCallback</td><td>无</td><td>无</td><td>无</td><td>在每次table被draw完后调用，至于做什么就看着办吧</td></tr><tr><td>fnFooterCallback</td><td>1.node : &quot;TR&quot; element for the footer 2.array array strings : Full table data (as derived from the original HTML) 3.int : Index for the current display starting point in the display array&lt; 4.int : Index for the current display ending point in the display array 5.array int : Index array to translate the visual position to the full data array</td><td>无</td><td>无</td><td>用于在每次重画的时候修改表格的脚部</td></tr><tr><td>fnFormatNumber</td><td>1.int : number to be formatted</td><td>String : formatted string for DataTables to show the number</td><td>有默认的</td><td>用于在大数字上，自动加入一些逗号，分隔开</td></tr><tr><td>fnHeaderCallback</td><td>1.node : &quot;TR&quot; element for the header 2.array array strings : Full table data (as derived from the original HTML) 3.int : Index for the current display starting point in the display array 4.int : Index for the current display ending point in the display array 5.array int : Index array to translate the visual position to the full data array</td><td>无</td><td>无</td><td>用于在每次draw发生时，修改table的header</td></tr><tr><td>fnInfoCallback</td><td>1.object: DataTables settings object 2.int: Starting position in data for the draw 3.int: End position in data for the draw 4.int: Total number of rows in the table (regardless of filtering) 5.int: Total number of rows in the data set, after filtering 6.string: The string that DataTables has formatted using it's own rules</td><td>string: The string to be displayed in the information element.</td><td>无</td><td>用于传达table信息</td></tr><tr><td>fnInitComplete</td><td>1.object:oSettings - DataTables settings object</td><td>无</td><td>无</td><td>表格初始化完成后调用</td></tr><tr><td>fnPreDrawCallback</td><td>1.object:oSettings - DataTables settings object</td><td>Boolean</td><td>无</td><td>用于在开始绘制之前调用，返回false的话，会阻止draw事件发生；返回其它值，draw可以顺利执行</td></tr><tr><td>fnRowCallback</td><td>1.node : &quot;TR&quot; element for the current row 2.array strings : Raw data array for this row (as derived from the original HTML) 3.int : The display index for the current table draw 4.int : The index of the data in the full list of rows (after filtering)</td><td>node : &quot;TR&quot; element for the current row</td><td>无</td><td>当创建了行，但还未绘制到屏幕上的时候调用，通常用于改变行的class风格</td></tr><tr><td>fnServerData</td><td>1.string: HTTP source to obtain the data from (i.e. sAjaxSource) 2.array objects: A key/value pair object containing the data to send to the server 3.function: Function to be called on completion of the data get process that will draw the data on the page.</td><td>void</td><td>$.getJSON</td><td>用于替换默认发到服务端的请求操作</td></tr><tr><td>fnStateLoadCallback</td><td>1.object:oSettings - DataTables settings object 2.object:oData - Object containing information retrieved from the state saving cookie which should be restored. For the exact properties please refer to the DataTables code.</td><td>Boolean - false if the state should not be loaded, true otherwise</td><td>无</td><td>在cookies中的数据被加载前执行，可以方便地修改这些数据</td></tr><tr><td>fnStateSaveCallback</td><td>1.object:oSettings - DataTables settings object 2.String:sValue - a JSON string (without the final closing brace) which should be stored in the state saving cookie.</td><td>String - the full string that should be used to save the state</td><td>无</td><td>在状态数据被存储到cookies前执行，可以方便地做一些预操作</td></tr></tbody></table><br /><br/>Tags - <a href="tag.php?tag=jquery" rel="tag">jquery</a> , <a href="tag.php?tag=datatable" rel="tag">datatable</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?619</link>
<title><![CDATA[jquery dataTable的参数意义]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Tue, 09 Jul 2013 09:56:13 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?619</guid> 
<description>
<![CDATA[ 
	1.分页<br/> 1.bPaginite:true;是否启用分页功能<br/> 2.sPaginationType:two_button &nbsp;或者full_numbers 分页风格<br/> 3.sFirst:告诉他第一页怎么写<br/> 4.sLast:告诉他最后一页怎么写<br/> 5.sNext:告诉他下一页怎么写<br/> 6.sPrevious:告诉他上一页怎么写<br/> 2.语言<br/> 1."sInfo":"共_TOTAL_页 第_START_到_END_页",<br/> 2."sEmptyTable":"没有数据"<br/> 3."sInfoFiltered":"从_MAX_条记录中搜索",<br/> 4."sInfoPostFix": " &nbsp; &nbsp; &nbsp;底边栏的静态信息",<br/> 5."sInfoThousands": "我靠",//格式化信息用的<br/> 6."sLengthMenu":"显示<select><option>20</option><option>40</option></select>条信息"<br/> 7. &nbsp;"sSearch":"搜索"<br/> 3.基本的命令<br/> 1.aaSorting:参数是个数组 &nbsp;[[],[]]单独定义每一列的排序方式<br/> 2.aaSortingFixed:锁定某一列的排序方式 &nbsp;用户不能改变<br/> 3.iDisplayLength:规定每一页的显示数目<br/> 4.aLengthMenu:[[两个数组要一样],[真正显示的是这个数组中的内容 最后一个是”all”]]<br/> 5.bAutoWidth:自动调整列宽<br/> 6.bDestroy:好比重新部署<br/> 7.bFilter:是否启用过滤器<br/> 8.bInfo:是否启用底边信息栏<br/> 9.bLengthChange:就是是否启用上面那个可以方便显示几页的下拉框<br/> 10.bProcessing:表格在处理数据时是否要显示信息 <br/>11.sProcessing:定义表格在处理数据时要显示的信息<br/> 12.bScrollAutoCss:是否允许显示滚动条<br/> 13.sScrollY:表格的高度 不够的话用滚动条<br/> 14.bScrollCollapse:当设置sScrolly时 &nbsp;如果数据没那么高 &nbsp;表格是否自适应高度<br/> 15.bScrollInfinite:允许无限滚动 &nbsp;和google的图片搜索功能一样 &nbsp;一滚到最后就自动刷新<br/> 16.sScrollXInner:是个百分比 实际就是表格的宽度一样<br/> 17.sScrollX:也是百分比 &nbsp;实际就是水平方向滚动条件<br/> 18.bSort:是否启用排序功能<br/><br/>Tags - <a href="tag.php?tag=datatable" rel="tag">datatable</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?612</link>
<title><![CDATA[JavaScript：多维数组像ORDER BY一样实现多键值排序 ]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 05 Nov 2012 05:28:48 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?612</guid> 
<description>
<![CDATA[ 
	<p>JavaScript的数组排序函数 sort方法，默认是按照ASCII 字符顺序进行升序排列。</p><p><span style="font-family: Courier New">arrayobj.<strong>sort(</strong>sortfunction<strong>);</strong></span></p><p class="dt"><em>参数：sortFunction</em></p><p>可选项。是用来确定元素顺序的函数的名称。如果这个参数被省略，那么元素将按照 ASCII 字符顺序进行升序排列。</p><p><strong>sort</strong> 方法将 <strong>Array</strong> 对象进行适当的排序；在执行过程中并不会创建新的 <strong>Array</strong> 对象。 </p><p>如果为 <em>sortfunction</em> 参数提供了一个函数，那么该函数必须返回下列值之一： </p><ul><li>负值，如果所传递的第一个参数比第二个参数小。 </li><li>零，如果两个参数相等。 </li><li>正值，如果第一个参数比第二个参数大。 </li></ul><p>以上的方法在一维的排序还是很方便的，但像SQL语句中的ORDER BY 一样的多键值排序由怎么做呢？</p><p>多维数组的多键值排序，则需要复杂一些，但不需要用循环解决。实际解决的道理是一样的 。</p><p><strong>数字：</strong></p><p>以下的例子是将数字的多维数组按照第5列，第9列，第3列的顺序排序，像SQL语句中的ORDER BY &nbsp;col5，col9，col7。数字的时候可以直接两个项目相减，以结果作为返回值即可。</p><div style="background: #e6e6e6; padding: 4px 5.4pt; border: 0.5pt solid windowtext; width: 95%; word-break: break-all"><div><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" align="top" /><span style="color: #000000">&lt;</span><span style="color: #000000">script language</span><span style="color: #000000">=</span><span style="color: #000000">javascript</span><span style="color: #000000">&gt;</span><span style="color: #000000"><br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" align="top" /> &nbsp; &nbsp;var myArray </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Array();<br /><img id="_80_528_Open_Image" style="display: inline" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" border="0" align="top" /><img id="_80_528_Closed_Image" style="display: none" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" border="0" align="top" /> &nbsp; &nbsp;</span><span style="color: #0000ff">for</span><span style="color: #000000">(var i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;i</span><span style="color: #000000">&lt;</span><span style="color: #000000">10</span><span style="color: #000000">;i</span><span style="color: #000000">++</span><span style="color: #000000"> )</span><span style="border: 1px solid #808080; display: none; background-color: #ffffff">...</span><span style="display: inline"><span style="color: #000000">{<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i]</span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> Array();<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">0</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">); <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /><br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">1</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">2</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">3</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">4</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">5</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">6</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">7</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;myArray[i][</span><span style="color: #000000">8</span><span style="color: #000000">]</span><span style="color: #000000">=</span><span style="color: #000000">Math.floor(Math.random()</span><span style="color: #000000">*</span><span style="color: #000000">10</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" border="0" align="top" /> &nbsp; &nbsp;}</span></span><span style="color: #000000"><br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" align="top" /> &nbsp; &nbsp;<br /><img id="_562_638_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" border="0" align="top" /><img id="_562_638_Closed_Image" style="display: none" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" border="0" align="top" /> &nbsp; &nbsp;myArray.sort( function(x, y) </span><span style="border: 1px solid #808080; display: none; background-color: #ffffff">...</span><span><span style="color: #000000">{<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000"> (x[</span><span style="color: #000000">0</span><span style="color: #000000">]</span><span style="color: #000000">==</span><span style="color: #000000">y[</span><span style="color: #000000">0</span><span style="color: #000000">])</span><span style="color: #000000">?</span><span style="color: #000000">((x[</span><span style="color: #000000">4</span><span style="color: #000000">]</span><span style="color: #000000">==</span><span style="color: #000000">y[</span><span style="color: #000000">4</span><span style="color: #000000">])</span><span style="color: #000000">?</span><span style="color: #000000">(x[</span><span style="color: #000000">8</span><span style="color: #000000">]</span><span style="color: #000000">-</span><span style="color: #000000">y[</span><span style="color: #000000">8</span><span style="color: #000000">]):(x[</span><span style="color: #000000">4</span><span style="color: #000000">]</span><span style="color: #000000">-</span><span style="color: #000000">y[</span><span style="color: #000000">4</span><span style="color: #000000">])):(x[</span><span style="color: #000000">2</span><span style="color: #000000">]</span><span style="color: #000000">-</span><span style="color: #000000">y[</span><span style="color: #000000">2</span><span style="color: #000000">])<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" border="0" align="top" /> &nbsp; &nbsp;}</span></span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" align="top" /><br /><img id="_678_731_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" border="0" align="top" /><img id="_678_731_Closed_Image" style="display: none" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" border="0" align="top" /> &nbsp; &nbsp;</span><span style="color: #0000ff">for</span><span style="color: #000000">(var i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;i</span><span style="color: #000000">&lt;</span><span style="color: #000000">myArray.length;i</span><span style="color: #000000">++</span><span style="color: #000000"> )</span><span style="border: 1px solid #808080; display: none; background-color: #ffffff">...</span><span><span style="color: #000000">{<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" border="0" align="top" /> &nbsp; &nbsp; &nbsp; &nbsp;document.write(myArray[i].join(</span><span style="color: #000000">&quot;</span><span style="color: #000000">,</span><span style="color: #000000">&quot;</span><span style="color: #000000">) </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">&quot;</span><span style="color: #000000">&lt;br/&gt;</span><span style="color: #000000">&quot;</span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" border="0" align="top" /> &nbsp; &nbsp;}</span></span><span style="color: #000000"><br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" align="top" /></span><span style="color: #000000">&lt;/</span><span style="color: #000000">script</span><span style="color: #000000">&gt;</span><span style="color: #000000"><br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" align="top" /></span></div></div><p><strong> 字符：</strong></p><p>字符的时候sortFunction中的项目不能像数字一样直接相减，需要调用<strong><em>str1.localeCompare( str2 )</em></strong>方法来作比较，从而满足返回值。以下是多维数组的第1，2列作排序的情况。</p><div style="background: #e6e6e6; padding: 4px 5.4pt; border: 0.5pt solid windowtext; width: 95%; word-break: break-all"><div><img id="_30_145_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" border="0" align="top" /><img id="_30_145_Closed_Image" style="display: none" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" border="0" align="top" /><span style="color: #0000ff">function</span><span style="color: #000000"> sortFunction(array) </span><span style="border: 1px solid #808080; display: none; background-color: #ffffff">...</span><span><span style="color: #000000">{<br /><img id="_67_141_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" border="0" align="top" /><img id="_67_141_Closed_Image" style="display: none" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" border="0" align="top" /> &nbsp; &nbsp;</span><span style="color: #0000ff">return</span><span style="color: #000000"> array.sort( </span><span style="color: #0000ff">function</span><span style="color: #000000">(x, y) </span><span style="border: 1px solid #808080; display: none; background-color: #ffffff">...</span><span><span style="color: #000000">{</span><span style="color: #0000ff">return</span><span style="color: #000000"> (x[</span><span style="color: #000000">0</span><span style="color: #000000">]</span><span style="color: #000000">==</span><span style="color: #000000">y[</span><span style="color: #000000">0</span><span style="color: #000000">])</span><span style="color: #000000">?</span><span style="color: #000000">(x[</span><span style="color: #000000">1</span><span style="color: #000000">].localeCompare(y[</span><span style="color: #000000">1</span><span style="color: #000000">])):(x[</span><span style="color: #000000">0</span><span style="color: #000000">].localeCompare(y[</span><span style="color: #000000">0</span><span style="color: #000000">]))}</span></span><span style="color: #000000">);<br /><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" border="0" align="top" />}</span></span></div></div><p> 因此<strong>arrayObject.sort( sortFunction )</strong>的排序功能还是很强大的，终于能够实现了SQL语句中的ORDER BY 一样的功能。</p><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?570</link>
<title><![CDATA[向元素增加事件处理]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 11 Oct 2010 03:56:42 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?570</guid> 
<description>
<![CDATA[ 
	非IE <br/>var &nbsp; e=document.getElementById( "e ") <br/>e.setAttribute( "onclick ", "dosomething(); ") <br/><br/>IE <br/>var &nbsp; e=document.getElementById( "e ") <br/>e.onclick=function() &nbsp; {dosomething();}; <br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?527</link>
<title><![CDATA[Magic Zoom v3.1.16 去除版权的方法]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 01 Feb 2010 06:35:44 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?527</guid> 
<description>
<![CDATA[ 
	Magic Zoom v3.1.16 是最新版的图片放大镜组件，非常的好用，可以任意的定义放大镜的尺寸，放大镜的显示位置，可以定义图片标题，甚至滤镜的透明度均可定义。这个组件兼容IE6以上和FF。非常实用的软件，可就是免费版的内容中会有“Please upgrade to full version of Magic Zoom”的字样。<br/><br/>因为这个组件中的内容是变形字符串加密过的。所以我们无法直接通过读源码来修改。<br/>现在来看看ArthurXF贡献的修改方法吧：<br/>找到js最后1个)<br/><br/>在那个)前插入<br/>.replace("this.innerHTML=d","this.innerHTML=''")<br/><br/>这样就可以了。<br/>BIWEB WMS 5.8.3以上版本都有这个插件在plug-in目录中，可以直接复制出来使用。<br/>BIWEB下载地址：<a href="http://biweb.cn" target="_blank">http://biweb.cn</a><br/><br/><br/>Tags - <a href="tag.php?tag=biweb" rel="tag">biweb</a> , <a href="tag.php?tag=magic" rel="tag">magic</a> , <a href="tag.php?tag=zoom" rel="tag">zoom</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?521</link>
<title><![CDATA[scrollLeft,scrollWidth,clientWidth,offsetWidth完全详解]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 14 Dec 2009 08:58:19 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?521</guid> 
<description>
<![CDATA[ 
	scrollHeight: 获取对象的滚动高度。<br/><br/>scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离<br/><br/>scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离<br/><br/>scrollWidth:获取对象的滚动宽度<br/><br/>offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度<br/><br/>offsetLeft:获取对象相对于版面或由 offsetParent 属性指定的父坐标的计算左侧位置<br/><br/>offsetTop:获取对象相对于版面或由 offsetTop 属性指定的父坐标的计算顶端位置<br/><br/>event.clientX 相对文档的水平座标<br/><br/>event.clientY 相对文档的垂直座标<br/><br/>event.offsetX 相对容器的水平坐标<br/><br/>event.offsetY 相对容器的垂直坐标<br/><br/>document.documentElement.scrollTop 垂直方向滚动的值<br/><br/>event.clientX+document.documentElement.scrollTop 相对文档的水平座标+垂直方向滚动的量<br/><br/><br/>　　以上主要指IE之中，FireFox差异如下：<br/><br/>IE6.0、FF1.06+：<br/><br/>clientWidth = width + padding<br/><br/>clientHeight = height + padding<br/><br/>offsetWidth = width + padding + border<br/><br/>offsetHeight = height + padding + border<br/><br/>IE5.0/5.5：<br/><br/>clientWidth = width - border<br/><br/>clientHeight = height - border<br/><br/>offsetWidth = width<br/><br/>offsetHeight = height<br/><br/>(需要提一下：CSS中的margin属性，与clientWidth、offsetWidth、clientHeight、offsetHeight均无关)<br/><br/><br/><a href="http://bizeway.net/attachment/js.jpg" target="_blank"><img src="http://bizeway.net/attachment/js.jpg" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?453</link>
<title><![CDATA[JavaScript - 数组]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Fri, 10 Jul 2009 10:36:56 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?453</guid> 
<description>
<![CDATA[ 
	数组直接量<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = ['AA', 'BB', 'CC'];<br/>alert(arr.toLocaleString()); //AA, BB, CC<br/><br/>arr = [11, 22, 33];<br/>alert(arr.toLocaleString()); //11.00, 22.00, 33.00<br/><br/>/* 数组元素可以是任意类型, 包括数组本身 */<br/>arr = ['AA', 'BB', 123];<br/>alert(arr.toLocaleString()); //AA, BB, 123.00<br/>alert(arr[0]); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //AA<br/>alert(arr[1]); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //BB<br/>alert(arr[2]); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //123<br/><br/>/* 可先站定维数, 以后赋值 */<br/>arr = [ , , ];<br/>arr[0] = 11;<br/>arr[1] = 22;<br/>arr[2] = 33;<br/>alert(arr.toLocaleString()); //11.00, 22.00, 33.00<br/><br/>/* 先给个空数组, 再指定维数 */<br/>arr = [];<br/>alert(arr.length); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //0<br/>arr.length = 3;<br/>arr[0] = 11;<br/>arr[1] = 22;<br/>arr[2] = 33;<br/>alert(arr.toLocaleString()); //11.00, 22.00, 33.00<br/><br/>/* 可用 length 属性改变数组的大小 */<br/>arr = [1,2,3,4,5,6];<br/>arr.length = 2;<br/>alert(arr.toLocaleString()); //1.00, 2.00<br/>--------------------------------------------------------------------------------<br/><br/>数组对象的三种建立方法<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = new Array(11, '22', true);<br/>alert(arr.toLocaleString()); //11.00, 22, true<br/><br/>arr = new Array(3);<br/>arr[0] = 11;<br/>arr[1] = '22';<br/>arr[2] = true;<br/>alert(arr.toLocaleString()); //11.00, 22, true<br/><br/>arr = new Array();<br/>arr.length = 3;<br/>arr[0] = 11;<br/>arr[1] = '22';<br/>arr[2] = true;<br/>alert(arr.toLocaleString()); //11.00, 22, true<br/>--------------------------------------------------------------------------------<br/><br/>join : 数组到字符串<br/>--------------------------------------------------------------------------------<br/> <br/>var arr, str;<br/>arr = new Array('a', 'b', 1, 2, 3);<br/>str = arr.join();<br/>alert(str); //a,b,1,2,3<br/><br/>/* 可指定分隔符 */<br/>str = arr.join(' * ');<br/>alert(str); //a * b * 1 * 2 * 3<br/>--------------------------------------------------------------------------------<br/><br/>reverse、sort : 倒置与排序<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = new Array('c', 'd', 'e', 'a', 'b');<br/>arr.reverse();<br/>alert(arr.toLocaleString()); //b, a, e, d, c<br/><br/>arr.sort();<br/>alert(arr.toLocaleString()); //a, b, c, d, e<br/>--------------------------------------------------------------------------------<br/><br/>concat : 添加返回新数组<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [1, 2, 3]<br/>arr = arr.concat(4, 5);<br/>alert(arr.join()); //1, 2, 3, 4, 5<br/>--------------------------------------------------------------------------------<br/><br/>push、pop : 从尾部添加与删除; push 返回新长度, pop 返回被删除的元素<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [1, 2, 3, 4, 5]<br/>arr.pop();<br/>alert(arr.join()); //1,2,3,4<br/><br/>arr.push(7, 8, 9);<br/>alert(arr.join()); //1,2,3,4,7,8,9<br/><br/>arr.push(0, ['A', 'B']);<br/>alert(arr.join()); //1,2,3,4,7,8,9,0,A,B<br/>arr.pop();<br/>alert(arr.join()); //1,2,3,4,7,8,9,0<br/>arr.pop();<br/>alert(arr.join()); //1,2,3,4,7,8,9<br/>--------------------------------------------------------------------------------<br/><br/>unshift、shift : 从开始插入与删除; unshift 返回新长度, shift 返回被删除的元素<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [1, 2, 3]<br/>arr.unshift(5, 6);<br/>alert(arr.join()); //5,6,1,2,3<br/><br/>arr.shift();<br/>arr.shift();<br/>alert(arr.join()); //1,2,3<br/><br/>arr.unshift([5,6,7,8]);<br/>alert(arr.join()); //5,6,7,8,1,2,3<br/>arr.shift();<br/>alert(arr.join()); //1,2,3<br/>--------------------------------------------------------------------------------<br/><br/>splice : 删除、替换、插入; 如果有删除则返回被删除元素的数组<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [1, 2, 3, 4, 5, 6, 7, 8]<br/>arr.splice(4, 3); //从第 4 个(0起)开始删除 3 个<br/>alert(arr.join()); //1, 2, 3, 4, 8<br/><br/>arr.splice(3, 3, 'A', 'B', 'C'); //从第 3 个(0起)开始替换 3 个<br/>alert(arr.join()); //1, 2, 3, A, B, C<br/><br/>arr.splice(3, 0, 7, 8, 9); //从第 3 个(0起)开始插入 3 个; 插入时第二个参数给 0<br/>alert(arr.join()); //1, 2, 3, 7, 8, 9, A, B, C<br/>--------------------------------------------------------------------------------<br/><br/>slice : 提取子数组; 返回新数组<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [1, 2, 3, 4, 5, 6, 7, 8]<br/>arr = arr.slice(2, 5);<br/>alert(arr.join()); //3,4,5<br/><br/>/* 参数为负表示从后面数 */<br/>arr = [1, 2, 3, 4, 5, 6, 7, 8]<br/>arr = arr.slice(2, -2);<br/>alert(arr.join()); //3,4,5,6<br/><br/>arr = [1, 2, 3, 4, 5, 6, 7, 8]<br/>arr = arr.slice(-3, -1);<br/>alert(arr.join()); //6,7<br/>--------------------------------------------------------------------------------<br/><br/>toString、valueOf<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [1, 2, 3, 'A', 'B', 'C']<br/>alert(arr); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//1,2,3,A,B,C<br/>alert(arr.toString()); &nbsp; &nbsp; &nbsp; //1,2,3,A,B,C<br/>alert(arr.valueOf()); &nbsp; &nbsp; &nbsp; &nbsp;//1,2,3,A,B,C<br/>alert(arr.toLocaleString()); //1.00, 2.00, 3.00, A, B, C<br/>--------------------------------------------------------------------------------<br/><br/>遍历与模拟的多维数组<br/>--------------------------------------------------------------------------------<br/> <br/>var arr;<br/>arr = [[1,2,3], [4,5,6], [7,8,9]];<br/>alert(arr[1][1]); //5<br/><br/>arr = new Array(new Array(1,2,3), new Array(4,5,6), new Array(7,8,9));<br/>alert(arr[1][1]); //5<br/><br/>alert(arr) //1,2,3,4,5,6,7,8,9<br/>for (i=0; i<arr.length; i++) {<br/> &nbsp;document.write(arr[i] + '<b>'); //1,2,3 / 4,5,6 / 7,8,9<br/>}<br/><br/>arr = [1,2,3,4,5,6,7,8,9];<br/>for (i in arr) {<br/> &nbsp;document.write(arr[i] + '<br/>'); //1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9<br/>}<br/><br/>arr = new Array([1,2,3], [4,5,6], [7,8,9]);<br/>for (i in arr) {<br/> &nbsp;document.write(arr[i] + '<br/>'); //1,2,3 / 4,5,6 / 7,8,9<br/>}<br/><br/>for (i in arr) for (j in arr[i])<br/> &nbsp;document.write(arr[i][j] + '<br/>'); //1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9<br/><br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=%E6%95%B0%E7%BB%84" rel="tag">数组</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?436</link>
<title><![CDATA[Javascript的IE和Firefox兼容性汇编 ]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Thu, 04 Jun 2009 06:22:19 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?436</guid> 
<description>
<![CDATA[ 
	1. document.form.item 问题<br/> &nbsp; &nbsp;(1)现有问题：<br/> &nbsp; &nbsp; &nbsp; &nbsp;现有代码中存在许多 document.formName.item("itemName") 这样的语句，不能在 MF 下运行<br/> &nbsp; &nbsp;(2)解决方法：<br/> &nbsp; &nbsp; &nbsp; &nbsp;改用 document.formName.elements["elementName"]<br/> &nbsp; &nbsp;(3)其它<br/> &nbsp; &nbsp; &nbsp; &nbsp;参见 2<br/><br/>2. 集合类对象问题<br/> &nbsp; &nbsp;(1)现有问题：<br/> &nbsp; &nbsp; &nbsp; &nbsp;现有代码中许多集合类对象取用时使用 ()，IE 能接受，MF 不能。<br/> &nbsp; &nbsp;(2)解决方法：<br/> &nbsp; &nbsp; &nbsp; &nbsp;改用 [] 作为下标运算。如：document.forms("formName") 改为 document.forms["formName"]。<br/> &nbsp; &nbsp; &nbsp; &nbsp;又如：document.getElementsByName("inputName")(1) 改为 document.getElementsByName("inputName")[1]<br/> &nbsp; &nbsp;(3)其它<br/><br/>3. window.event<br/> &nbsp; &nbsp;(1)现有问题：<br/> &nbsp; &nbsp; &nbsp; &nbsp;使用 window.event 无法在 MF 上运行<br/> &nbsp; &nbsp;(2)解决方法：<br/> &nbsp; &nbsp; &nbsp; &nbsp;MF 的 event 只能在事件发生的现场使用，此问题暂无法解决。可以这样变通：<br/> &nbsp; &nbsp; &nbsp; &nbsp;原代码(可在IE中运行)：<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="button" name="someButton" value="提交" onclick="javascript:gotoSubmit()"/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<script language="javascript"><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function gotoSubmit() {<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert(window.event); &nbsp; &nbsp;// use window.event<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</script><br/><br/><br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;新代码(可在IE和MF中运行)：<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input type="button" name="someButton" value="提交" onclick="javascript:gotoSubmit(event)"/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<script language="javascript"><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function gotoSubmit(evt) {<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;evt = evt ? evt : (window.event ? window.event : null);<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert(evt); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // use evt<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</script><br/> &nbsp; &nbsp; &nbsp; &nbsp;此外，如果新代码中第一行不改，与老代码一样的话(即 gotoSubmit 调用没有给参数)，则仍然只能在IE中运行，但不会出错。所以，这种方案 tpl 部分仍与老代码兼容。<br/><br/><br/><br/>--------------------------------------------------------------------------------<br/>对原文的补充：事件的对象，在IE中是window.event.srcElement，在Firefox中是event.target，而在Opera中则两者都支持。还是用例子来说明。 <br/>event.srcElement/event.target<br/>//***********************************<br/><HTML><br/><HEAD><br/><TITLE> event的跨浏览器测试 </TITLE><br/><SCRIPT LANGUAGE="JavaScript"><br/><!--<br/>//Firefox中在写关于event的函数的时候，必须把event对象作为参数传递给函数，这样才能使用event对象<br/>function doTestEvent( evt )<br/>{<br/> &nbsp;//如果是IE/Opera，我们就用 srcElement 来获取触发事件的对象<br/> &nbsp;//如果是Firefox，我们就用 target 来获取触发事件的对象<br/> &nbsp;var src = evt.srcElement ? evt.srcElement : evt.target;<br/> &nbsp;alert( src.value );<br/>}<br/>//--><br/></script><br/></head><br/><body><br/><br/><form name="frmtest"><br/><input type="button" value="event 测试" onclick="doTestEvent(event);" name="bttest"><br/></form><br/><br/></body><br/></html> <br/>//*********************************** <br/><br/>--------------------------------------------------------------------------------<br/><br/><br/><br/><br/><br/>4. HTML 对象的 id 作为对象名的问题<br/> &nbsp; &nbsp;(1)现有问题<br/> &nbsp; &nbsp; &nbsp; &nbsp;在 IE 中，HTML 对象的 ID 可以作为 document 的下属对象变量名直接使用。在 MF 中不能。<br/> &nbsp; &nbsp;(2)解决方法<br/> &nbsp; &nbsp; &nbsp; &nbsp;用 getElementById("idName") 代替 idName 作为对象变量使用。<br/><br/><br/><br/>5. 用idName字符串取得对象的问题<br/> &nbsp; &nbsp;(1)现有问题<br/> &nbsp; &nbsp; &nbsp; &nbsp;在IE中，利用 eval(idName) 可以取得 id 为 idName 的 HTML 对象，在MF 中不能。<br/> &nbsp; &nbsp;(2)解决方法<br/> &nbsp; &nbsp; &nbsp; &nbsp;用 getElementById(idName) 代替 eval(idName)。<br/><br/>6. 变量名与某 HTML 对象 id 相同的问题<br/> &nbsp; &nbsp;(1)现有问题<br/> &nbsp; &nbsp; &nbsp; &nbsp;在 MF 中，因为对象 id 不作为 HTML 对象的名称，所以可以使用与 HTML 对象 id 相同的变量名，IE 中不能。<br/> &nbsp; &nbsp;(2)解决方法<br/> &nbsp; &nbsp; &nbsp; &nbsp;在声明变量时，一律加上 var ，以避免歧义，这样在 IE 中亦可正常运行。<br/> &nbsp; &nbsp; &nbsp; &nbsp;此外，最好不要取与 HTML 对象 id 相同的变量名，以减少错误。<br/> &nbsp; &nbsp;(3)其它<br/> &nbsp; &nbsp; &nbsp; &nbsp;参见 问题4<br/><br/>7. event.x 与 event.y 问题<br/> &nbsp; &nbsp;(1)现有问题<br/> &nbsp; &nbsp; &nbsp; &nbsp;在IE 中，event 对象有 x, y 属性，MF中没有。<br/> &nbsp; &nbsp;(2)解决方法<br/> &nbsp; &nbsp; &nbsp; &nbsp;在MF中，与event.x 等效的是 event.pageX。但event.pageX IE中没有。<br/> &nbsp; &nbsp; &nbsp; &nbsp;故采用 event.clientX 代替 event.x。在IE 中也有这个变量。<br/> &nbsp; &nbsp; &nbsp; &nbsp;event.clientX 与 event.pageX 有微妙的差别（当整个页面有滚动条的时候），不过大多数时候是等效的。<br/><br/><br/><br/> &nbsp; &nbsp; &nbsp; &nbsp;如果要完全一样，可以稍麻烦些：<br/> &nbsp; &nbsp; &nbsp; &nbsp;mX = event.x ? event.x : event.pageX;<br/> &nbsp; &nbsp; &nbsp; &nbsp;然后用 mX 代替 event.x<br/> &nbsp; &nbsp;(3)其它<br/> &nbsp; &nbsp; &nbsp; &nbsp;event.layerX 在 IE 与 MF 中都有，具体意义有无差别尚未试验。<br/><br/><br/><br/>8. 关于frame<br/> &nbsp; (1)现有问题<br/> &nbsp; &nbsp; &nbsp; &nbsp; 在 IE中 可以用window.testFrame取得该frame，mf中不行<br/> &nbsp; (2)解决方法<br/> &nbsp; &nbsp; &nbsp; &nbsp; 在frame的使用方面mf和ie的最主要的区别是：<br/>如果在frame标签中书写了以下属性：<br/><frame src="/xx.htm" id="frameId" name="frameName" /><br/>那么ie可以通过id或者name访问这个frame对应的window对象<br/>而mf只可以通过name来访问这个frame对应的window对象<br/>例如如果上述frame标签写在最上层的window里面的htm里面，那么可以这样访问<br/>ie： window.top.frameId或者window.top.frameName来访问这个window对象<br/>mf： 只能这样window.top.frameName来访问这个window对象<br/><br/>另外，在mf和ie中都可以使用window.top.document.getElementById("frameId")来访问frame标签<br/>并且可以通过window.top.document.getElementById("testFrame").src = 'xx.htm'来切换frame的内容<br/>也都可以通过window.top.frameName.location = 'xx.htm'来切换frame的内容<br/>关于frame和window的描述可以参见bbs的‘window与frame’文章<br/>以及/test/js/test_frame/目录下面的测试<br/>----adun 2004.12.09修改<br/><br/>9. 在mf中，自己定义的属性必须getAttribute()取得<br/>10.在mf中没有 &nbsp;parentElement parement.children &nbsp;而用<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parentNode parentNode.childNodes<br/> &nbsp; childNodes的下标的含义在IE和MF中不同，MF使用DOM规范，childNodes中会插入空白文本节点。<br/> &nbsp;一般可以通过node.getElementsByTagName()来回避这个问题。<br/> &nbsp; 当html中节点缺失时，IE和MF对parentNode的解释不同，例如<br/> &nbsp; <form><br/> &nbsp; <table><br/> &nbsp; &nbsp; &nbsp; &nbsp;<input/><br/> &nbsp; </table><br/> &nbsp; </form><br/> &nbsp; MF中input.parentNode的值为form, 而IE中input.parentNode的值为空节点<br/><br/><br/><br/> &nbsp;MF中节点没有removeNode方法，必须使用如下方法 node.parentNode.removeChild(node)<br/><br/>11.const 问题<br/> &nbsp;(1)现有问题:<br/> &nbsp; &nbsp; 在 IE 中不能使用 const 关键字。如 const constVar = 32; 在IE中这是语法错误。<br/> &nbsp;(2)解决方法:<br/> &nbsp; &nbsp; 不使用 const ，以 var 代替。<br/><br/>12. body 对象<br/> &nbsp; MF的body在body标签没有被浏览器完全读入之前就存在，而IE则必须在body完全被读入之后才存在<br/><br/>13. url encoding<br/>在js中如果书写url就直接写&不要写&amp;例如var url = 'xx.jsp?objectName=xx&amp;objectEvent=xxx';<br/>frm.action = url那么很有可能url不会被正常显示以至于参数没有正确的传到服务器<br/>一般会服务器报错参数没有找到<br/>当然如果是在tpl中例外，因为tpl中符合xml规范，要求&书写为&amp;<br/>一般MF无法识别js中的&amp;<br/><br/><br/>14. nodeName 和 tagName 问题<br/> &nbsp;(1)现有问题：<br/> &nbsp; &nbsp; 在MF中，所有节点均有 nodeName 值，但 textNode 没有 tagName 值。在 IE 中，nodeName 的使用好象<br/> &nbsp; &nbsp; 有问题（具体情况没有测试，但我的IE已经死了好几次）。<br/> &nbsp;(2)解决方法：<br/> &nbsp; &nbsp; 使用 tagName，但应检测其是否为空。<br/><br/>15. 元素属性<br/> &nbsp; IE下 input.type属性为只读，但是MF下可以修改<br/><br/><br/>16. document.getElementsByName() 和 document.all[name] 的问题<br/> &nbsp;(1)现有问题：<br/> &nbsp; &nbsp; 在 IE 中，getElementsByName()、document.all[name] 均不能用来取得 div 元素（是否还有其它不能取的元素还不知道）。<br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=ie" rel="tag">ie</a> , <a href="tag.php?tag=firefox" rel="tag">firefox</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?434</link>
<title><![CDATA[JS多文件上传FF和IE的兼容性问题]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 25 May 2009 10:30:09 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?434</guid> 
<description>
<![CDATA[ 
	　　今天用js做了一个多文件上传的功能，页面中使用js的insertCell(0).innerHTML增加上传的文件框，结果IE下多图上传正常，FF下新增加的文件框就是不起作用，刚开始还以为是js兼容性问题。去查了半天的资料都没搞好。结果没想到是form标签的问题，一般我们为了隐藏form标签的自动空行的显示效果，我们都是把form放到<table ><tbody><form>这样的地方。就是这样放form影响了FF的正确判断，所以只要把<from>放到<table>的外面就一切正常了。本文由BIWEB网站系统创始人ArthurXF倾情奉献，请多多关注www.biweb.cn<br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=%E5%A4%9A%E5%9B%BE%E4%B8%8A%E4%BC%A0" rel="tag">多图上传</a> , <a href="tag.php?tag=firefox" rel="tag">firefox</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?432</link>
<title><![CDATA[JS中的内置对象相关属性]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Thu, 21 May 2009 04:39:10 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?432</guid> 
<description>
<![CDATA[ 
	<p>1.Date<br />属性(1):<br />constructor 所建立对象的函数参考<br />prototype 能够为对象加入的属性和方法</p><p>方法(43):<br />getDay() 返回一周中的第几天(0-6)<br />getYear() 返回年份.2000年以前为2位,2000(包含)以后为4位<br />getFullYear() 返回完整的4位年份数<br />getMonth() 返回月份数(0-11)<br />getDate() 返回日(1-31)<br />getHours() 返回小时数(0-23)<br />getMinutes() 返回分钟(0-59)<br />getSeconds() 返回秒数(0-59)<br />getMilliseconds() 返回毫秒(0-999)<br />getUTCDay() 依据国际时间来得到现在是星期几(0-6)<br />getUTCFullYear() 依据国际时间来得到完整的年份<br />getUTCMonth() 依据国际时间来得到月份(0-11)<br />getUTCDate() 依据国际时间来得到日(1-31)<br />getUTCHours() 依据国际时间来得到小时(0-23)<br />getUTCMinutes() 依据国际时间来返回分钟(0-59)<br />getUTCSeconds() 依据国际时间来返回秒(0-59)<br />getUTCMilliseconds()依据国际时间来返回毫秒(0-999)<br />getTime() 返回从1970年1月1号0:0:0到现在一共花去的毫秒数<br />getTimezoneoffset() 返回时区偏差值,即格林威治平均时间(GMT)与运行脚本的计算机所处时区设置之间相差的分钟数)<br />parse(dateString) 返回在Date字符串中自从1970年1月1日00:00:00以来的毫秒数<br />setYear(yearInt) 设置年份.2位数或4位数<br />setFullYear(yearInt)设置年份.4位数<br />setMonth(monthInt) 设置月份(0-11)<br />setDate(dateInt) 设置日(1-31)<br />setHours(hourInt) 设置小时数(0-23)<br />setMinutes(minInt) 设置分钟数(0-59)<br />setSeconds(secInt) 设置秒数(0-59)<br />setMilliseconds(milliInt) 设置毫秒(0-999)<br />setUTCFullYear(yearInt) 依据国际时间来设置年份<br />setUTCMonth(monthInt) 依据国际时间来设置月(0-11)<br />setUTCDate(dateInt) 依据国际时间来设置日(1-31)<br />setUTCHours(hourInt) 依据国际时间来设置小时<br />setUTCMinutes(minInt) 依据国际时间来设置分钟<br />setUTCSeconds(secInt) 依据国际时间来设置秒<br />setUTCMilliseconds(milliInt)依据国际时间来设置毫秒<br />setTime(timeInt) 设置从1970年1月1日开始的时间.毫秒数<br />toGMTString() 根据格林威治时间将Date对象的日期(一个数值)转变成一个GMT时间字符串,如:Weds,15 June l997 14:02:02 GMT<br />toUTCString() 根据通用时间将一个Date对象的日期转换为一个字符串<br />toLocaleString() 把Date对象的日期(一个数值)转变成一个字符串,使用所在计算机上配置使用的特定日期格式<br />toSource() 显示对象的源代码<br />toString() 将日期对象转换为字符串<br />UTC(yyyy, mm, dd, hh, mm, ss, msec)返回从格林威治标准时间到指定时间的差距,单位为毫秒<br />valueOf() 返回日期对象的原始值 </p><p>2.Math<br />属性:<br />constructor 所建立对象的函数参考 <br />prototype 能够为对象加入的属性和方法<br />E 欧拉常量,自然对数的底(约等于2.718)<br />LN2 2的自然对数(约等于0.693)<br />LN10 10的自然对数(约等于2.302)<br />LOG2E 以2为底的e的对数.(约等于1.442)<br />LOG10E 以10为底的e的对数(约等于0.434)<br />PI &prod;的值(约等于3.14159)<br />SQRT1_2 1/2(0.5)的平方根(即l除以2的平方根,约等于o.707)<br />SQRT2 2的平方根(约等于1.414)</p><p>方法:<br />abs(x) 返回数字的绝对值<br />acos(x) 返回数字的反余弦值<br />asin(x) 返回数字的反正弦值<br />atan(x) 返回位于-PI/2 和 PI/2 的反正切值<br />atan2(y,x) 返回（x,y）位于 -PI 到 PI 之间的角度<br />ceil(x) 返回 x 四舍五入后的最大整数<br />cos(x) 返回一个数字的余弦值<br />exp(x) 返回 E^x 值<br />floor(x) 返回 x 四舍五入后的最小整数<br />log(x) 返回底数为E的自然对数<br />max(x,y) 返回 x 和 y 之间较大的数<br />min(x,y) 返回 x 和 y 之间较小的数<br />pow(x,y) 返回 y^x 的值<br />random() 返回位于 0 到 1 之间的随机函数<br />round(x) 四舍五入后取整<br />sin(x) 返回数字的正弦值<br />sqrt(x) 返回数字的平方根<br />tan(x) 返回一个角度的正切值<br />toSource() 显示对象的源代码<br />valueOf() 返回数学对象的原始值</p><p>3.Number<br />属性:<br />MAX_VALUE The largest possible value a number in JavaScript can have 1.7976931348623157E+308<br />MIN_VALUE The smallest possible value a number in JavaScript can have 5E-324<br />NaN Equal to a value that is not a number.<br />NEGATIVE_INFINITY A value that is less than MIN_VALUE.<br />POSOTIVE_INFINITY A value that is greater than MAX_VALUE.<br />prototype A static property of the Number object</p><p>方法:<br />toString Returns a string representing the specified object <br />valueOf() 返回数学对象的原始值</p><p>4.Boolean<br />属性:<br />constructor 所建立对象的函数参考 <br />prototype 能够为对象加入的属性和方法 </p><p>方法:<br />toSource() 显示对象的源代码<br />toString() 将布尔值转换为字符串,并且返回结果<br />valueOf() 返回布尔对象的原始值</p><p><br />5.String<br />属性:<br />constructor 所建立对象的函数参考<br />prototype 能够为对象加入的属性和方法<br />length 返回字符串的字符长度</p><p>方法(20):<br />anchor(&quot;name&quot;)用来把字符串转换为HTML锚点标记内(&lt;A NAME=&gt;)<br />big() 把字符串中的文本变成大字体(&lt;BIG&gt;)<br />blink() 把字符串中的文本变成闪烁字体(&lt;BLINK&gt;)<br />bold() 把字符串中的文本变成黑字体(&lt;B&gt;)<br />fixed() 把字符串中的文本变成固定间距字体,即电报形式(&lt;TT&gt;)<br />fontcolor(color)设置字符串中文本的颜色(&lt;FONT COLOR=&gt;)<br />Fontsize(size) 把字符串中的文本变成指定大小(&lt;FONTSIZE=&gt;)<br />italics() 把字符串中的文本变成斜字体(&lt;I&gt;)<br />Link(url)用来把字符串转换-HTML链接标记中(&lt;A HREF=&gt;)<br />small() 把字符串中的文本变成小字体(&lt;SMALL&gt;)<br />strike() 把字符串中的文本变成划掉字体(&lt;STRIKE&gt;)<br />sub() 把字符串中的文本变成下标(subscript)字体((SUB&gt;)<br />sup() 把字符串中的文本变成上标(superscript)字体(&lt;SUP&gt;)</p><p>charAt(index) 返回指定索引处的字符<br />charCodeAt(index)返回一个整数,该整数表示String对象中指定位置处的字符的Unicode编码<br />concat(string2)连接两条或多条字符串 <br />fromCharCode(num1, num2, &hellip;, numN)获取指定的Unicode值并返回字符串<br />indexOf(searchString, startIndex) 返回字符串中第一个出现指定字符串的位置<br />lastlndexOf(searchString, startIndex) 返回字符串中最后一个出现指定字符串的位置<br />match(regex) 在字符串中查找指定值<br />replace(regex, newString)将字符串中的某些字符替换成其它字符<br />search(regex) 针对某执行值对字符串进行查找<br />slice(startIndex, endIndex)将部分字符抽出并在新的字符串中返回剩余部分<br />split(delimiter)将字符串分配为数组<br />substr(startIndex, length) 从startIndex取,取length个字符<br />substring(startIndex, endIndex) 从startIndex和endIndex之间的字符,不包括endIndex</p><p>toLowerCase() 把字符串中的文本变成小写<br />toUpperCase() 把字符串中的文本变成大写<br />toSource() 显示对象的源代码<br />valueOf() 返回字符串对象的原始值</p><p>6.Array<br />属性:<br />constructor 所建立对象的函数参考<br />prototype 能够为对象加入的属性和方法<br />index For an array created by a regular expression match, the zero-based index of the match in the string.<br />input For an array created by a regular expression match, reflects the original string against which the regular expression was matched.<br />length 获取数组元素的个数,即最大下标加1</p><p>方法(13):<br />concat(array1,arrayn)将两个或两个以上的数组值连接起来,合并后返回结果<br />join(string) 将数组中元素合并为字符串,string为分隔符.如省略参数则直接合并,不再分隔<br />pop() 移除数组中的最后一个元素并返回该元素<br />push(value) 在数组的末尾加上一个或多个元素,并且返回新的数组长度值<br />reverse() 颠倒数组中元素的顺序,反向排列<br />shift() 移除数组中的第一个元素并返回该元素<br />slice(start, deleteCount, [item1[, item2[,...[,itemN]]]]) 返从一个数组中移除一个或多个元素,如果必要,在所移除元素的位置上插入新元素,返回所移除的元素<br />sort(compare Function) 在未指定排序号的情况下,按照元素的字母顺序排列,如果不是字符串类型则转换成字符串再排序,返回排序后的数组<br />splice() 为数组删除并添加新的元素<br />toSource() 显示对象的源代码<br />toString() 将数组所有元素返回一个字符串,其间用逗号分隔<br />unshift(value)为数组的开始部分加上一个或多个元素,并且返回该数组的新长度<br />valueOf() 返回数组对象的原始值</p><p>7.RegExp<br />属性:<br />$1, ..., $9 Parenthesized substring matches, if any. <br />$_ See input. <br />$* See multiline. <br />$&amp; See lastMatch. <br />$+ See lastParen. <br />$` See leftContext. <br />$' See rightContext. <br />global Whether or not to test the regular expression against all possible matches in a string, or only against the first. <br />ignoreCase Whether or not to ignore case while attempting a match in a string. <br />input The string against which a regular expression is matched. <br />lastIndex The index at which to start the next match. <br />lastMatch The last matched characters. <br />lastParen The last parenthesized substring match, if any. <br />leftContext The substring preceding the most recent match. <br />multiline Whether or not to search in strings across multiple lines. <br />rightContext The substring following the most recent match. <br />source The text of the pattern. </p><p>方法:<br />compile Compiles a regular expression object. <br />exec Executes a search for a match in its string parameter. <br />test Tests for a match in its string parameter </p><p>8.Function<br />属性:<br />arguments An array corresponding to the arguments passed to a function. <br />arity Indicates the number of arguments expected by the function. <br />caller Specifies which function called the current function. <br />prototype Allows the addition of properties to a Function object. </p><p>方法:<br />toString Returns a string representing the specified object. </p><p>9.Object<br />属性:<br />constructor Specifies the function that creates an object's prototype. <br />prototype Allows the addition of properties to all objects. </p><p>方法:<br />eval Evaluates a string of JavaScript code in the context of the specified object. <br />toString Returns a string representing the specified object. <br />unwatch Removes a watchpoint from a 属性源 the object. <br />valueOf Returns the primitive value of the specified object. <br />watch Adds a watchpoint to a 属性源 the object. </p><p>10.全局<br />属性:<br />Infinity 指定一个正负无穷大的数值<br />NaN 指定一个 &ldquo;非数字&rdquo; 值<br />undefined 指定一个未被赋值的变量</p><p>方法:<br />decodeURI() 为加密的URI进行解码<br />decodeURIComponent() 为加密的URI组件解码<br />encodeURI() 将字符串加密为URI<br />encodeURIComponent() 将字符串加密为URI组件<br />escape(string) 加密一个字符串<br />unescape() 使用escape()对一个字符串进行解码<br />eval(string) 判断一个字符串并将其以脚本代码的形式执行<br />isFinite(number) 检测一个值是否为一个有限数字,返回True或False<br />isNaN(string) 检测一个值是否不是一个有限数字<br />Number() 将一个对象的值转换为一个数字<br />parseFloat(string) 将一个字符串解析为一个浮点数字<br />parseInt(string) 将一个字符串解析为一个整数,不是四舍五入操作,而是切尾<br />String(object) 将一个对象值转换为一个字符串<br />number(object)</p><p>11.事件<br />属性:<br />a.窗口事件,只在body和frameset元素中才有效<br />onload 页面或图片加载完成时<br />onunload 用户离开页面时</p><p>b.表单元素事件,在表单元素中才有效<br />onchange 框内容改变时<br />onsubmit 点击提交按钮时<br />onreset 重新点击鼠标按键时<br />onselect 文本被选择时<br />onblur 元素失去焦点时<br />onfocus 当元素获取焦点时</p><p>c.键盘事件,在base,bdo,br,frame,frameset,head,html,iframe,meta,param,script,style,title元素里都无效<br />onkeydown 按下键盘按键时<br />onkeypress 按下或按住键盘按键时<br />onkeyup 放开键盘按键时</p><p>d.在base,bdo,br,frame,frameset,head,html,iframe,meta,param,script,style,title元素里都无效<br />onclick 鼠标点击一个对象时<br />ondblclick 鼠标双击一个对象时<br />onmousedown 鼠标被按下时<br />onmousemove 鼠标被移动时<br />onmouseout 鼠标离开元素时<br />onmouseover 鼠标经过元素时<br />onmouseup 释放鼠标按键时</p><p>e.其他<br />onresize 当窗口或框架被重新定义尺寸时<br />onabort 图片下载被打断时<br />onerror 当加载文档或图片时发生错误时</p><p><br />自定义对象:有初始化对象和定义构造函数的对象两种方法<br />a：初始化对象<br />例如： 对象={属性1:值1;属性2:值2;......属性n:值n} 注意:每个属性/值对之间用分号隔开；</p><p>b： 定义构造函数的对象<br />例如: <br />function 函数名(属性1, 属性2,......属性N){<br />this.属性1=属性值1;<br />this.属性2=属性值2;<br />this.属性n=属性值n;</p><p>this.方法名1=函数名1;<br />this.方法名2=函数名2;<br />}</p><p>注意：方法名和函数名可以同名,但是在方法调用函数前,函数必须已经定义好,否则会出错</p><p>为自定义的函数创建新的实例一样是使用 new 语句。</p><p></p><p></p><p></p><p>SCRIPT 标记 </p><p>用于包含JavaScript代码. </p><p>属性 </p><p>LANGUAGE 定义脚本语言 <br />SRC 定义一个URL用以指定以.JS结尾的文件 </p><p><br />window对象 </p><p>每个HTML文档的顶层对象. </p><p>属性 </p><p>frames[] 子桢数组.每个子桢数组按源文档中定义的顺序存放. <br />feames.length 子桢个数. <br />self 当前窗口. <br />parent 父窗口(当前窗口是中一个子窗口). <br />top 顶层窗口(是所有可见窗口的父窗口). <br />status 浏览器状态窗口上的消息. <br />defaultStatus 当status无效时,出现在浏览器状态窗口上的缺省消息. <br />name 内部名,为由window.open()方法打开的窗口定义的名字. </p><p>方法 </p><p>alert(&quot;message&quot;) 显示含有给定消息的&quot;JavaScript Alert&quot;对话框. <br />confirm(&quot;message&quot;) 显示含有给定消息的&quot;Confirm&quot;对话框(有一个OK按钮和一个Cancel按钮).如果用户单击OK返回true,否则返回false. <br />prompt(&quot;message&quot;) 显示一个&quot;prompt&quot;对话框,要求用户根据显示消息给予相应输入. <br />open(&quot;URL&quot;,&quot;name&quot;) 打开一个新窗口,给予一个指定的名字. <br />close() 关闭当前窗口. </p><p>frame对象 </p><p>它是整个浏览器窗口的子窗口,除了status,defaultStatus,name属性外,它拥有window对象的全部属性. </p><p><br />location对象 </p><p>含有当前URL的信息. </p><p>属性 </p><p>href 整个URL字符串. <br />protocol 含有URL第一部分的字符串,如http: <br />host 包含有URL中主机名:端口号部分的字符串.如<a href="http://www.biweb.cn/">www.biweb.cn</a> <br />hostname 包含URL中主机名的字符串.如<a href="http://www.biweb.cn/" target="_blank">http://www.biweb.cn/</a><br />port 包含URL中可能存在的端口号字符串. <br />pathname URL中&quot;/&quot;以后的部分.如~list/index.htm <br />hash &quot;#&quot;号(CGI参数)之后的字符串. <br />search &quot;?&quot;号(CGI参数)之后的字符串. </p><p><br />document对象 </p><p>含有当前文档信息的对象. </p><p>属性 </p><p>title 当前文档标题,如果未定义,则包含&quot;Untitled&quot;. <br />location 文档的全URL. <br />lastModified 含有文档最后修改日期. <br />referrer 调用者URL,即用户是从哪个URL链接到当前页面的. <br />bgColor 背景色(#xxxxxx) <br />fgColor 前景文本颜色. <br />linkColor 超链接颜色. <br />vlinkColor 访问过的超链颜色. <br />alinkColor 激活链颜色(鼠标按住未放时). <br />forms[] 文档中form对象的数组,按定义次序存储. <br />forms.length 文档中的form对象数目. <br />links[] 与文档中所有HREF链对应的数组对象,按次序定义存储. <br />links.length 文档中HREF链的数目. <br />anchors[] 锚(...)数组,按次序定义存储. <br />anchors.length 文档中锚的数目. </p><p>方法 </p><p>write(&quot;string&quot;) 将字符串突出给当前窗口.(字符串可以含有HTML标记) <br />writeln(&quot;string&quot;) 与write()类似,在结尾追加回车符,只在预定格式文本中生效. <br />clear() 清当前窗口. <br />close() 关闭当前窗口. </p><p></p><p>form对象 </p><p>属性 </p><p>name 中的NAME属性的字符串值. <br />method 中METHOD属性的类值,&quot;0&quot;=&quot;GET&quot; ,&quot;1&quot;=&quot;POST&quot; . <br />action 中ACTION属性的字符串值. <br />target 表格数据提交的目标,与标记中相应属性一致. <br />elements[index] elements属性包含form中的各个元素. <br />length 表格中的元素个数. </p><p>方法 </p><p>submit() 提交表格. <br />事件处理器onSubmit() 用户单击一个定义好的按钮提交form时运行的代码. </p><p>text和textarea对象 </p><p>属性 </p><p>name NAME属性的字符串值. <br />value 域内容的字符串值. <br />defaultValue 域内容的初始字符串值. </p><p>方法 </p><p>focus() 设置对象输入焦点. <br />blur() 从对象上移走输入焦点. <br />select() 选定对象的输入区域. </p><p>事件处理器 </p><p>onFocus 当输入焦点进入时执行. <br />onBlur 当域失去焦点时执行. <br />onSelect 当域中有部分文本被选定时执行. <br />onChange 当域失去焦点且域值相对于onFocus执行有所改变时执行. </p><p>复选框(checkbox)对象 </p><p>属性 </p><p>name NAME属性的字符串值. <br />value 复选框内容的字符串值.如果设置了,则为&quot;on&quot;,否则为&quot;off&quot;. <br />checked 复选框内容的布尔值.如果设置了,则为true,否则为false . <br />defaultChecked 反映(CHECKED)属性的布尔值(缺省状态). </p><p>方法 </p><p>click() 选定复选框,并使之状态为&quot;on&quot;. </p><p>事件处理器 </p><p>onClick 当用户单击Checkbox时执行. </p><p>单选按钮(radio)对象 </p><p>属性 </p><p>name NAME属性的字符串值. <br />length radio对象中单选按钮的个数. <br />value VALUE属性的字符串值. <br />checked 布尔值,按下为true,否则为false . <br />defaultChecked 反映CHECKED属性值的布尔值. </p><p>方法 </p><p>click() 选定单选按钮. </p><p>事件处理器 </p><p>onClick 当单选按钮被选定时执行. </p><p>select对象 </p><p>属性 </p><p>length select对象中对象的个数. <br />name 由NAME=属性定义的select对象的内部名. <br />selectedIndex select对象中当前被选option的下标. <br />options 该属性对应于在HTML中定义select对象时标记中的内容,它有如下属性: <br />text 标记后的文本串. <br />value VALUE属性的值,当Submit按钮被按下时,该值被提交. <br />defaultSelected 反映标记的SELECTED属性的布尔值. <br />selected 反映option的当前选择状态的布尔值. </p><p>事件处理器 </p><p>onFocus 当输入焦点进入域时执行. <br />onBlur 当域失去输入焦点时执行. <br />onChange 当域失去焦点且如果域的值相对于onFocus执行时有所改变,则执行onChange. </p><p>Button对象 </p><p>表格中有三种类型按钮,由标记中的TYPE属性定义: <br />.submit (type=&quot;SUBMIT&quot;) <br />.reset (type=&quot;RESET&quot;) <br />.custom (type=&quot;BUTTON&quot;) </p><p>所有按钮对象都有如下成分: </p><p>属性 </p><p>value VALUE属性的字符串值. <br />name NAME属性的字符串值. </p><p>方法 </p><p>click() 选定按钮 </p><p>事件处理器 </p><p>onClick 当按钮被单击时执行. </p><p>submit和reset对象 </p><p>属性 </p><p>value VALUE=属性的内容. <br />name NAME=属性的内容. </p><p>方法 </p><p>click() 选定按钮 </p><p>事件处理器 </p><p>onClick 当按钮被单击时执行. </p><p>password对象 </p><p>属性 </p><p>defaultValue VALUE=属性的内容. <br />name NAME=属性的内容. <br />value 目前输入password域的数据. </p><p>方法 </p><p>focus() 将焦点带入password域. <br />blur() 将焦点从password域移出. <br />select() 选定password域中的当前数据,以备修改. </p><p><br />navigator对象 </p><p>该对象用于确定用户访问时使用的Navigator版本. </p><p>属性 </p><p>appCodeName 相对于用户浏览器的&quot;codename&quot; <br />appName 相对于用户浏览器的实际名字. <br />appVersion 相对于用户浏览器的版本号. <br />userAgent 该属性反映用户浏览器的全部信息. </p><p>string对象 </p><p>string对象为操作字符串的内容提供了很多方法. </p><p>属性 </p><p>length 字符串的长度,即字符串中字符的个数. </p><p>方法 </p><p>big(),blink(),bold(),fixed(),italics(),small(),sub(),strike(),sup(),fontColor(color),fontSize(size) </p><p>以上方法为字符串增加相应的HTML标记. <br />charAt(index) 返回字符串中index处的字符. <br />indexOf(searchValue,[fromIndex]) 该方法在字符串中寻找第一次出现的searchValue.如果给定了fromIndex,则从字符串内该位置开始搜索,当searchValue找到后,返回该串第一个字符的位置. <br />lastIndexOf(searchValue,[fromIndex]) 从字符串的尾部向前搜索searchValue,并报告找到的第一个实例. <br />substring(indexA,indexB) 获取自indexA到indexB的子串. <br />toLowerCase(),toUpperCase() 将字符串中所有字符全部转换成大写,小写. </p><p><br />Date对象 </p><p>要使用Date对象,必须先生成一个Date实例: </p><p>变量名=new Date(); </p><p>方法 </p><p>getDay(),getDate(),getHours(),getMinutes(),getMonth(),getSeconds(),getTime(), getTimeZoneOffset(),getYear() </p><p>还有setDay... ... </p><p>toGMTString() 用GMT格式返回当前时间. (Sun,12 Feb 1999 14:19:22 GMT) <br />toLocaleString 用locale格式返回当前时间. (03/11/99 14:19:22) <br />parse(date) 将普通date字符串转换成豪秒形式,从而给setTime()做参数. <br /></p><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?431</link>
<title><![CDATA[js访问xml之 各种对象的属性和方法]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Thu, 21 May 2009 04:10:07 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?431</guid> 
<description>
<![CDATA[ 
	节点对象属性<br/><br/>childNodes—返回节点到子节点的节点列表<br/><br/>firstChild—返回节点的首个子节点。<br/><br/>lastChild—返回节点的最后一个子节点。<br/><br/>nextSibling—返回节点之后紧跟的同级节点。<br/><br/>nodeName—返回节点的名字，根据其类型。<br/><br/>nodeType—返回节点的类型。<br/><br/>nodeValue—设置或返回节点的值，根据其类型。<br/><br/>ownerDocument—返回节点的根元素（document对象）。<br/><br/>parentNode—返回节点的父节点。<br/><br/>previousSibling—返回节点之前紧跟的同级节点。<br/><br/>text—返回节点及其后代的文本（IE独有）。<br/><br/>xml—返回节点及其后代的XML（IE独有）。<br/><br/> <br/><br/>节点对象的方法<br/><br/>appendChild()—向节点的子节点列表的结尾添加新的子节点。<br/><br/>cloneNode()—复制节点。<br/><br/>hasChildNodes()—判断当前节点是否拥有子节点。<br/><br/>insertBefore()—在指定的子节点前插入新的子节点。<br/><br/>normalize()—合并相邻的Text节点并删除空的Text节点。<br/><br/>removeChild()—删除（并返回）当前节点的指定子节点。<br/><br/>replaceChild()—用新节点替换一个子节点。<br/><br/>IE6独有<br/><br/>selectNodes()—用一个XPath表达式查询选择节点。<br/><br/>selectSingleNode()—查找和XPath查询匹配的一个节点。<br/><br/>transformNode()—使用XSLT把一个节点转换为一个字符串。<br/><br/>transformNodeToObject()—使用XSLT把一个节点转换成为一个文档。<br/><br/> <br/><br/>NodeList对象<br/><br/>length –返回节点列表中的节点数目。<br/><br/>item()—返回节点列表中处于指定的索引号的节点。<br/><br/>例如：<br/><br/>xmlDoc = loadXMLDoc(“books.xml”);<br/><br/>var x = xmlDoc.getElementsByTagName(“title”);<br/><br/>document.write(“title element:” + x.length);<br/>输出：title element:4<br/><br/>var y = xmlDoc.documentElement.childNodes;<br/><br/>document.write(y.item(0).nodeName);<br/><br/>输出：book<br/><br/> <br/><br/>NamedNodeMap对象<br/><br/>length—返回列表中节点数目。<br/><br/>getNamedItem()—返回指定的节点。（通过名称）<br/><br/>item()—返回处于指定索引号的节点。<br/><br/>removeNamedItem()—删除指定的节点（根据名称）。<br/><br/>例如：<br/><br/>xmlDoc = loadXMLDoc(“books.xml”);<br/><br/>var x = xmlDoc.getElementsByTagName(“book”);<br/><br/>document.write(x.item(0).attributes.length);<br/><br/>输出：1<br/><br/>document.write(x.item(0).attributes.getNamedItem(“category”);<br/><br/>输出：COOKING<br/><br/>x.item(0).attributes.removeNamedItem(“category”);<br/><br/>删除第一个book元素的category属性<br/><br/> <br/><br/>Document对象代表整个XML文档。<br/><br/>Document对象的属性。<br/><br/>async—规定XML文件的下载是否应当被同步处理。<br/><br/>childNodes—返回属于文档的子节点的节点列表。<br/><br/>doctype—返回与文档相关的文档类型声明。<br/><br/>documentElement—返回文档的子节点。<br/><br/>firstChild—返回文档的首个子节点。<br/><br/>implementation—返回处理该文档的DOMImplementation对象。（IE没有）<br/><br/>lastChild—返回文档的最后一个子节点。<br/><br/>nodeType—返回节点类型。<br/><br/>nodeName—依据节点的类型返回其名称。<br/><br/>nodeValue—依据节点的类型返回其值。<br/><br/>text—返回节点及其后代的文本（IE独有）。<br/><br/>xml—返回节点及其后代的XML（IE独有）。<br/><br/> <br/><br/>Document对象的方法<br/><br/>createAttribute(att_name)—创建拥有指定名称的属性节点，并返回新的属性对象。<br/><br/>createCDATASection(data)—创建CDATA区段节点。<br/><br/>createComment(data)—创建注释节点。<br/><br/>createDocumentFragment—创建空的DocumentFragment对象，并返回此对象。<br/><br/>createElement(node_name)—创建元素节点。<br/><br/>createEntityReference(name)—创建EntityReference对象，并返回此对象。（IE独有）<br/><br/>createTextNode(data)—创建文本节点。<br/><br/>getElementById(elementid)—查找具有指定的唯一ID的元素。<br/><br/>getElementsByTagName(node_name)—返回所有具有指定名称的元素节点。<br/><br/> <br/><br/> <br/><br/>例如：<br/><br/>var xmlDoc = loadXMLDoc("book.xml"); <br/><br/> <br/><br/>xmlDoc.async = false;<br/><br/> <br/><br/>var book = xmlDoc.getElementsByTagName("book");<br/><br/>var newtext1="Special Offer & Book Sale";<br/><br/>var newCDATA=xmlDoc.createCDATASection(newtext1);<br/><br/>book[0].appendChild(newCDATA);<br/><br/> <br/><br/>var newtext2="Revised September 2006";<br/><br/>var newComment=xmlDoc.createComment(newtext2);<br/><br/>book[0].appendChild(newComment);<br/><br/> <br/><br/>var var newel=xmlDoc.createElement('edition');<br/><br/>var newtext3=xmlDoc.createTextNode('First');<br/><br/>newel.appendChild(newtext3);<br/><br/>book[0].appendChild(newel);<br/><br/> <br/><br/>document.write("<xmp>" + xmlDoc.xml + "</xmp>");<br/><br/> <br/><br/>Element 对象的属性<br/><br/>attributes—返回元素的属性的NamedNodeMap<br/><br/>childNodes—返回元素的子节点的NodeList<br/><br/>firstChild—返回元素的首个子节点。<br/><br/>lastChild—返回元素的最后一个子节点。<br/><br/>nextSibling—返回元素之后紧跟的节点。<br/><br/>nodeName—返回节点的名称。<br/><br/>nodeType—返回元素的类型。<br/><br/>ownerDocument—返回元素所属的根元素（document对象）。<br/><br/>parentNode—返回元素的父节点。<br/><br/>previousSibling—返回元素之前紧跟的节点。<br/><br/>tagName—返回元素的名称。<br/><br/>text—返回节点及其后代的文本。（IE-only）<br/><br/>xml—返回节点及其后代得XML。（IE-only）<br/><br/> <br/><br/>Element对象的方法<br/><br/>appendChild(node)—向节点的子节点列表末尾添加新的子节点。<br/><br/>cloneNode(true)—克隆节点。<br/><br/>getAttribute(att_name)—返回属性的值。<br/><br/>getAttributeNode(att_name)—以 Attribute 对象返回属性节点。<br/><br/>getElementsByTagName(node_name)—找到具有指定标签名的子孙元素。<br/><br/>hasAttribute(att_name)—返回元素是否拥有指定的属性。<br/><br/>hasAttributes()—返回元素是否拥有属性。<br/><br/>hasChildNodes()—返回元素是否拥有子节点。<br/><br/>insertBefore(new_node,existing_node)—在已有的子节点之前插入一新的子节点。<br/><br/>removeAttribute(att_name)—删除指定的属性。<br/><br/>removeAttributeNode(att_node)—删除指定的属性节点。<br/><br/>removeChild(node)—删除子节点。<br/><br/>replaceChild(new_node,old_node)—替换子节点。<br/><br/>setAttribute(name,value)—添加新的属性或者改变属性的值。<br/><br/>setAttribute(att_node)—添加新的属性。<br/><br/> <br/><br/> <br/><br/>x=xmlDoc.getElementsByTagName('book');<br/><br/> <br/><br/>for(i=0;i<x.length;i++)<br/><br/>{<br/><br/>attnode=x.item(i).getAttributeNode("category");<br/><br/>document.write(attnode.name);<br/><br/>document.write(" = ");<br/><br/>document.write(attnode.value);<br/><br/>document.write("<br />");<br/><br/>}<br/><br/> <br/><br/>for(i=0;i<x.length;i++){<br/><br/>document.write(x[i].getAttribute('category'));<br/><br/>document.write("<br />");<br/><br/>}<br/><br/> <br/><br/> <br/><br/>xmlDoc=loadXMLDoc("/example/xdom/books.xml");<br/><br/>x=xmlDoc.getElementsByTagName('book');<br/><br/> <br/><br/>document.write(x[0].getAttribute('category'));<br/><br/>document.write("<br />");<br/><br/> <br/><br/>x[0].removeAttribute('category');<br/><br/> <br/><br/>document.write(x[0].getAttribute('category'));<br/><br/>var attnode = x[1].getAttributeNode("category");<br/><br/>var y = x[1].removeAttributeNode(attnode);<br/><br/>document.write("<xmp>" + xmlDoc.xml + "</xmp>");<br/><br/> <br/><br/>function get_lastchild(n)<br/><br/>{<br/><br/> x = n.lastChild;<br/><br/> while(x.noteType!=1){<br/><br/> &nbsp; x = x.previousSibling;<br/><br/> }<br/><br/> return x;<br/><br/>}<br/><br/> <br/><br/>function get_firstChild(n){<br/> x = n.firstChild;<br/><br/> whild(x.nodeType!=1){<br/><br/> &nbsp;x=x.nextSibling;<br/><br/> }<br/><br/> return x;<br/><br/>}<br/><br/> <br/><br/>xmlDoc=loadXMLDoc("books.xml");<br/><br/>x=xmlDoc.getElementsByTagName("book")[0];<br/><br/>deleted_node=x.removeChild(get_lastchild(x));<br/><br/>document.write("Node removed: " + deleted_node.nodeName);<br/><br/> <br/><br/>Attr对象<br/><br/>Attr 对象表示 Element 对象的属性。<br/><br/>name—返回属性的名称。<br/><br/>nodeName—返回节点的名称，依据其类型<br/><br/>nodeType—返回节点的类型。<br/><br/>nodeValue—设置或返回节点的值，依据其类型<br/><br/>ownerDocument—返回属性所属的根元素（document对象）。<br/><br/>specified—如果属性值被设置在文档中，则返回 true，如果其默认值被设置在 DTD/Schema 中，则返回 false。<br/><br/>value—设置或返回属性的值。<br/><br/>text—返回属性的文本。IE-only。<br/><br/>xml—返回属性的 XML。IE-only。<br/><br/> <br/><br/>Text对象的属性<br/><br/>data—设置或返回元素或属性的文本。<br/><br/>length—返回元素或属性的文本长度。<br/><br/> <br/><br/>Text对象的方法<br/><br/>appendData(string)—向节点追加数据。<br/><br/>deleteData(start,length)—从节点删除数据。<br/><br/>insertData(start,string)— 向节点中插入数据。<br/><br/>replaceData(start,length,string)—替换节点中的数据。<br/><br/>replaceData(offset)— 把一个 Text 节点分割成两个。<br/><br/>substringData(start,length)— 从节点提取数据。<br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?430</link>
<title><![CDATA[JS对象的属性和方法总结]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Thu, 21 May 2009 04:07:44 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?430</guid> 
<description>
<![CDATA[ 
	数组(Array)：系列元素的有序集合；属性：<br/><br/>length：用于获取数组元素的个数，既最大下标加 1<br/><br/>方法：<br/><br/>sort(function):在未指定排序号的情况下,按照元素的字母顺序排列,如果不是字符串类型则转换成字符串,在排序;<br/><br/>reverse():颠倒数组中元素的顺序；<br/><br/>concat(array1,arrayn):用于将N个数组合并到array1数组中；<br/><br/>join(string):用于将数组中元素合并为字符串，string为分隔符，如省略参数，则直接合并，不加分隔；<br/><br/>slice(start,stop):用于返回数组中start到stop中的元素，如果参数为负，则表示倒数start或stop个元素；<br/><br/>toString():将数组所有元素返回一个字符串，其间用逗号分隔；<br/><br/>字符串（string）:<br/><br/>属性 ：<br/><br/>length:用于返回字符串的长度，用法与数组一样；<br/><br/>方法：<br/><br/>anchor():该方法创建如同HTML中的anchor一样的标记，格式 <a name="" .....> ,通过下列方法访问 string.anchor(chorName)<br/>　　　　　 例如 document.write("到google察看更多"+myLink.link("http://www.google.cn/"))<br/><br/>toUpperCase():将字符串转换成大写；<br/><br/>toLowerCase():将字符串转换成小写；<br/><br/>indexOf(a,b):从第 b 个字符查找字符 a 在字符串中出现的位置并返回,如果 b 省略，则默认从 0 位置查找；<br/><br/>chartAt(i):返回字符串中第 i 个字符；<br/><br/>substring(start,end):返回字符串中从 start - end 之间的全部字符（但是不返回end本身那个字符哦）；<br/><br/>sub():将指定的字符串用下标格式显示;<br/><br/>日期(Date)：<br/><br/>定义方法：<br/><br/>a: var newdt=new Date() -->创建时间对象并赋值为当前时间; <br/>b: var newdt=new Date(milliseconds) --> 创建时间对象，且以GTM的延迟时间来设置对象的值，单位为毫秒；<br/>c：var newdt=new Date(string) -->使用特定的时间字符串为新创建的时间对象赋值，其格式与Date对象的parse方法匹配；<br/>d: var newdt=new Date(年,月,日,小时,分,秒,毫秒) -->按照年,月,日,小时,分,秒,毫秒 的顺序为对象赋值;<br/><br/>方法: 分 获取时间;设置时间;格式转换<br/><br/>A:获取时间<br/><br/>getDate() -----获取当前完整时间;<br/>getYear()------获取当前的年 <br/>getMonths()----获取当前的月份<br/>getDay()-------获取当前的日期 天<br/>getHours()-----获取当前的小时<br/>getMinutes()---获取当前的分钟<br/>getSeconds()---获取当前的秒<br/>getTime()------获取当前的时间，单位 秒<br/>getTimeZoneOffset--获取当前的时区偏移信息<br/><br/>b：设置时间<br/><br/>对照上面的获取，把get换成 set 即可，例如 getDate() ---> setDate()<br/><br/>c:转换方法<br/><br/>toGTMString() ------转换成格林威治标准时间表达式的字符串；<br/>toLocaleString()----转换成当地时间表达的字符串<br/>toString()----------把时间转换成字符串<br/>parse---------------从表示时间的字符串中读出时间<br/>UTC-----------------返回从格林威治标准时间到指定时间的差距，单位为 毫秒<br/><br/><br/>--------------------------------------------------------------------------------<br/><br/><br/>属性：注意，数学对象中的属性是指读的<br/><br/>E (=2.7182) ------自然对数的底（具体意思，我不明白，唉，和数学密切的东西我都不明白，郁闷！）<br/>LN10(=2.30259) ---10的自然对数；<br/>LN2(=0.69315)-----2的自然对数；<br/>PI(=3.1415926)----圆周率<br/>SQRT1_2(=0.7071)--1/2的平方根<br/>SQRT2(=1.4142)----2的平方根<br/>LOG2E(=1.44269)---以2为底,E的对数<br/>LOG10E(=0.43429)--以10为底E的对数<br/><br/>方法: 其实用得上的不多,郁闷,全部弄出来吧<br/><br/>sin(a) ---- 求a的正弦值<br/>cos(a)------求a的余弦值<br/>tan(a)------求a的正切值<br/>asin(a)-----求a的反正弦值<br/>atan(a)-----求a的反余弦值<br/>exp(a)------求a的指数<br/>log(a)------求a的自然对数<br/>Pow(a,i)----求a的i次方（乘方）<br/>round(a)----对a进行四舍五入运算<br/>sqrt(a)-----求a的平方根<br/>abs(a)------求a的绝对值<br/>random()----取随机数<br/>max(a,b)----取较大的数<br/>min(a,b)----取较小的数<br/><br/>注意：函数的参数均是浮点类型，三角函数的参数为弧度值，而不是度<br/><br/>JavaScript的内置函数<br/><br/>escape() 与 unescape() :对字符串进行 编码与解码<br/><br/>eval(字符串):用于执行字符串所代表的运算或语句<br/>　　　　　　　例如：var a=0; var str1="a+=a"; eval(str1); <br/><br/>parseInt() 和 parseFloat():将文本框的值转换成整数 或 浮点数<br/><br/>注意：parseInt()不是对数字进行四舍五入操作，而是切尾<br/><br/>isNaN():完整的E文是（is not a number），顾名思义是 判断字符串是否是数字，例如 if(isNaN("天轰穿系列教程"))<br/><br/>自定义对象:有初始化对象和定义构造函数的对象两种方法<br/><br/>a：初始化对象<br/><br/>例如： 对象={属性1:值1;属性2:值2;......属性n:值n} ，注意，每个属性&#92;值对之间用分号隔开；<br/><br/>b： 定义构造函数的对象<br/><br/>例如: <br/>function 函数名(属性1，属性2，。。。属性N){<br/><br/>this.属性1=属性值1；<br/>this.属性2=属性值2；<br/>this.属性n=属性值n；<br/><br/>this.方法名1=函数名1；<br/>this.方法名2=函数名2；<br/><br/>}<br/><br/>注意：方法名和函数名可以同名，但是在方法调用函数前，函数必须已经定义好，否则会出错<br/><br/>为自定义的函数创建新的实例一样是使用 new 语句<br/><br/>浏览器对象<br/>window对象：他属于中央级的了，处于所有对象的最高级<br/><br/>属性：主要的有如下<br/><br/>closed----------用于判断窗口是否关闭；<br/>opener----------存放open()方法打开窗口的父窗口；<br/>defaultstatus---状态栏默认显示的信息；<br/>status----------状态栏当前显示的信息；<br/>Document,Location,History---很重要，稍后详细说，要是不想等，直接看这里<br/><br/>方法：<br/><br/>alert(text)-------------弹出一个提示信息框<br/>confirm(text)-----------确认信息框，参数为确认信息<br/>prompt(text,default)----弹出输入对话框,参数为提示信息和缺省值<br/><br/>document对象：包括当前网页的各种特征,如标题&#92;URL&#92;背景&#92;语言&#92;修改时间等<br/><br/>属性:<br/><br/>title------------文档标题<br/>lastModified-----文件最后修改时间<br/>URL--------------文档对应的页面地址<br/>Cookie-----------用来创建和获取Cookie信息<br/>bgColor----------文档的背景色<br/>fgColor----------文档的前景色<br/>location---------保存文档所有的页面地址信息<br/>alinkcolor-------激活连接的颜色<br/>linkcolor--------链接的颜色<br/>vlinkcolor-------已浏览过的链接的颜色<br/><br/>方法：<br/><br/>write(text)-----向文档写入文字或标签，不换行<br/>writeln(text)---向文档写入文字或标签,在最后一个字符处换行<br/>open()----------打开一个新文档 例如 open("地址","窗口名字","样式")<br/>close()---------关闭当前文档<br/><br/><br/>--------------------------------------------------------------------------------<br/><br/>Location对象： 包含当前文档所有的页面地址信息<br/><br/>属性：<br/><br/>protocol-----------通信协议<br/>host---------------页面所在WEB服务器的主机名称<br/>port---------------服务器通信的端口号<br/>pathname-----------文档在服务器上的路径<br/>hash---------------页面跳转的锚标记信息<br/>searce-------------页面提交到服务器上搜索的信息<br/>hostname-----------主机的名称和端口号，中间用冒号隔开<br/>href---------------完整的URL地址<br/><br/>方法：<br/><br/>assign(URL)--------将页面导航到另一个地址上去<br/>reload-------------刷新页面<br/>replace(URL)-------使用指定URL的页面代替当前页面<br/><br/><br/>--------------------------------------------------------------------------------<br/><br/>History：该对象包括以前访问过的URL信息<br/><br/>属性 ：length,返回URL数量，方法主要是 go(n) ,通过该方法载入相对的页面<br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?428</link>
<title><![CDATA[Javascript在IE和FireFox中的兼容问题]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Tue, 19 May 2009 10:27:53 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?428</guid> 
<description>
<![CDATA[ 
	1.document.formName.item("itemName") 问题<br/>说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"];Firefox下,只能使用document.formName.elements["elementName"]. <br/>解决方法:统一使用document.formName.elements["elementName"].<br/><br/>2.集合类对象问题<br/>说明:IE下,可以使用()或[]获取集合类对象;Firefox下,只能使用[]获取集合类对象. <br/>解决方法:统一使用[]获取集合类对象.<br/><br/>3.自定义属性问题<br/>说明:IE下,可以使用获取常规属性的方法来获取自定义属性,也可以使用getAttribute()获取自定义属性;Firefox下,只能使用getAttribute()获取自定义属性. <br/>解决方法:统一通过getAttribute()获取自定义属性.<br/><br/>4.eval("idName")问题<br/>说明:IE下,,可以使用eval("idName")或getElementById("idName")来取得id为idName的HTML对象;Firefox下只能使用getElementById("idName")来取得id为idName的HTML对象. <br/>解决方法:统一用getElementById("idName")来取得id为idName的HTML对象.<br/><br/>5.变量名与某HTML对象ID相同的问题<br/>说明:IE下,HTML对象的ID可以作为document的下属对象变量名直接使用;Firefox下则不能.Firefox下,可以使用与HTML对象ID相同的变量名;IE下则不能。<br/>解决方法:使用document.getElementById("idName")代替document.idName.最好不要取HTML对象ID相同的变量名,以减少错误;在声明变量时,一律加上var,以避免歧义.<br/><br/>7.input.type属性问题<br/>说明:IE下input.type属性为只读;但是Firefox下input.type属性为读写.<br/><br/>9.event.x与event.y问题<br/>说明:IE下,even对象有x,y属性,但是没有pageX,pageY属性;Firefox下,even对象有pageX,pageY属性,但是没有x,y属性. <br/>解决方法:使用mX(mX = event.x ? event.x : event.pageX;)来代替IE下的event.x或者Firefox下的event.pageX.<br/><br/>10.event.srcElement问题<br/>说明:IE下,event对象有srcElement属性,但是没有target属性;Firefox下,event对象有target属性,但是没有srcElement属性. <br/>解决方法:使用obj(obj = event.srcElement ? event.srcElement : event.target;)来代替IE下的event.srcElement或者Firefox下的event.target.<br/><br/>13.frame问题<br/>以下面的frame为例：<br/><frame src="xxx.html" id="frameId" name="frameName" /><br/><br/>(1)访问frame对象:<br/>IE:使用window.frameId或者window.frameName来访问这个frame对象.<br/>Firefox:只能使用window.frameName来访问这个frame对象.<br/>另外，在IE和Firefox中都可以使用window.document.getElementById("frameId")来访问这个frame对象.<br/><br/>(2)切换frame内容:<br/>在IE和Firefox中都可以使用window.document.getElementById("testFrame").src = "xxx.html"或window.frameName.location = "xxx.html"来切换frame的内容.<br/><br/>如果需要将frame中的参数传回父窗口，可以在frme中使用parent来访问父窗口。例如：parent.document.form1.filename.value="Aqing";<br/><br/>14.body问题<br/>Firefox的body在body标签没有被浏览器完全读入之前就存在；而IE的body则必须在body标签被浏览器完全读入之后才存在.<br/><br/>例如： <br/>Firefox： <br/><body> <br/><script type="text/javascript"> <br/>document.body.onclick = function(evt){ <br/>evt = evt &#124;&#124; window.event; <br/>alert(evt); <br/>} <br/></script> <br/></body> <br/>IE&Firefox： <br/><body><br/></body> <br/><script type="text/javascript"> <br/>document.body.onclick = function(evt){ <br/>evt = evt &#124;&#124; window.event; <br/>alert(evt); <br/>} </script><br/><br/>15. 事件委托方法<br/>IE：document.body.onload = inject; //Function inject()在这之前已被实现<br/><br/>Firefox：document.body.onload = inject();<br/><br/>有人说标准是：<br/>document.body.onload=new Function('inject()');<br/><br/>16. firefox与IE(parentElement)的父元素的区别<br/>IE：obj.parentElement<br/>firefox：obj.parentNode<br/><br/>解决方法: 因为firefox与IE都支持DOM,因此使用obj.parentNode是不错选择.<br/><br/>17.innerText在IE中能正常工作，但是innerText在FireFox中却不行.<br/>解决方法:<br/>if(navigator.appName.indexOf("Explorer") > -1){<br/><br/> &nbsp; &nbsp;document.getElementById('element').innerText = "my text";<br/><br/>} else{<br/><br/> &nbsp; &nbsp;document.getElementById('element').textContent = "my text";<br/><br/>}<br/><br/>18. FireFox中类似 obj.style.height = imgObj.height 的语句无效<br/>解决方法：<br/>obj.style.height = imgObj.height + 'px';<br/><br/>19. ie,firefox以及其它浏览器对于 table 标签的操作都各不相同，在ie中不允许对table和tr的innerHTML赋值，使用js增加一个tr时，使用appendChile方法也不管用。<br/>解决方法：<br/>//向table追加一个空行：<br/>var row = otable.insertRow(-1);<br/>var cell = document.createElement("td");<br/>cell.innerHTML = " "; <br/>cell.className = "XXXX"; <br/>row.appendChild(cell);<br/><br/>20. padding 问题<br/>padding 5px 4px 3px 1px FireFox无法解释简写,<br/><br/>必须改成 padding-top:5px; padding-right:4px; padding-bottom:3px; padding-left:1px;<br/><br/>21. 消除ul、ol等列表的缩进时<br/>样式应写成:list-style:none;margin:0px;padding:0px;<br/><br/>其中margin属性对IE有效，padding属性对FireFox有效<br/><br/>22. CSS透明<br/>IE：filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=60)。<br/><br/>FF：opacity:0.6。<br/><br/>23. CSS圆角<br/>IE：不支持圆角。<br/><br/>FF： -moz-border-radius:4px，或者-moz-border-radius-topleft:4px;-moz-border- radius-topright:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius- bottomright:4px;。<br/><br/>24. CSS双线凹凸边框<br/>IE：border:2px outset;。<br/><br/>FF： -moz-border-top-colors: #d4d0c8 white;-moz-border-left-colors: #d4d0c8 white;-moz-border-right-colors:#404040 #808080;-moz-border-bottom-colors:#404040 #808080;<br/><br/>25．ie支持document.all 而firefox 不支持<br/>改用下面三个tag的其中一个来代替document.all <br/>getElementsByTagName("tagName") 可以得到得到所有标签元素的集合<br/>getElementById("idName") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;可以按id得到某一元素<br/>getElementsByName("Name") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;可以得到按name属性得到某一元素<br/><br/>26、firefox 中使用innerHTML 的方法<br/><div id="online"></div><br/>document.all.online.innerHTML; //这种方法在IE中可以使用，但不是标准方法<br/>document.getElementById("online").innerHTML; //这样firefox就能使用innerHTML了<br/><br/>27、eval()与window.execScript()执行脚本<br/>IE、firerox均支持eval()，firefox不支持window.execScript()<br/><br/>解决：统一使用eval()<br/><br/>28、对事件处理函数的重写<br/>解决：（例）:如对document的onclick()重写，统一使用document.onclick = function(){…}<br/><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=ie" rel="tag">ie</a> , <a href="tag.php?tag=firefox" rel="tag">firefox</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?385</link>
<title><![CDATA[JS的IE和Firefox兼容性汇编]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Sun, 16 Nov 2008 04:03:02 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?385</guid> 
<description>
<![CDATA[ 
	1.1 Form对象 <br/><br/>现有问题： <br/>现有代码这获得form对象通过document.forms("formName")，这样使用在IE 能接受，FF 不能。 <br/><br/>解决方法： <br/>改用 作为下标运算。改为document.forms["formName"] <br/><br/>备注 <br/>上述的改用 作为下标运算中的formName是id而name <br/><br/><br/>1.2 HTML对象 <br/><br/>现有问题： <br/>在 IE 中，HTML 对象的 ID 可以作为 document 的下属对象变量名直接使用。在 FF 中不能。 <br/>document.all("itemName")或者document.all("itemId") <br/><br/>解决方法： <br/>使用对象ID作为对象变量名 <br/>document.getElementById("itemId") <br/><br/>备注 <br/>document.all是IE自定义的方法，所以请大家尽量不使用。 <br/>还有一种方式，在IE和FF都可以使用 <br/>var f = document.forms["formName "]; <br/>var o = f. itemId; <br/><br/><br/>1.3 DIV对象 <br/><br/>现有问题： <br/>在 IE 中，DIV对象可以使用ID作为对象变量名直接使用。在 FF 中不能。 <br/>DivId.style.display = "none" <br/><br/>解决方法： <br/>document.getElementById("DivId").style.display = "none" <br/><br/>备注 <br/>获得对象的方法不管是不是DIV对象，都使用getElementById方法。参见1.2 <br/><br/><br/>1.4 关于frame <br/><br/>现有问题 <br/>在 IE中 可以用window.testFrame取得该frame，FF中不行 <br/><br/>解决方法 <br/>在frame的使用方面FF和IE的最主要的区别是： <br/>如果在frame标签中书写了以下属性： <br/><br/>那么IE可以通过id或者name访问这个frame对应的window对象 <br/>而FF只可以通过name来访问这个frame对应的window对象 <br/>例如如果上述frame标签写在最上层的window里面的htm里面，那么可以这样访问 <br/>IE： window.top.frameId或者window.top.frameName来访问这个window对象 <br/>FF：只能这样window.top.frameName来访问这个window对象 <br/>另外，在FF和ie中都可以使用window.top.document.getElementById("frameId")来访问frame标签 <br/>并且可以通过window.top.document.getElementById("testFrame").src = 'xx.htm'来切换frame的内容 <br/>也都可以通过window.top.frameName.location = 'xx.htm'来切换frame的内容 <br/><br/><br/>1.5 窗口 <br/><br/>现有问题 <br/>IE中可以通过showModalDialog和showModelessDialog打开模态和非模态窗口，但是FF不支持。 <br/><br/>解决办法 <br/>直接使用window.open(pageURL,name,parameters)方式打开新窗口。 <br/>如果需要传递参数，可以使用frame或者iframe。 <br/><br/><br/>2.1 在JS中定义各种对象变量名时，尽量使用id，避免使用name。 <br/>在 IE 中，HTML 对象的 ID 可以作为 document 的下属对象变量名直接使用。在 FF 中不能，所以在平常使用时请尽量使用id，避免只使用name，而不使用id。 <br/><br/><br/>2.2 变量名与某 HTML 对象 id 相同的问题 <br/><br/>现有问题 <br/>在 FF 中，因为对象 id 不作为 HTML 对象的名称，所以可以使用与 HTML 对象 id 相同的变量名，IE 中不能。 &nbsp;<br/><br/>解决方法 <br/>在声明变量时，一律加上 var ，以避免歧义，这样在 IE 中亦可正常运行。 <br/>此外，最好不要取与 HTML 对象 id 相同的变量名，以减少错误。 &nbsp;<br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=ie" rel="tag">ie</a> , <a href="tag.php?tag=ff" rel="tag">ff</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?376</link>
<title><![CDATA[javascript小技巧JavaScript[对象.属性]集锦 [转载]]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Fri, 17 Oct 2008 08:45:19 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?376</guid> 
<description>
<![CDATA[ 
	<div><ul><li><span style="font-size: x-small"><strong>事件源对象</strong> <br />event.srcElement.tagName <br />event.srcElement.type</span> </li><li><span style="font-size: x-small"><strong>捕获释放 <br /></strong>event.srcElement.setCapture(); &nbsp;<br />event.srcElement.releaseCapture(); &nbsp;</span></li><li><span style="font-size: x-small"><strong>事件按键</strong> <br />event.keyCode <br />event.shiftKey <br />event.altKey <br />event.ctrlKey</span> </li><li><span style="font-size: x-small"><strong>事件返回值</strong> <br />event.returnValue</span> </li><li><span style="font-size: x-small"><strong>鼠标位置 <br /></strong>event.x <br />event.y</span> </li><li><span style="font-size: x-small"><strong>窗体活动元素 <br /></strong>document.activeElement</span> </li><li><span style="font-size: x-small"><strong>绑定事件</strong> <br />document.captureEvents(Event.KEYDOWN);</span> </li><li><span style="font-size: x-small"><strong>访问窗体元素 <br /></strong>document.all(&quot;txt&quot;).focus(); <br />document.all(&quot;txt&quot;).select();</span> </li><li><span style="font-size: x-small"><strong>窗体命令</strong> <br />document.execCommand</span> </li><li><span style="font-size: x-small"><strong>窗体COOKIE <br /></strong>document.cookie</span> </li><li><span style="font-size: x-small"><strong>菜单事件</strong> <br />document.oncontextmenu</span> </li><li><span style="font-size: x-small"><strong>创建元素 <br /></strong>document.createElement(&quot;SPAN&quot;); &nbsp;</span></li><li><span style="font-size: x-small"><strong>根据鼠标获得元素： <br /></strong>document.elementFromPoint(event.x,event.y).tagName==&quot;TD <br /></span><span style="font-size: x-small">document.elementFromPoint(event.x,event.y).appendChild(ms) &nbsp;</span></li><li><span style="font-size: x-small"><strong>窗体图片</strong> <br />document.images[索引]</span> </li><li><span style="font-size: x-small"><strong>窗体事件绑定 <br /></strong>document.onmousedown=scrollwindow;</span> </li><li><span style="font-size: x-small"><strong>元素</strong> <br />document.窗体.elements[索引]</span> </li><li><span style="font-size: x-small"><strong>对象绑定事件 <br /></strong>document.all.xxx.detachEvent('onclick',a);</span> </li><li><span style="font-size: x-small"><strong>插件数目</strong> <br />navigator.plugins</span> </li><li><span style="font-size: x-small"><strong>取变量类型 <br /></strong>typeof($js_libpath) == &quot;undefined&quot;</span> </li><li><span style="font-size: x-small"><strong>下拉框 <br /></strong></span><span style="font-size: x-small">下拉框.options[索引] <br />下拉框.options.length</span> </li><li><span style="font-size: x-small"><strong>查找对象</strong> <br />document.getElementsByName(&quot;r1&quot;); <br />document.getElementById(id); </span></li><li><span style="font-size: x-small"><strong>定时 <br /></strong>timer=setInterval('scrollwindow()',delay); <br />clearInterval(timer);</span> </li><li><span style="font-size: x-small"><strong>UNCODE编码 <br /></strong>escape() ,unescape</span> </li><li><span style="font-size: x-small"><strong>父对象</strong> <br />obj.parentElement(dhtml) <br />obj.parentNode(dom)</span> </li><li><span style="font-size: x-small"><strong>交换表的行 <br /></strong>TableID.moveRow(2,1)</span><span style="font-size: x-small"><strong> </strong></span><span style="font-size: x-small"><li><strong><span style="font-size: x-small"><strong>替换CSS</strong> <br /></span>document.all.csss.href = &quot;a.css&quot;;<span style="font-size: x-small"><strong> </strong></span></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><span style="font-size: x-small"><strong>替换CSS</strong> <br /></span>document.all.csss.href = &quot;a.css&quot;;<span style="font-size: x-small"><strong> </strong></span></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>并排显示</strong> <br /></span>display:inline<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>隐藏焦点 <br /></strong>hidefocus=true</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>根据宽度换行 <br /></strong></span>style=&quot;word-break:break-all&quot;<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>自动刷新 <br /></strong>&lt;meta HTTP-EQUIV=&quot;refresh&quot; CONTENT=&quot;8;URL=http://c98.yeah.net&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>简单邮件 <br /></strong>&lt;a &nbsp;href=&quot;</span><a href="mailto:aaa@bbb.com?subject=ccc&amp;amp;amp;amp;body=xxxyyy"><span style="font-size: x-small; color: #000080"><u>mailto:aaa@bbb.com?subject=ccc&amp;body=xxxyyy</u></span></a><span style="font-size: x-small">&quot;&gt; &nbsp;</span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>快速转到位置 <br /></strong></span>obj.scrollIntoView(true)<span style="font-size: x-small"> </span></strong></strong><span style="font-size: x-small"><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></span></li><li><strong><strong><span style="font-size: x-small"><strong>锚 <br /></strong>&lt;a name=&quot;first&quot;&gt; <br />&lt;a href=&quot;http://www.bizeway.net/admin.php#first&quot;&gt;anchors&lt;/a&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>网页传递参数 <br /></strong>location.search();</span> </strong></strong></li><li><strong><strong><strong>可编辑 <br /></strong>obj.contenteditable=true </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>执行菜单命令</strong> <br />obj.execCommand</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>双字节字符</strong> <br />/[^&#92;x00-&#92;xff]/ <br />汉字 <br />/[&#92;u4e00-&#92;u9fa5]/</span> </strong></strong></li><li><strong><strong><strong>让英文字符串超出表格宽度自动换行</strong> <br />word-wrap: break-word; word-break: break-all; </strong></strong></li><li><strong><strong><strong>透明背景</strong><span style="font-size: x-small"> <br />&lt;IFRAME src=&quot;1.htm&quot; width=300 height=180 allowtransparency&gt;&lt;/iframe&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得style内容 <br /></strong>obj.style.cssText</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>HTML标签</strong> <br />document.documentElement.innerHTML</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>第一个style标签</strong> <br />document.styleSheets[0]</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>style标签里的第一个样式</strong> <br />document.styleSheets[0].rules[0]</span> </strong></strong></li><li><strong><strong><strong>防止点击空链接时，页面往往重置到页首端。 <br /></strong>&lt;a href=&quot;javascript:function()&quot;&gt;word&lt;/a&gt; </strong></strong></li><li><strong><strong><strong>上一网页源</strong> <br />asp: <br />request.servervariables(&quot;HTTP_REFERER&quot;) <br /><span style="font-size: x-small">javascript: <br />document.referrer </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>释放内存 <br /></strong>CollectGarbage();</span> </strong></strong></li><li><strong><strong><strong>禁止右键</strong> <br />document.oncontextmenu = function() { return false;} </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止保存</strong> <br />&lt;noscript&gt;&lt;iframe src=&quot;*.htm&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止选取</strong>&lt;body oncontextmenu=<span style="color: #ff00ff">&quot;return false&quot;</span> ondragstart=<span style="color: #ff00ff">&quot;return false&quot;</span> onselectstart =<span style="color: #ff00ff">&quot;return false&quot;</span> onselect=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> oncopy=<span style="color: #ff00ff">&quot;document.selection.empty()&quot;</span> onbeforecopy=<span style="color: #ff00ff">&quot;return false&quot;</span>onmouseup=<span style="color: #ff00ff">&quot;document.selection.empty()&gt;</span><span style="color: #ff00ff"> </span></span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>禁止粘贴</strong> <br />&lt;input type=text onpaste=&quot;return false&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>地址栏图标</strong> <br />&lt;link rel=&quot;Shortcut Icon&quot; href=&quot;favicon.ico&quot;&gt; <br />favicon.ico 名字最好不变16*16的16色,放虚拟目录根目录下</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>收藏栏图标</strong> <br />&lt;link rel=&quot;Bookmark&quot; href=&quot;favicon.ico&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>查看源码</strong> <br />&lt;input type=button value=查看网页源代码 onclick=&quot;window.location = 'view-source:'+ 'http://www.csdn.net/'&quot;&gt; </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>关闭输入法</strong> <br />&lt;input style=&quot;ime-mode:disabled&quot;&gt; </span></strong></strong></li><li><strong><strong><strong>自动全选</strong> <br />&lt;input type=text name=text1 value=&quot;123&quot; onfocus=&quot;this.select()&quot;&gt; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>ENTER键可以让光标移到下一个输入框 <br /></strong>&lt;input onkeydown=&quot;if(event.keyCode==13)event.keyCode=9&quot;&gt;</span> </strong></strong></li><li><strong><strong><strong>文本框的默认值 <br /></strong>&lt;input type=text value=&quot;123&quot; onfocus=&quot;alert(this.defaultValue)&quot;&gt; </strong></strong></li><li><strong><strong><strong>title换行 <br /></strong>obj.title = &quot;123 sdfs &quot; </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>获得时间所代表的微秒 <br /></strong>var n1 = new Date(&quot;2004-10-10&quot;.replace(/-/g, &quot;&#92;/&quot;)).getTime()</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口是否关闭 <br /></strong>win.closed </span></strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>checkbox扁平 <br /></strong>&lt;input type=checkbox style=&quot;position: absolute; clip:rect(5px 15px 15px 5px)&quot;&gt;&lt;br&gt;</span> </strong></strong></li><li><strong><strong><strong>获取选中内容 <br /></strong>document.selection.createRange().duplicate().text </strong></strong></li><li><strong><strong><strong>自动完成功能 <br /></strong>&lt;input &nbsp;type=text &nbsp;autocomplete=on&gt;打开该功能 &nbsp;<br />&lt;input &nbsp;type=text &nbsp;autocomplete=off&gt;关闭该功能 &nbsp; &nbsp;</strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>窗口最大化</strong> <br />&lt;body onload=&quot;window.resizeTo(window.screen.width - 4,window.screen.height-50);window.moveTo(-4,-4)&quot;&gt;</span> </strong></strong></li><li><strong><strong><span style="font-size: x-small"><strong>无关闭按钮IE <br /></strong>window.open(&quot;aa.htm&quot;, &quot;meizz&quot;, &quot;fullscreen=7&quot;); </span></strong></strong></li><li><strong><strong><strong>统一编码/解码 <br /></strong>alert(decodeURIComponent(encodeURIComponent(&quot;http://你好.com?as= hehe&quot;))) <br />encodeURIComponent对&quot;:&quot;、&quot;/&quot;、&quot;;&quot; 和 &quot;?&quot;也编码 </strong></strong></li><li><strong><strong><strong>表格行指示 <br /></strong>&lt;tr onmouseover=&quot;this.bgColor='#f0f0f0'&quot; onmouseout=&quot;this.bgColor='#ffffff'&quot;&gt; </strong></strong><p><strong><strong><br /><strong>//各种尺寸</strong> </strong></strong><strong></strong></p><div><strong><strong>s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域宽：&quot;</span>+ &nbsp;document.body.clientWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.clientHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetWeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页可见区域高：&quot;</span>+ &nbsp;document.body.offsetHeight &nbsp;+<span style="color: #ff00ff">&quot; &nbsp;(包括边线的宽)&quot;</span>; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文宽：&quot;</span>+ &nbsp;document.body.scrollWidth; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文全文高：&quot;</span>+ &nbsp;document.body.scrollHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的高：&quot;</span>+ &nbsp;document.body.scrollTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页被卷去的左：&quot;</span>+ &nbsp;document.body.scrollLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分上：&quot;</span>+ &nbsp;window.screenTop; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n网页正文部分左：&quot;</span>+ &nbsp;window.screenLeft; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的高：&quot;</span>+ &nbsp;window.screen.height; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕分辨率的宽：&quot;</span>+ &nbsp;window.screen.width; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区高度：&quot;</span>+ &nbsp;window.screen.availHeight; &nbsp; <br />s &nbsp;+= &nbsp;<span style="color: #ff00ff">&quot;&#92;r&#92;n屏幕可用工作区宽度：&quot;</span>+ &nbsp;window.screen.availWidth; &nbsp; </strong></strong></div><strong></strong><strong></strong><strong></strong></li></ul><li><p><span style="font-size: x-small"><strong>//过滤数字</strong> <div>&lt;input type=text onkeypress=<span style="color: #ff00ff">&quot;return event.keyCode&gt;=48&amp;&amp;event.keyCode&lt;=57&#124;&#124;(this.value.indexOf('.')&lt;0?event.keyCode==46:false)&quot;</span> onpaste=<span style="color: #ff00ff">&quot;return !clipboardData.getData('text').match(/&#92;D/)&quot;</span> ondragenter=<span style="color: #ff00ff">&quot;return false&quot;</span>&gt; </div></span></p><div>&lt;input type=text onkeypress=<span style="color: #ff00ff">&quot;return event.keyCode&gt;=48&amp;&amp;event.keyCode&lt;=57&#124;&#124;(this.value.indexOf('.')&lt;0?event.keyCode==46:false)&quot;</span> onpaste=<span style="color: #ff00ff">&quot;return !clipboardData.getData('text').match(/&#92;D/)&quot;</span> ondragenter=<span style="color: #ff00ff">&quot;return false&quot;</span>&gt; </div><p></p><p></p><p><span style="font-size: x-small"><strong>//特殊用途</strong> <div>&lt;input type=button value=导入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(true,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=导出收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(false,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=整理收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('OrganizeFavorites', null)&quot;</span>&gt; <br />&lt;input type=button value=语言设置 &nbsp; onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('LanguageDialog', null)&quot;</span>&gt; <br />&lt;input type=button value=加入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.AddFavorite('http:<span style="color: #008000">//www.google.com/', 'google')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.addChannel('http:<span style="color: #008000">//www.google.com/')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.showBrowserUI('PrivacySettings',null)&quot;</span>&gt; </div></span></p><div>&lt;input type=button value=导入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(true,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=导出收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ImportExportFavorites(false,'http:<span style="color: #008000">//localhost');&quot;</span>&gt; </span><br />&lt;input type=button value=整理收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('OrganizeFavorites', null)&quot;</span>&gt; <br />&lt;input type=button value=语言设置 &nbsp; onclick=<span style="color: #ff00ff">&quot;window.external.ShowBrowserUI('LanguageDialog', null)&quot;</span>&gt; <br />&lt;input type=button value=加入收藏夹 onclick=<span style="color: #ff00ff">&quot;window.external.AddFavorite('http:<span style="color: #008000">//www.google.com/', 'google')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.addChannel('http:<span style="color: #008000">//www.google.com/')&quot;</span>&gt; </span><br />&lt;input type=button value=加入到频道 onclick=<span style="color: #ff00ff">&quot;window.external.showBrowserUI('PrivacySettings',null)&quot;</span>&gt; </div><p></p><p></p><p><span style="font-size: x-small"><strong>//不缓存</strong> </span></p><div><span style="font-size: x-small">&lt;META HTTP-EQUIV=<span style="color: #ff00ff">&quot;pragma&quot;</span> CONTENT=<span style="color: #ff00ff">&quot;no-cache&quot;</span>&gt; <br />&lt;META HTTP-EQUIV=<span style="color: #ff00ff">&quot;Cache-Control&quot;</span> CONTENT=<span style="color: #ff00ff">&quot;no-cache, must-revalidate&quot;</span>&gt; <br />&lt;META HTTP-EQUIV=<span style="color: #ff00ff">&quot;expires&quot;</span> CONTENT=<span style="color: #ff00ff">&quot;0&quot;</span>&gt; </span></div><p></p><p></p><p></p><p><br /><span style="font-size: x-small"><strong>//正则匹配</strong></span> </p><p></p><div><span style="font-size: x-small">匹配中文字符的正则表达式： [&#92;u4e00-&#92;u9fa5] <br />匹配双字节字符(包括汉字在内)：[^&#92;x00-&#92;xff] <br />匹配空行的正则表达式：&#92;n[&#92;s&#124; ]*&#92;r <br />匹配HTML标记的正则表达式：/&lt;(.*)&gt;.*&lt;&#92;/&#92;1&gt;&#124;&lt;(.*) &#92;/&gt;/ &nbsp;<br />匹配首尾空格的正则表达式：(^&#92;s*)&#124;(&#92;s*$)（像vbscript那样的trim函数） <br />匹配Email地址的正则表达式：&#92;w+([-+.]&#92;w+)*@&#92;w+([-.]&#92;w+)*&#92;.&#92;w+([-.]&#92;w+)* <br />匹配网址URL的正则表达式：http:<span style="color: #008000">//([&#92;w-]+&#92;.)+[&#92;w-]+(/[&#92;w- ./?%&amp;=]*)? </span><br />以下是例子： <br />利用正则表达式限制网页表单里的文本框输入内容： <br />用正则表达式限制只能输入中文：onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[^&#92;u4E00-&#92;u9FA5]/g,'')&quot;</span> onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;u4E00-&#92;u9FA5]/g,''))&quot;</span> <br />1.用正则表达式限制只能输入全角字符： onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[^&#92;uFF00-&#92;uFFFF]/g,'')&quot;</span> onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;uFF00-&#92;uFFFF]/g,''))&quot;</span> <br />2.用正则表达式限制只能输入数字：onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[^&#92;d]/g,'') &quot;</span>onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;d]/g,''))&quot;</span> <br />3.用正则表达式限制只能输入数字和英文：onkeyup=<span style="color: #ff00ff">&quot;value=value.replace(/[&#92;W]/g,'') &quot;</span>onbeforepaste=<span style="color: #ff00ff">&quot;clipboardData.setData('text',clipboardData.getData('text').replace(/[^&#92;d]/g,''))&quot;</span> </span></div><p><span style="font-size: x-small"><span style="font-size: x-small"></span></span></p></li></div><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?360</link>
<title><![CDATA[getElementById getElementsByName getElementsByTagName]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Mon, 08 Sep 2008 14:29:27 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?360</guid> 
<description>
<![CDATA[ 
	getElementById getElementsByName getElementsByTagName 大概介绍 <p>　　getElementById ，getElementsByName ，getElementsByTagName</p><p>　　后两个是得到集合，byid只是得到单个对象</p><p>　　getElementById 的用法</p><p>　　举个例子:</p><p>　　&lt;a id=&quot;link1&quot; name=&quot;link1&quot; href=<u>http://www.kungfuman.net</u>&gt;功夫之王&lt;/a&gt;</p><p>　　同一页面内的引用方法:</p><p>　　<strong>1、使用id:</strong></p><p>　　link1.href，返回值为<u>http://www.kungfuman.net</u></p><p>　　<strong>2、使用name:</strong></p><p>　　document.all.link1.href，返回值为<u>http://www.kungfuman.net</u></p><p>　　<strong>3、使用sourseIndex:</strong></p><p>　　document.all(4).href //注意，前面还有Html、HEAD、TITLE和BODY，所以是4</p><p>　　<strong>4、使用链接集合:</strong></p><p>　　document.anchors(0).href</p><p>　　//全部的集合有all、anchors、applets、areas、attributes、behaviorUrns、bookmarks、boundElements、cells、childNodes、children、controlRange、elements、embeds、filters、forms、frames、images、imports、links、mimeTypes、options、plugins、rows、rules、scripts、styleSheets、tBodies、TextRectangle，请参考MSDN介绍。</p><p>　　其实方法3和方法4是一样使用的集合，只是一个是all，可以包括页面所有标记，而anchors只包括链接。</p><p>　　<strong>5、getElementById:</strong></p><p>　　document.getElementById(&quot;link1&quot;).href</p><p>　　<strong>6、getElementsByName:</strong></p><p>　　document.getElementsByName(&quot;link1&quot;)[0].href //这也是一个集合，是所有name等于该方法所带参数的标记的集合</p><p>　　<strong>7、getElementsByTagName:</strong></p><p>　　document.getElementsByTagName(&quot;A&quot;)[0].href //这也是一个集合，是所有标记名称等于该方法所带参数的标记的集合</p><p>　　<strong>8、tags集合:</strong></p><p>　　document.all.tags(&quot;A&quot;)[0].href</p><p>　　//与方法7一样是按标记名称取得一个集合</p><p>　　除此之外:</p><p>　　event.scrElement可以获得触发时间的标记的引用;</p><p>　　document.elementFromPoint(x,y)可以获得x和y坐标处的元素的引用;</p><p>　　document.body.componentFromPoint(event.clientX,event.clientY)可以获得鼠标所在处元素的引用;</p><p>　　还可以通过元素的父子节点和兄弟节点关系来引用，如nextSibling(当前节点的后一节点)、previousSibling(当前节点的前一节点)、childNodes、children、firstChild、lastChild、parentElement等都是父子节点和兄弟节点的一些引用;还不仅限于此。</p><p>　　上面是同一页面内的常见引用方法，另外还涉及到不同页面中的</p><p>　　getElementsByName返回的是所有name为指定值的所有元素的集合</p><p>　　&ldquo;根据 NAME 标签属性的值获取对象的集合。&rdquo;</p><p>　　集合比数组要松散的多, 集合里每个子项的类型可以不同, 集合只是把某些元素放在一起作为一类来使用, 相比之下数组就严格多了, 每个子项都是统一的类型. document.getElementsByName, document.getElementsByTagName, document.formName.elements 这类方法所得到的结果都是集合.</p><p>　　<strong>例:</strong></p><p>&lt;html&gt; <br /></p><li>&lt;head&gt; <p style="text-indent: 2em">&lt;title&gt;fish&lt;/title&gt; </p><p></p><p style="text-indent: 2em">function get(){ </p><p style="text-indent: 2em">var xx=document.getElementById(&quot;bbs&quot;) </p><p style="text-indent: 2em">alert(&quot;标记名称：&quot;+xx.tagName); </p><p style="text-indent: 2em">} </p><p style="text-indent: 2em">function getElementName(){ </p><p style="text-indent: 2em">var ele = document.getElementsByName(&quot;happy&quot;); </p><p style="text-indent: 2em">alert(&quot;无素为happy的个数：&quot; + ele.length); </p><p style="text-indent: 2em">} </p><p></p><p style="text-indent: 2em">&lt;body&gt; </p><p style="text-indent: 2em">&lt;h2 id=&quot;bbs&quot;&gt;获取文件指定的元素&lt;/h2&gt; </p><p style="text-indent: 2em">&lt;hr&gt; </p><p style="text-indent: 2em">&lt;form&gt; </p><p style="text-indent: 2em">&lt;input type=&quot;button&quot; onclick=&quot;get()&quot; value=&quot;获取标题标记&quot;&gt; </p><p style="text-indent: 2em">&lt;input type=&quot;button&quot; name=&quot;happy&quot; onclick=&quot;getElementName()&quot; value=&quot;click &quot;&gt;&lt;input type=&quot;button&quot; name=&quot;happy&quot; onclick=&quot;getElementName()&quot; value=&quot;click &quot;&gt;&lt;input type=&quot;button&quot; name=&quot;happy&quot; onclick=&quot;getElementName()&quot; value=&quot;click &quot;&gt;&lt;input type=&quot;button&quot; name=&quot;happy&quot; onclick=&quot;getElementName()&quot; value=&quot;click &quot;&gt;&lt;input type=&quot;button&quot; name=&quot;happy&quot; onclick=&quot;getElementName()&quot; value=&quot;click &quot;&gt; </p><p style="text-indent: 2em">&lt;/form&gt; </p><p style="text-indent: 2em">&lt;/body&gt; </p><p style="text-indent: 2em">&lt;/html&gt; </p><p style="text-indent: 2em">　　document.getElementsByName()这个方法.它对一个和多个的处理是一样的,我们可以用:</p><p style="text-indent: 2em">　　Temp = document.getElementsByName('happy')来引用</p><p style="text-indent: 2em">　　当Temp只有1个的时候,那么就是Temp[0],有多个的时候,用下标法Temp[i]循环获取</p><p style="text-indent: 2em">　　也有例外:</p><p style="text-indent: 2em">　　在ie 中getElementsByName(&ldquo;test&ldquo;)的时候返回的是id=test的object数组，而Firefox则返回的是name= test的object的数组。</p><p style="text-indent: 2em">　　按照w3c的规范应该是返回的是name= test的object的数组。</p><p style="text-indent: 2em">　　firefox和ie中的getElementByID相同:获取对 ID 标签属性为指定值的第一个对象的引用。</p><p style="text-indent: 2em">　　注意getElementsByName 有s在里面</p><p style="text-indent: 2em">　　document.getElementById()可以控制某个id的tag</p><p style="text-indent: 2em">　　document.getElementsByName()，返回的是一个具有相同 name 属性的元素的集合，而不是某个，注意有&ldquo;s&rdquo;。</p><p style="text-indent: 2em">　　而 document.getElementsByTagName() 返回的是一组相同 TAG 的元素集合。</p><p style="text-indent: 2em">　同一个name可以有多个element，所以用document.getElementsByName(&quot;theName&quot;) </p><p></p><p>　　他return 一个collection，引用的时候要指名index</p><p>　　var test = document.getElementsByName('testButton')[0];</p><p>　　id那个，是唯一的</p><p>　　还应该注意:对类似没有name属性，对它name属性为伪属性document.getElementsByName() 会失效，当然TD可以设置ID属性，然后用 document.getElementsByID(&quot;DDE_NODAY&quot;); 调用.</p></li><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?263</link>
<title><![CDATA[Google Analytics Urchin Module 源码]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Sat, 17 Nov 2007 07:40:15 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?263</guid> 
<description>
<![CDATA[ 
	学习一下urchin.js的源代码:<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">//-- Google Analytics Urchin Module<br/>//-- Copyright 2005 Google, All Rights Reserved.<br/><br/>//-- Urchin On Demand Settings ONLY<br/>var _uacct=""; // set up the Urchin Account<br/>var _userv=1; // service mode (0=local,1=remote,2=both)<br/><br/>//-- UTM User Settings<br/>var _ufsc=1; // set client info flag (1=on&#124;0=off)<br/>var _udn="auto"; // (auto&#124;none&#124;domain) set the domain name for cookies<br/>var _uhash="on"; // (on&#124;off) unique domain hash for cookies<br/>var _utimeout="1800"; // set the inactive session timeout in seconds<br/>var _ugifpath="/__utm.gif"; // set the web path to the __utm.gif file<br/>var _utsp="&#124;"; // transaction field separator<br/>var _uflash=1; // set flash version detect option (1=on&#124;0=off)<br/>var _utitle=1; // set the document title detect option (1=on&#124;0=off)<br/>var _ulink=0; // enable linker functionality (1=on&#124;0=off)<br/><br/>//-- UTM Campaign Tracking Settings<br/>var _uctm=1; // set campaign tracking module (1=on&#124;0=off)<br/>var _ucto="15768000"; // set timeout in seconds (6 month default)<br/>var _uccn="utm_campaign"; // name<br/>var _ucmd="utm_medium"; // medium (cpc&#124;cpm&#124;link&#124;email&#124;organic)<br/>var _ucsr="utm_source"; // source<br/>var _uctr="utm_term"; // term/keyword<br/>var _ucct="utm_content"; // content<br/>var _ucid="utm_id"; // id number<br/>var _ucno="utm_nooverride"; // don't override<br/><br/>//-- Auto/Organic Sources and Keywords<br/>var _uOsr=new Array();<br/>var _uOkw=new Array();<br/>_uOsr[0]="google"; _uOkw[0]="q";<br/>_uOsr[1]="yahoo"; _uOkw[1]="p";<br/>_uOsr[2]="msn"; _uOkw[2]="q";<br/>_uOsr[3]="aol"; _uOkw[3]="query";<br/>_uOsr[4]="lycos"; _uOkw[4]="query";<br/>_uOsr[5]="ask"; _uOkw[5]="q";<br/>_uOsr[6]="altavista"; _uOkw[6]="q";<br/>_uOsr[7]="search"; _uOkw[7]="q";<br/>_uOsr[8]="netscape"; _uOkw[8]="query";<br/>_uOsr[9]="earthlink"; _uOkw[9]="q";<br/>_uOsr[10]="cnn"; _uOkw[10]="query";<br/>_uOsr[11]="looksmart"; _uOkw[11]="key";<br/>_uOsr[12]="about"; _uOkw[12]="terms";<br/>_uOsr[13]="excite"; _uOkw[13]="qkw";<br/>_uOsr[14]="mamma"; _uOkw[14]="query";<br/>_uOsr[15]="alltheweb"; _uOkw[15]="q";<br/>_uOsr[16]="gigablast"; _uOkw[16]="q";<br/>_uOsr[17]="voila"; _uOkw[17]="kw";<br/>_uOsr[18]="virgilio"; _uOkw[18]="qs";<br/>_uOsr[19]="teoma"; _uOkw[19]="q"; <br/><br/>//-- Auto/Organic Keywords to Ignore<br/>var _uOno=new Array();<br/>//_uOno[0]="urchin";<br/>//_uOno[1]="urchin.com";<br/>//_uOno[2]="www.urchin.com";<br/><br/><br/>//-- Auto/Organic Keywords to Ignore<br/>var _uOno=new Array();<br/>//_uOno[0]="urchin";<br/>//_uOno[1]="urchin.com";<br/>//_uOno[2]="www.urchin.com";<br/><br/><br/>//-- Auto/Organic Keywords to Ignore<br/>var _uOno=new Array();<br/>//_uOno[0]="urchin";<br/>//_uOno[1]="urchin.com";<br/>//_uOno[2]="www.urchin.com";<br/><br/><br/>//-- Auto/Organic Keywords to Ignore<br/>var _uOno=new Array();<br/>//_uOno[0]="urchin";<br/>//_uOno[1]="urchin.com";<br/>//_uOno[2]="www.urchin.com";<br/><br/><br/>//-- Referral domains to Ignore<br/>var _uRno=new Array();<br/>//_uRno[0]=".urchin.com";<br/><br/>//-- **** Don't modify below this point ***<br/>var _uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_u<br/>tcp="/",_uwv="1";<br/>var _ugifpath2="http://www.google-analytics.com/__utm.gif";<br/>if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif";<br/>if (!_utcp &#124;&#124; _utcp=="") _utcp="/";<br/>function urchinTracker(page) {<br/>if (_udl.protocol=="file:") return;<br/>if (_uff && (!page &#124;&#124; page=="")) return;<br/>var a,b,c,v,z,k,x="",s="",f=0;<br/>var nx=" expires=Sun, 18 Jan 2038 00:00:00 GMT;";<br/>var dc=_ubd.cookie;<br/>_udh=_uDomain();<br/>_uu=Math.round(Math.random()*2147483647);<br/>_udt=new Date();<br/>_ust=Math.round(_udt.getTime()/1000);<br/>a=dc.indexOf("__utma="+_udh);<br/>b=dc.indexOf("__utmb="+_udh);<br/>c=dc.indexOf("__utmc="+_udh);<br/>if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }<br/>if (_utimeout && _utimeout!="") {<br/>x=new Date(_udt.getTime()+(_utimeout*1000));<br/>x=" expires="+x.toGMTString()+";";<br/>}<br/>if (_ulink) {<br/>s=_udl.search;<br/>if(s && s!="" && s.indexOf("__utma=")>=0) {<br/>if (!(_uIN(a=_uGC(s,"__utma=","&")))) a="-";<br/>if (!(_uIN(b=_uGC(s,"__utmb=","&")))) b="-";<br/>if (!(_uIN(c=_uGC(s,"__utmc=","&")))) c="-";<br/>v=_uGC(s,"__utmv=","&");<br/>z=_uGC(s,"__utmz=","&");<br/>k=_uGC(s,"__utmk=","&");<br/>if ((k*1) != ((_uHash(a+b+c+z+v)*1)+(_udh*1))) {_ubl=1;a="-";b="-";c="-";z="-";v="-";}<br/>if (a!="-" && b!="-" && c!="-") f=1;<br/>else if(a!="-") f=2;<br/>}<br/>}<br/>if(f==1) {<br/>_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;<br/>_ubd.cookie="__utmb="+b+"; path="+_utcp+";"+x+_udo;<br/>_ubd.cookie="__utmc="+c+"; path="+_utcp+";"+_udo;<br/>} else if (f==2) {<br/>a=_uFixA(s,"&",_ust);<br/>_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;<br/>_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;<br/>_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;<br/>_ufns=1;<br/>} else if (a>=0 && b>=0 && c>=0) {<br/>_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;<br/>} else {<br/>if (a>=0) a=_uFixA(_ubd.cookie,";",_ust);<br/>else a=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1";<br/>_ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;<br/>_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;<br/>_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;<br/>_ufns=1;<br/>}<br/>if (_ulink && v && v!="" && v!="-") {<br/>v=unescape(v);<br/>if (v.indexOf(";")==-1) _ubd.cookie="__utmv="+v+"; path="+_utcp+";"+nx+_udo;<br/>}<br/>_uInfo(page);<br/>_ufns=0;<br/>_ufno=0;<br/>_uff=1;<br/>}<br/>function _uInfo(page) {<br/>var p,s="",pg=_udl.pathname+_udl.search;<br/>if (page && page!="") pg=escape(page);<br/>_ur=_ubd.referrer;<br/>if (!_ur &#124;&#124; _ur=="") { _ur="-"; }<br/>else {<br/>p=_ur.indexOf(_ubd.domain);<br/>if ((p>=0) && (p<=8)) { _ur="0"; }<br/>if (_ur.indexOf("[")==0 && _ur.lastIndexOf("]")==(_ur.length-1)) { _ur="-"; }<br/>}<br/>s+="&utmn="+_uu;<br/>if (_ufsc) s+=_uBInfo(page);<br/>if (_uctm && (!page &#124;&#124; page=="")) s+=_uCInfo();<br/>if (_utitle && _ubd.title && _ubd.title!="") s+="&utmdt="+escape(_ubd.title);<br/>if (_udl.hostname && _udl.hostname!="") s+="&utmhn="+escape(_udl.hostname);<br/>if (!page &#124;&#124; page=="") s+="&utmr="+_ur;<br/>s+="&utmp="+pg;<br/>if (_userv==0 &#124;&#124; _userv==2) {<br/>var i=new Image(1,1);<br/>i.src=_ugifpath+"?"+"utmwv="+_uwv+s;<br/>i.onload=function() {_uVoid();}<br/>}<br/>if (_userv==1 &#124;&#124; _userv==2) {<br/>var i2=new Image(1,1);<br/>i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();<br/>i2.onload=function() { _uVoid(); }<br/>}<br/>return;<br/>}<br/>function _uVoid() { return; }<br/>function _uCInfo() {<br/>if (!_ucto &#124;&#124; _ucto=="") { _ucto="15768000"; }<br/>var c="",t="-",t2="-",t3="-",o=0,cs=0,cn=0;i=0;z="-";<br/>var s=_udl.search;<br/>var x=new Date(_udt.getTime()+(_ucto*1000));<br/>var dc=_ubd.cookie;<br/>x=" expires="+x.toGMTString()+";";<br/>if (_ulink && !_ubl) {<br/>z=unescape(_uGC(s,"__utmz=","&"));<br/>if (z!="-" && z.indexOf(";")==-1) { _ubd.cookie="__utmz="+z+"; path="+_utcp+";"+x+_udo; return ""; }<br/>}<br/>z=dc.indexOf("__utmz="+_udh);<br/>if (z>-1) { z=_uGC(dc,"__utmz="+_udh,";"); }<br/>else { z="-"; }<br/>t=_uGC(s,_ucid+"=","&");<br/>t2=_uGC(s,_ucsr+"=","&");<br/>t3=_uGC(s,"gclid=","&");<br/>if ((t!="-" && t!="") &#124;&#124; (t2!="-" && t2!="") &#124;&#124; (t3!="-" && t3!="")) {<br/>if (t!="-" && t!="") c+="utmcid="+_uEC(t);<br/>if (t2!="-" && t2!="") { if (c != "") c+="&#124;"; c+="utmcsr="+_uEC(t2); }<br/>if (t3!="-" && t3!="") { if (c != "") c+="&#124;"; c+="utmgclid="+_uEC(t3); }<br/>t=_uGC(s,_uccn+"=","&");<br/>if (t!="-" && t!="") c+="&#124;utmccn="+_uEC(t);<br/>else c+="&#124;utmccn=(not+set)";<br/>t=_uGC(s,_ucmd+"=","&");<br/>if (t!="-" && t!="") c+="&#124;utmcmd="+_uEC(t);<br/>else c+="&#124;utmcmd=(not+set)";<br/>t=_uGC(s,_uctr+"=","&");<br/>if (t!="-" && t!="") c+="&#124;utmctr="+_uEC(t);<br/>else { t=_uOrg(1); if (t!="-" && t!="") c+="&#124;utmctr="+_uEC(t); }<br/>t=_uGC(s,_ucct+"=","&");<br/>if (t!="-" && t!="") c+="&#124;utmcct="+_uEC(t);<br/>t=_uGC(s,_ucno+"=","&");<br/>if (t=="1") o=1;<br/>if (z!="-" && o==1) return "";<br/>}<br/>if (c=="-" &#124;&#124; c=="") { c=_uOrg(); if (z!="-" && _ufno==1) return ""; }<br/>if (c=="-" &#124;&#124; c=="") { if (_ufns==1) c=_uRef(); if (z!="-" && _ufno==1) return ""; }<br/>if (c=="-" &#124;&#124; c=="") {<br/>if (z=="-" && _ufns==1) { c="utmccn=(direct)&#124;utmcsr=(direct)&#124;utmcmd=(none)"; }<br/>if (c=="-" &#124;&#124; c=="") return "";<br/>}<br/>if (z!="-") {<br/>i=z.indexOf(".");<br/>if (i>-1) i=z.indexOf(".",i+1);<br/>if (i>-1) i=z.indexOf(".",i+1);<br/>if (i>-1) i=z.indexOf(".",i+1);<br/>t=z.substring(i+1,z.length);<br/>if (t.toLowerCase()==c.toLowerCase()) cs=1;<br/>t=z.substring(0,i);<br/>if ((i=t.lastIndexOf(".")) > -1) {<br/>t=t.substring(i+1,t.length);<br/>cn=(t*1);<br/>}<br/>}<br/>if (cs==0 &#124;&#124; _ufns==1) {<br/>t=_uGC(dc,"__utma="+_udh,";");<br/>if ((i=t.lastIndexOf(".")) > 9) {<br/>_uns=t.substring(i+1,t.length);<br/>_uns=(_uns*1);<br/>}<br/>cn++;<br/>if (_uns==0) _uns=1;<br/>_ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+cn+"."+c+"; path="+_utcp+"; "+x+_udo;<br/>}<br/>if (cs==0 &#124;&#124; _ufns==1) return "&utmcn=1";<br/>else return "&utmcr=1";<br/>}<br/>function _uRef() {<br/>if (_ur=="0" &#124;&#124; _ur=="" &#124;&#124; _ur=="-") return "";<br/>var i=0,h,k,n;<br/>if ((i=_ur.indexOf("://"))<0) return "";<br/>h=_ur.substring(i+3,_ur.length);<br/>if (h.indexOf("/") > -1) {<br/>k=h.substring(h.indexOf("/"),h.length);<br/>if (k.indexOf("?") > -1) k=k.substring(0,k.indexOf("?"));<br/>h=h.substring(0,h.indexOf("/"));<br/>}<br/>h=h.toLowerCase();<br/>n=h;<br/>if ((i=n.indexOf(":")) > -1) n=n.substring(0,i);<br/>for (var ii=0;ii<_uRno.length;ii++) {<br/>if ((i=n.indexOf(_uRno[ii].toLowerCase())) > -1 && n.length==(i+_uRno[ii].length)) { _ufno=1; break; }<br/>}<br/>if (h.indexOf("www.")==0) h=h.substring(4,h.length);<br/>return "utmccn=(referral)&#124;utmcsr="+_uEC(h)+"&#124;"+"utmcct="+_uEC(k)+"&#124;utmcmd=referral";<br/>}<br/>function _uOrg(t) {<br/>if (_ur=="0" &#124;&#124; _ur=="" &#124;&#124; _ur=="-") return "";<br/>var i=0,h,k;<br/>if ((i=_ur.indexOf("://")) < 0) return "";<br/>h=_ur.substring(i+3,_ur.length);<br/>if (h.indexOf("/") > -1) {<br/>h=h.substring(0,h.indexOf("/"));<br/>}<br/>for (var ii=0;ii<_uOsr.length;ii++) {<br/>if (h.indexOf(_uOsr[ii]) > -1) {<br/>if ((i=_ur.indexOf("?"+_uOkw[ii]+"=")) > -1 &#124;&#124; (i=_ur.indexOf("&"+_uOkw[ii]+"=")) > -1) {<br/>k=_ur.substring(i+_uOkw[ii].length+2,_ur.length);<br/>if ((i=k.indexOf("&")) > -1) k=k.substring(0,i);<br/>for (var yy=0;yy<_uOno.length;yy++) {<br/>if (_uOno[yy].toLowerCase()==k.toLowerCase()) { _ufno=1; break; }<br/>}<br/>if (t) return _uEC(k);<br/>else return "utmccn=(organic)&#124;utmcsr="+_uEC(_uOsr[ii])+"&#124;"+"utmctr="+_uEC(k)+"&#124;utmcmd=organic";<br/>}<br/>}<br/>}<br/>return "";<br/>}<br/>function _uBInfo(page) {<br/>var sr="-",sc="-",ul="-",fl="-",je=1;<br/>var n=navigator;<br/>if (self.screen) {<br/>sr=screen.width+"x"+screen.height;<br/>sc=screen.colorDepth+"-bit";<br/>} else if (self.java) {<br/>var j=java.awt.Toolkit.getDefaultToolkit();<br/>var s=j.getScreenSize();<br/>sr=s.width+"x"+s.height;<br/>}<br/>if (n.language) { ul=n.language.toLowerCase(); }<br/>else if (n.browserLanguage) { ul=n.browserLanguage.toLowerCase(); }<br/>je=n.javaEnabled()?1:0;<br/>if (_uflash) fl=_uFlash();<br/>return "&utmsr="+sr+"&utmsc="+sc+"&utmul="+ul+"&utmje="+je+"&utmfl="+fl;<br/>}<br/>function __utmSetTrans() {<br/>var e;<br/>if (_ubd.getElementById) e=_ubd.getElementById("utmtrans");<br/>else if (_ubd.utmform && _ubd.utmform.utmtrans) e=_ubd.utmform.utmtrans;<br/>if (!e) return;<br/>var l=e.value.split("UTM:");<br/>var i,i2,c;<br/>if (_userv==0 &#124;&#124; _userv==2) i=new Array();<br/>if (_userv==1 &#124;&#124; _userv==2) { i2=new Array(); c=_uGCS(); }<br/><br/>for (var ii=0;ii l[ii]=_uTrim(l[ii]);<br/>if (l[ii].charAt(0)!='T' && l[ii].charAt(0)!='I') continue;<br/>var r=Math.round(Math.random()*2147483647);<br/>if (!_utsp &#124;&#124; _utsp=="") _utsp="&#124;";<br/>var f=l[ii].split(_utsp),s="";<br/>if (f[0].charAt(0)=='T') {<br/>s="&utmt=tran"+"&utmn="+r;<br/>f[1]=_uTrim(f[1]); if(f[1]&&f[1]!="") s+="&utmtid="+escape(f[1]);<br/>f[2]=_uTrim(f[2]); if(f[2]&&f[2]!="") s+="&utmtst="+escape(f[2]);<br/>f[3]=_uTrim(f[3]); if(f[3]&&f[3]!="") s+="&utmtto="+escape(f[3]);<br/>f[4]=_uTrim(f[4]); if(f[4]&&f[4]!="") s+="&utmttx="+escape(f[4]);<br/>f[5]=_uTrim(f[5]); if(f[5]&&f[5]!="") s+="&utmtsp="+escape(f[5]);<br/>f[6]=_uTrim(f[6]); if(f[6]&&f[6]!="") s+="&utmtci="+escape(f[6]);<br/>f[7]=_uTrim(f[7]); if(f[7]&&f[7]!="") s+="&utmtrg="+escape(f[7]);<br/>f[8]=_uTrim(f[8]); if(f[8]&&f[8]!="") s+="&utmtco="+escape(f[8]);<br/>} else {<br/>s="&utmt=item"+"&utmn="+r;<br/>f[1]=_uTrim(f[1]); if(f[1]&&f[1]!="") s+="&utmtid="+escape(f[1]);<br/>f[2]=_uTrim(f[2]); if(f[2]&&f[2]!="") s+="&utmipc="+escape(f[2]);<br/>f[3]=_uTrim(f[3]); if(f[3]&&f[3]!="") s+="&utmipn="+escape(f[3]);<br/>f[4]=_uTrim(f[4]); if(f[4]&&f[4]!="") s+="&utmiva="+escape(f[4]);<br/>f[5]=_uTrim(f[5]); if(f[5]&&f[5]!="") s+="&utmipr="+escape(f[5]);<br/>f[6]=_uTrim(f[6]); if(f[6]&&f[6]!="") s+="&utmiqt="+escape(f[6]);<br/>}<br/>if (_userv==0 &#124;&#124; _userv==2) {<br/>i[ii]=new Image(1,1);<br/>i[ii].src=_ugifpath+"?"+"utmwv="+_uwv+s;<br/>i[ii].onload=function() { _uVoid(); }<br/>}<br/>if (_userv==1 &#124;&#124; _userv==2) {<br/>i2[ii]=new Image(1,1);<br/>i2[ii].src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+c;<br/>i2[ii].onload=function() { _uVoid(); }<br/>}<br/>}<br/>return;<br/>}<br/>function _uFlash() {<br/>var f="-",n=navigator;<br/>if (n.plugins && n.plugins.length) {<br/>for (var ii=0;ii if (n.plugins[ii].name.indexOf('Shockwave Flash')!=-1) {<br/>f=n.plugins[ii].description.split('Shockwave Flash ')[1];<br/>break;<br/>}<br/>}<br/>} else if (window.ActiveXObject) {<br/>for (var ii=10;ii>=2;ii--) {<br/>try {<br/>var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");<br/>if (fl) { f=ii + '.0'; break; }<br/>}<br/>catch(e) {}<br/>}<br/>}<br/>return f;<br/>}<br/>function __utmLinker(l) {<br/>if (!_ulink) return;<br/>var p,k,a="-",b="-",c="-",z="-",v="-";<br/>var dc=_ubd.cookie;<br/>if (l && l!="") {<br/>if (dc) {<br/>a=escape(_uGC(dc,"__utma="+_udh,";"));<br/>b=escape(_uGC(dc,"__utmb="+_udh,";"));<br/>c=escape(_uGC(dc,"__utmc="+_udh,";"));<br/>z=escape(_uGC(dc,"__utmz="+_udh,";"));<br/>v=escape(_uGC(dc,"__utmv="+_udh,";"));<br/>k=(_uHash(a+b+c+z+v)*1)+(_udh*1);<br/>p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;<br/>}<br/>if (p) {<br/>if (l.indexOf("?")<=-1) { document.location=l+"?"+p; }<br/>else { document.location=l+"&"+p; }<br/>} else { document.location=l; }<br/>}<br/>}<br/>function __utmLinkPost(f) {<br/>if (!_ulink) return;<br/>var p,k,a="-",b="-",c="-",z="-",v="-";<br/>var dc=_ubd.cookie;<br/>if (!f &#124;&#124; !f.action) return;<br/>if (dc) {<br/>a=escape(_uGC(dc,"__utma="+_udh,";"));<br/>b=escape(_uGC(dc,"__utmb="+_udh,";"));<br/>c=escape(_uGC(dc,"__utmc="+_udh,";"));<br/>z=escape(_uGC(dc,"__utmz="+_udh,";"));<br/>v=escape(_uGC(dc,"__utmv="+_udh,";"));<br/>k=(_uHash(a+b+c+z+v)*1)+(_udh*1);<br/>p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;<br/>}<br/>if (p) {<br/>if (f.action.indexOf("?")<=-1) f.action+="?"+p;<br/>else f.action+="&"+p;<br/>}<br/>return;<br/>}<br/>function __utmSetVar(v) {<br/>if (!v &#124;&#124; v=="") return;<br/>var r=Math.round(Math.random() * 2147483647);<br/>_ubd.cookie="__utmv="+_udh+"."+escape(v)+"; path="+_utcp+"; expires=Sun, 18 Jan 2038 00:00:00 GMT;"+_udo;<br/>var s="&utmt=var&utmn="+r;<br/>if (_userv==0 &#124;&#124; _userv==2) {<br/>var i=new Image(1,1);<br/>i.src=_ugifpath+"?"+"utmwv="+_uwv+s;<br/>i.onload=function() { _uVoid(); }<br/>}<br/>if (_userv==1 &#124;&#124; _userv==2) {<br/>var i2=new Image(1,1);<br/>i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();<br/>i2.onload=function() { _uVoid(); }<br/>}<br/>}<br/>function _uGCS() {<br/>var t,c="",dc=_ubd.cookie;<br/>if ((t=_uGC(dc,"__utma="+_udh,";"))!="-") c+=escape("__utma="+t+";+");<br/>if ((t=_uGC(dc,"__utmb="+_udh,";"))!="-") c+=escape("__utmb="+t+";+");<br/>if ((t=_uGC(dc,"__utmc="+_udh,";"))!="-") c+=escape("__utmc="+t+";+");<br/>if ((t=_uGC(dc,"__utmz="+_udh,";"))!="-") c+=escape("__utmz="+t+";+");<br/>if ((t=_uGC(dc,"__utmv="+_udh,";"))!="-") c+=escape("__utmv="+t+";");<br/>if (c.charAt(c.length-1)=="+") c=c.substring(0,c.length-1);<br/>return c;<br/>}<br/>function _uGC(l,n,s) {<br/>if (!l &#124;&#124; l=="" &#124;&#124; !n &#124;&#124; n=="" &#124;&#124; !s &#124;&#124; s=="") return "-";<br/>var i,i2,i3,c="-";<br/>i=l.indexOf(n);<br/>i3=n.indexOf("=")+1;<br/>if (i > -1) {<br/>i2=l.indexOf(s,i); if (i2 < 0) { i2=l.length; }<br/>c=l.substring((i+i3),i2);<br/>}<br/>return c;<br/>}<br/>function _uDomain() {<br/>if (!_udn &#124;&#124; _udn=="" &#124;&#124; _udn=="none") { _udn=""; return 1; }<br/>if (_udn=="auto") {<br/>var d=_ubd.domain;<br/>if (d.substring(0,4)=="www.") {<br/>d=d.substring(4,d.length);<br/>}<br/>_udn=d;<br/>}<br/>if (_uhash=="off") return 1;<br/>return _uHash(_udn);<br/>}<br/>function _uHash(d) {<br/>if (!d &#124;&#124; d=="") return 1;<br/>var h=0,g=0;<br/>for (var i=d.length-1;i>=0;i--) {<br/>var c=parseInt(d.charCodeAt(i));<br/>h=((h << 6) & 0xfffffff) + c + (c << 14);<br/>if ((g=h & 0xfe00000)!=0) h=(h ^ (g >> 21));<br/>}<br/>return h;<br/>}<br/>function _uFixA(c,s,t) {<br/>if (!c &#124;&#124; c=="" &#124;&#124; !s &#124;&#124; s=="" &#124;&#124; !t &#124;&#124; t=="") return "-";<br/>var a=_uGC(c,"__utma="+_udh,s);<br/>var lt=0,i=0;<br/>if ((i=a.lastIndexOf(".")) > 9) {<br/>_uns=a.substring(i+1,a.length);<br/>_uns=(_uns*1)+1;<br/>a=a.substring(0,i);<br/>if ((i=a.lastIndexOf(".")) > 7) {<br/>lt=a.substring(i+1,a.length);<br/>a=a.substring(0,i);<br/>}<br/>if ((i=a.lastIndexOf(".")) > 5) {<br/>a=a.substring(0,i);<br/>}<br/>a+="."+lt+"."+t+"."+_uns;<br/>}<br/>return a;<br/>}<br/>function _uTrim(s) {<br/>if (!s &#124;&#124; s=="") return "";<br/>while ((s.charAt(0)==' ') &#124;&#124; (s.charAt(0)=='&#92;n') &#124;&#124; (s.charAt(0,1)=='&#92;r')) s=s.substring(1,s.length);<br/>while ((s.charAt(s.length-1)==' ') &#124;&#124; (s.charAt(s.length-1)=='&#92;n') &#124;&#124; (s.charAt(s.length-1)=='&#92;r')) s=s.subst<br/>ring(0,s.length-1);<br/>return s;<br/>}<br/>function _uEC(s) {<br/>var n="";<br/>if (!s &#124;&#124; s=="") return "";<br/>for (var i=0;i return n;<br/>}<br/>function __utmVisitorCode() {<br/>var r=0,t=0,i=0,i2=0,m=31;<br/>var a=_uGC(_ubd.cookie,"__utma="+_udh,";");<br/>if ((i=a.indexOf(".",0))<0) return;<br/>if ((i2=a.indexOf(".",i+1))>0) r=a.substring(i+1,i2); else return ""; <br/>if ((i=a.indexOf(".",i2+1))>0) t=a.substring(i2+1,i); else return ""; <br/>var c=new Array('A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z','1<br/>','2','3','4','5','6','7','8','9');<br/>return c[r>>28&m]+c[r>>23&m]+c[r>>18&m]+c[r>>13&m]+"-"+c[r>>8&m]+c[r>>3&m]+c[((r&7)<<2)+(t>>30&3)]+c[t>>25&m]+<br/>c[t>>20&m]+"-"+c[t>>15&m]+c[t>>10&m]+c[t>>5&m]+c[t&m];<br/>}<br/>function _uIN(n) {<br/>if (!n) return false;<br/>for (i=0;i var c=n.charAt(i);<br/>if ((c<"0" &#124;&#124; c>"9") && (c!=".")) return false;<br/>}<br/>return true;<br/>}</div></div><br/>Tags - <a href="tag.php?tag=google" rel="tag">google</a> , <a href="tag.php?tag=analytics" rel="tag">analytics</a> , <a href="tag.php?tag=urchin" rel="tag">urchin</a> , <a href="tag.php?tag=module" rel="tag">module</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?115</link>
<title><![CDATA[javascript事件大全]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Sun, 03 Jun 2007 17:08:59 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?115</guid> 
<description>
<![CDATA[ 
	click() 对象.click() 使对象被点击。<br/>closed 对象.closed 对象窗口是否已关闭true/false<br/>clearTimeout(对象) 清除已设置的setTimeout对象<br/>clearInterval(对象) 清除已设置的setInterval对象<br/>confirm("提示信息") 弹出确认框，确定返回true取消返回false<br/>cursor:样式 更改鼠标样式 hand crosshair text wait help default auto e/s/w/n-resize<br/><br/>event.clientX 返回最后一次点击鼠标X坐标值；<br/>event.clientY 返回最后一次点击鼠标Y坐标值；<br/>event.offsetX 返回当前鼠标悬停X坐标值<br/>event.offsetY 返回当前鼠标悬停Y坐标值<br/><br/>document.write(document.lastModified) 网页最后一次更新时间<br/>document.ondblclick=x 当双击鼠标产生事件<br/>document.onmousedown=x 单击鼠标键产生事件<br/><br/>document.body.scrollTop; 返回和设置当前竖向滚动条的坐标值，须与函数配合,<br/>document.body.scrollLeft; 返回和设置当前横向滚动务的坐标值，须与函数配合，<br/>document.title document.title="message"; 当前窗口的标题栏文字<br/>document.bgcolor document.bgcolor="颜色值"; 改变窗口背景颜色<br/>document.Fgcolor document.Fgcolor="颜色值"; 改变正文颜色<br/>document.linkcolor document.linkcolor="颜色值"; 改变超联接颜色<br/>document.alinkcolor document.alinkcolor="颜色值"; 改变正点击联接的颜色<br/>document.VlinkColor document.VlinkColor="颜色值"; 改变已访问联接的颜色<br/>document.forms.length 返回当前页form表单数<br/>document.anchors.length 返回当前页锚的数量<br/>document.links.length 返回当前页联接的数量<br/>document.onmousedown=x 单击鼠标触发事件<br/>document.ondblclick=x 双击鼠标触发事件<br/>defaultStatus window.status=defaultStatus; 将状态栏设置默认显示<br/><br/>function function xx(){...} 定义函数<br/>isNumeric 判断是否是数字<br/>innerHTML xx=对象.innerHTML 输入某对象标签中的html源代码<br/>innerText divid.innerText=xx 将以div定位以id命名的对象值设为XX<br/><br/>location.reload(); 使本页刷新，target可等于一个刷新的网页<br/><br/>Math.random() 随机涵数,只能是0到1之间的数,如果要得到其它数,可以为*10,再取整<br/>Math.floor(number) 将对象number转为整数，舍取所有小数<br/>Math.min(1,2) 返回1,2哪个小<br/>Math.max(1,2) 返回1,2哪个大<br/><br/>navigator.appName 返回当前浏览器名称<br/>navigator.appVersion 返回当前浏览器版本号<br/>navigator.appCodeName 返回当前浏览器代码名字<br/>navigator.userAgent 返回当前浏览器用户代标志<br/><br/>onsubmit onsubmit="return(xx())" 使用函数返回值<br/>opener opener.document.对象 控制原打开窗体对象<br/><br/>prompt xx=window.prompt("提示信息","预定值"); 输入语句<br/>parent parent.框架名.对象 控制框架页面<br/><br/>return return false 返回值<br/>random 随机参数（0至1之间）<br/>reset() form.reset(); 使form表单内的数据重置<br/><br/>split("") string.split("") 将string对象字符以逗号隔开<br/>submit() form对象.submit() 使form对象提交数据<br/><br/>String对象的 charAt(x)对象 反回指定对象的第多少位的字母<br/>lastIndexOf("string") 从右到左询找指定字符，没有返回-1<br/>indexOf("string") 从左到右询找指定字符，没有返回-1<br/>LowerCase() 将对象全部转为小写 <br/>UpperCase() 将对象全部转为大写<br/>substring(0,5) string.substring(x,x) 返回对象中从0到5的字符<br/>setTimeout("function",time) 设置一个超时对象<br/>setInterval("function",time) 设置一个超时对象<br/><br/>toLocaleString() x.toLocaleString() 从x时间对象中获取时间，以字符串型式存在<br/>typeof(变量名) 检查变量的类型，值有：String,Boolean,Object,Function,Underfined<br/><br/>window.event.button==1/2/3 鼠标键左键等于1右键等于2两个键一起按为3<br/>window.screen.availWidth 返回当前屏幕宽度(空白空间)<br/>window.screen.availHeight 返回当前屏幕高度(空白空间)<br/>window.screen.width 返回当前屏幕宽度(分辨率值)<br/>window.screen.height 返回当前屏幕高度(分辨率值)<br/>window.document.body.offsetHeight; 返回当前网页高度<br/>window.document.body.offsetWidth; 返回当前网页宽度<br/>window.resizeTo(0,0) 将窗口设置宽高<br/>window.moveTo(0,0) 将窗口移到某位置<br/>window.focus() 使当前窗口获得焦点<br/>window.scroll(x,y) 窗口滚动条坐标，y控制上下移动，须与函数配合<br/>window.open() window.open("地址","名称","属性") <br/>属性:toolbar(工具栏),location(地址栏),directions,status(状态栏),<br/>menubar(菜单栏),scrollbar(滚动条),resizable(改变大小), width(宽),height(高),fullscreen(全 屏),scrollbars(全屏时无滚动条无参 数,channelmode(宽屏),left(打开窗口x坐标),top(打开窗口y坐标)<br/>window.location = 'view-source:' + window.location.href 应用事件查看网页源代码;<br/><br/><br/>a=new Date(); //创建a为一个新的时期对象<br/>y=a.getYear(); //y的值为从对象a中获取年份值 两位数年份<br/>y1=a.getFullYear(); //获取全年份数 四位数年份<br/>m=a.getMonth(); //获取月份值<br/>d=a.getDate(); //获取日期值<br/>d1=a.getDay(); //获取当前星期值<br/>h=a.getHours(); //获取当前小时数<br/>m1=a.getMinutes(); //获取当前分钟数<br/>s=a.getSeconds(); //获取当前秒钟数<br/><br/><br/>对象.style.fontSize="文字大小";<br/>单位：mm/cm/in英寸/pc帕/pt点/px象素/em文字高<br/>1in=1.25cm<br/>1pc=12pt<br/>1pt=1.2px(800*600分辩率下)<br/><br/>文本字体属性：<br/>fontSize大小<br/>family字体<br/>color颜色<br/>fontStyle风格，取值为normal一般,italic斜体,oblique斜体且加粗<br/>fontWeight加粗,取值为100到900不等,900最粗,light,normal,bold<br/>letterSpacing间距,更改文字间距离,取值为,1pt,10px,1cm<br/>textDecoration:文字修饰;取值,none不修饰,underline下划线,overline上划线<br/>background:文字背景颜色,<br/>backgroundImage:背景图片,取值为图片的插入路径<br/><br/><br/>点击网页正文函数调用触发器：<br/><br/>1.onClick 当对象被点击<br/>2.onLoad 当网页打开,只能书写在body中<br/>3.onUnload 当网页关闭或离开时,只能书写在body中<br/>4.onmouseover 当鼠标悬于其上时<br/>5.onmouseout 当鼠标离开对象时<br/>6.onmouseup 当鼠标松开<br/>7.onmousedown 当鼠标按下键<br/>8.onFocus 当对象获取焦点时<br/>9.onSelect 当对象的文本被选中时<br/>10.onChange 当对象的内容被改变<br/>11.onBlur 当对象失去焦点<br/>onsubmit=return(ss())表单调用时返回的值<br/><br/>直线 border-bottom:1x solid black<br/>虚线 border-bottom:1x dotted black<br/>点划线 border-bottom:2x dashed black<br/>双线 border-bottom:5x double black<br/>槽状 border-bottom:1x groove black<br/>脊状 border-bottom:1x ridge black<br/><br/><br/>1.边缘高光glow(color=颜色,strength=亮光大小)<br/><br/>2.水平翻转fliph() 使对象水平翻转180度<br/><br/>3.垂直翻转flipv() 使对象垂直翻转180度<br/><br/>4.对象模糊blur(add=true/false direction=方向 strength=强度)<br/>add指定是否按印象画派进行模糊direction模糊方向strength模糊强度<br/>5.对象透明alpha(opaction=0-100,finishopacity=0-100,style=0/1/2/3)<br/>opaction对象整体不透明值finishopacity当对象利用了渐透明时该项指定结束透明位置的不透明值style指定透明方式0为整体透明，1为线型透明，2为圆型透明，3为矩形透明<br/>6.去除颜色chroma(color=颜色值)使对象中颜色与指定颜色相同区域透明<br/>7.建立阴影dropshadow(color=阴影颜色,offx=水平向左偏离像素,offy=水平向下偏离像素)<br/>8.去色gray()使对象呈灰度显示<br/>9.负片效果invert()使对象呈底片效果<br/>10.高光light()使对象呈黑色显示<br/>11.遮盖mask(color=颜色)使整个对象以指定颜色进行蒙板一次<br/><br/>opacity 表透明度水平.0~100,0表全透明,100表完全不透明<br/>finishopacity表想要设置的渐变透明效果.0~100.<br/>style 表透明区的形状.0表统一形状.1表线形.2表放射形.3表长方形.<br/>startx.starty表渐变透明效果的开始时X和Y坐标.<br/>finishx,finishy渐变透明效果结束时x,y 的坐标.<br/>add有来确定是否在模糊效果中使有原有目标.值为0,1.0表"否",1表"是".<br/>direction设置模糊的方向.0度表垂直向上,45度为一个单位.默认值是向左270度.left,right,down,up.<br/>strength 只能用整数来确定.代表有多少个像素的宽度将受到模糊影响.默认是5个.<br/>color要透明的颜色.<br/>offx,offy分别是x,y 方向阴影的偏移量.<br/>positive指投影方式.0表透明像素生成阴影.1表只给出不透明像素生成阴影..<br/><br/>AddAmbient:加入包围的光源.<br/>AddCone:加入锥形光源.<br/>AddPoint加入点光源<br/>Changcolor:改变光的颜色．<br/>Changstrength:改变光源的强度．<br/>Clear:清除所有的光源．<br/>MoveLight:移动光源．<br/><br/>freq是波纹的频率，在指定在对象上一区需要产生多少个完事的波纹．<br/>lightstrength可对于波纹增强光影的效果．显著0~100正整数，正弦波开始位置是0~360度．0表从0度开始，25表从90度开始．<br/>strength表振幅大小．<br/><br/><br/>hand style="cursor:hand"<br/>crosshair style="cursor:crosshair"<br/>text style="cursor:text"<br/>wait style="cursor:wait"<br/>default style="cursor:default" <br/>help style="cursor:help"<br/>e-resize style="cursor:e-resize"<br/>ne-resize style="cursor:ne-resize"<br/>n-resize style="cursor:n-resize"<br/>nw-resize style="cursor:nw-resize"<br/>w-resize style="cursor:w-resize"<br/>s-resize style="cursor:s-resize"<br/>sw-resize style="cursor:sw-resize "<br/>se-resize style="cursor:se-resize"<br/>auto style="cursor:auto" <br/> <br/>现在ArthurXF本人正在搞PHP等技术培训，如果想学习的人可以跟我联系。另外培训的招生简章在这个网址，想了解的可以去看看。<br/><a href="http://www.bizeway.net/read.php/285.htm" target="_blank">PHP培训招生简章</a><br/>Tags - <a href="tag.php?tag=javascript" rel="tag">javascript</a> , <a href="tag.php?tag=%E4%BA%8B%E4%BB%B6" rel="tag">事件</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?114</link>
<title><![CDATA[JScript 语法错误]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[Javascript]]></category>
<pubDate>Sun, 03 Jun 2007 17:07:33 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?114</guid> 
<description>
<![CDATA[ 
	JScript 语法错误是指当 JScript 语句违反了 JScript 脚本语言的一条或多条语法规则时导致的错误。JScript 语法错误发生在程序编译阶段，在开始运行该程序之前。（错误发生在开发过程中），以下是32个语法错误<br/><br/><br/><br/>错误号 描述<br/><br/>十进制 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 十六进制 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;说明<br/><br/>1001 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03E9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 内存不足<br/><br/>1002 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03EA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 语法错误 <br/>1003 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03EB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“：” <br/>1004 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03EC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“；” <br/>1005 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03ED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“(” <br/>1006 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03EE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“)” <br/><br/>1007 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03EF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“]” <br/>1008 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“{” <br/>1009 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“}” <br/>1010 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要标识符<br/>1011 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A03F3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要“=”<br/>1012 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“/” <br/>1013 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 无效数<br/><br/>1014 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 非法字符 <br/>1015 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 字符串常数未结束<br/><br/>1016 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03F8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 注释未结束 <br/>1018 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03FA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 函数外有 ’return’ 语句 <br/>1019 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03FB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 在循环外不能有“break” <br/>1020 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03FC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 在循环外不能有“continue”<br/><br/>1023 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A03FF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要十六进制数 <br/>1024 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0400 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要“while” <br/>1025 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0401 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;标签定义重复 <br/>1026 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0402 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;未找到标签 <br/>1027 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0403 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;一条 “switch” 语句中只能有一个 “default” <br/>1028 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0404 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要标识符、字符串或者数字 <br/>1029 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0405 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要“@end” <br/>1030 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0406 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;条件编译已关闭 <br/><br/>1031 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0407 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要常数<br/>1032 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0408 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要“@” <br/>1033 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0409 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;需要“catch” <br/><br/>1034 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A040A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要“var”<br/>1035 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A040B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “Throw”的后面必须跟有一个表达式，且在同一源代码行上 <br/><br/><br/><br/><br/><br/>JScript 运行时错误 <br/>JScript 运行时错误是指当 JScript 脚本试图执行一个系统不能运行的动作时导致的错误。当正在运行脚本、计算变量表达式、或者正在动态分配内存时出现JScript 运行时错误时。<br/><br/>以下是76个运行时错误<br/><br/><br/><br/>错误号 描述 <br/><br/>十进制 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;十六进制 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 说明<br/>5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0005 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;非法过程调用或参数<br/><br/>6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0006 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;溢出<br/><br/>7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A0007 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 内存不足<br/><br/>9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A0009 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;下标超界<br/><br/>10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A000A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;此数组被固定或临时锁定<br/><br/>11 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A000B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;零除错误<br/><br/>13 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A000D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;类型失配<br/><br/>14 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A000E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;串空间不足<br/><br/>17 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0011 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;不能执行所请求的操作<br/><br/>28 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A001C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;栈空间不足<br/><br/>35 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0023 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;子过程或函数未找到<br/><br/>48 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0030 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;装载DLL出错<br/><br/>51 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0033 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;内部出错<br/><br/>52 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0034 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;坏文件名或数<br/><br/>53 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0035 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;文件未找到<br/><br/>54 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0036 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;坏文件模式<br/><br/>55 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0037 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;文件已经打开<br/><br/>57 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0039 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;设备I/O错误<br/><br/>58 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A003A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;文件已经存在<br/><br/>61 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A003D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;磁盘空间已满<br/><br/>62 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A003E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;输入超出文件尾<br/><br/>67 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0043 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;文件太多<br/><br/>68 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0044 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;设备不可用<br/><br/>70 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0046 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;权限禁用<br/><br/>71 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A0047 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;磁盘未准备好<br/><br/>74 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A004A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;不能用不同的驱动重命名<br/><br/>75 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A004B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;路径/文件访问错误<br/><br/>76 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A004C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;路径未找到<br/><br/>91 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A005B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象变量或With块变量未设置<br/><br/>92 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A005C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For循环未初始化<br/><br/>94 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A005E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Null使用无效<br/><br/>322 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A0042 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;不能建立所需的临时文件<br/><br/>424 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01A8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要对象<br/><br/>429 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01A9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Automation服务器不能建立对象<br/><br/>430 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01AE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;类不支持Automation<br/><br/>432 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01B0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;在Automation操作中找不到文件名或类名<br/><br/>438 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01B6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象不支持这个属性或方法<br/><br/>440 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01B8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Automation错误<br/><br/>445 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01BD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 对象不支持这个动作<br/><br/>446 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01BE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象不支持指定的参数<br/><br/>447 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01BF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象不支持当前区域设置<br/><br/>448 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01C0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;指定的参数未找到<br/><br/>449 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01C1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;参数不可选<br/><br/>450 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01C2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;错误的参数数目或非法属性分配<br/><br/>451 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01C3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象不是一个集合<br/><br/>453 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01C5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;指定的dll函数未找到<br/><br/>458 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01CA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;变量使用了一个Jscript不支持的Automation类型<br/><br/>462 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01CE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;远程服务器机器不存在或不可用<br/><br/>501 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01F5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;不能分配给变量<br/><br/>502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01F6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象对于脚本不安全<br/><br/>503 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01F7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象对于初始化不安全<br/><br/>504 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A01F8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;对象对建立不安全<br/><br/>5000 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A1388 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 不能分配给“this” &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/>5001 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A1389 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Number 类型 <br/>5002 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A138A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Function 对象 <br/>5003 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A138B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 不能给函数返回值赋值 <br/>5004 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A138C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 不能索引对象<br/><br/>5005 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A138D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 String <br/>5006 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A138E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Date 对象 <br/>5007 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A138F &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Object 类型 <br/>5008 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A1390 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 非法赋值 <br/>5009 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A1391 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 未定义标识符 <br/>5010 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A1392 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Boolean <br/>5011 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;800A1393 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 不能执行来自一个自由脚本的代码<br/><br/>5012 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A1394 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要对象的成员 <br/>5013 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A1395 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 VBArray <br/>5014 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A1396 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 JScript 对象 <br/>5015 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A1397 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Enumerator 对象 <br/>5016 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A1398 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要正则表达式对象 <br/>5017 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A1399 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 正则表达式语法错误 <br/><br/>5018 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A139A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 未预期的限定符 <br/>5019 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A139B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 正则表达式中缺少“]” <br/>5020 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A139C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 正则表达式中缺少“)” <br/>5021 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A139D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 字符集范围无效 <br/>5022 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A139E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 异常抛出，但无法抓住 <br/>5023 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A139F &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 函数没有合法的 Prototype （原型）对象<br/><br/>5024 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 待解码的 URI 包含有非法字符 <br/>5025 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 待解码的 URI 编码非法 <br/>5026 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 小数部分的位数越界 <br/>5027 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 精度越界 <br/><br/>5028 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需要 Array 或 arguments 对象 <br/><br/>5029 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 数组长度必须为一有限正整数 <br/>5030 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 800A13A6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 必须赋给数组长度一个有限正数<br/><br/>Tags - <a href="tag.php?tag=jscript" rel="tag">jscript</a> , <a href="tag.php?tag=%E8%AF%AD%E6%B3%95%E9%94%99%E8%AF%AF" rel="tag">语法错误</a>
]]>
</description>
</item>
</channel>
</rss>