﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava--随笔分类-web javascript</title><link>http://www.blogjava.net/forker/category/25662.html</link><description>幸福 这么远 那么甜.</description><language>zh-cn</language><lastBuildDate>Sun, 13 Apr 2008 17:53:36 GMT</lastBuildDate><pubDate>Sun, 13 Apr 2008 17:53:36 GMT</pubDate><ttl>60</ttl><item><title>IE下让打开的网站图片飘</title><link>http://www.blogjava.net/forker/archive/2008/04/12/192438.html</link><dc:creator>forker</dc:creator><author>forker</author><pubDate>Sat, 12 Apr 2008 10:21:00 GMT</pubDate><guid>http://www.blogjava.net/forker/archive/2008/04/12/192438.html</guid><wfw:comment>http://www.blogjava.net/forker/comments/192438.html</wfw:comment><comments>http://www.blogjava.net/forker/archive/2008/04/12/192438.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/forker/comments/commentRss/192438.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/forker/services/trackbacks/192438.html</trackback:ping><description><![CDATA[    在IE下让打开的网站图片飘，来源同学的推荐，纯属好玩，如下代码，放到已打开网站的IE地址栏上然后回车，效果不错哦。<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"># javascript:R</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; x1</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">; y1</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">05</span><span style="color: rgb(0, 0, 0);">; x2</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">25</span><span style="color: rgb(0, 0, 0);">; y2</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">24</span><span style="color: rgb(0, 0, 0);">; x3</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1.6</span><span style="color: rgb(0, 0, 0);">; y3</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">24</span><span style="color: rgb(0, 0, 0);">; x4</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">300</span><span style="color: rgb(0, 0, 0);">; y4</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">200</span><span style="color: rgb(0, 0, 0);">; x5</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">300</span><span style="color: rgb(0, 0, 0);">; y5</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">200</span><span style="color: rgb(0, 0, 0);">; DI</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">document.images; DIL</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">DI.length; </span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> A(){</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; i</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">DIL; i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">){DIS</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">DI[ i ].style; DIS.position</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'absolute'; DIS.left</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">Math.sin(R</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">x1</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">i</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">x2</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">x3)</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">x4</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">x5; DIS.top</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">Math.cos(R</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">y1</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">i</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">y2</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">y3)</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">y4</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">y5}R</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">}setInterval('A()',</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">); </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">);  </span></div><br /><img src ="http://www.blogjava.net/forker/aggbug/192438.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/forker/" target="_blank">forker</a> 2008-04-12 18:21 <a href="http://www.blogjava.net/forker/archive/2008/04/12/192438.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WEB界面开发规范(转)</title><link>http://www.blogjava.net/forker/archive/2007/11/04/158109.html</link><dc:creator>forker</dc:creator><author>forker</author><pubDate>Sun, 04 Nov 2007 12:31:00 GMT</pubDate><guid>http://www.blogjava.net/forker/archive/2007/11/04/158109.html</guid><wfw:comment>http://www.blogjava.net/forker/comments/158109.html</wfw:comment><comments>http://www.blogjava.net/forker/archive/2007/11/04/158109.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/forker/comments/commentRss/158109.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/forker/services/trackbacks/158109.html</trackback:ping><description><![CDATA[
		<div align="center">WEB界面开发规范(转)<br /><div align="left"><h1 class="cjk">页面设计规则</h1></div><div align="left"><h2 class="cjk">页面命名规则</h2><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">1</font>、每个功能页面在系统中配置菜单时统一使用<font face="Times New Roman, serif">index.jsp</font>或<font face="Times New Roman, serif">index.html</font>。例如客户管理配置的<font face="Times New Roman, serif">URL</font>为<font face="Times New Roman, serif">http://Server:Port/cc/custmgr/index.jsp</font>。</p><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">2</font>、每个页面的<font face="Times New Roman, serif">title</font>必须设置为和菜单配置中相同的中文，例如在菜单项中配置为“客户管理”，则此页面的<font face="Times New Roman, serif">title</font>也要设置为“客户管理”。</p><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">3</font>、对于<font face="Times New Roman, serif">JSP</font>页面都需要在页面的最开始部分增加以下语句</p><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">&lt;%@
page contentType="text/html; charset=UTF-8" %&gt;</font></p><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">4</font>、对于<font face="Times New Roman, serif">HTML</font>页面都需要在页面的最开始部分增加以下语句</p><p style="margin-bottom: 0cm;" align="left"><font face="Times New Roman, serif">&lt;meta
http-equiv="Content-Language" content="zh-cn"&gt;
</font></p><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">&lt;meta
http-equiv="Content-Type" content="text/html;
charset=gb2312"&gt;</font></p><p style="margin-bottom: 0cm;"><font face="Times New Roman, serif">5</font>、对于页面中控件的属性设置都需要用双引号包括起来。</p><h2 class="cjk">控件命名规则</h2><p style="margin-bottom: 0cm;">页面编码过程中用到的所有控件命名都需要遵循相应规则，方便程序的可读性。采用控件类型缩写前缀（小写）<font face="Times New Roman, serif">+</font>英文单词（第一个字母大写）的方法来命名每一个控件。具体规则如下：</p><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="269" /><col width="270" /><tbody><tr valign="top"><td bgcolor="#bfbfbf" width="269"><p>控件类型</p></td><td bgcolor="#bfbfbf" width="270"><p>前缀</p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">Button</font></p></td><td width="270"><p><font face="Times New Roman, serif">btn</font></p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">Form</font></p></td><td width="270"><p><font face="Times New Roman, serif">frm</font></p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">Select</font></p></td><td width="270"><p><font face="Times New Roman, serif">sel</font></p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">TextArea</font></p></td><td width="270"><p><font face="Times New Roman, serif">txt</font></p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">Input</font></p></td><td width="270"><p><font face="Times New Roman, serif">ipt</font></p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">Image</font></p></td><td width="270"><p><font face="Times New Roman, serif">img</font></p></td></tr><tr valign="top"><td width="269"><p><font face="Times New Roman, serif">DIV</font></p></td><td width="270"><p><font face="Times New Roman, serif">div</font></p></td></tr></tbody></table><br /><h2 class="cjk">变量定义规则</h2><p style="margin-bottom: 0cm;">页面编码过程中用到的所有变量定义都需要遵循相应规则，方便程序的可读性。采用数据类型缩写前缀（小写）<font face="Times New Roman, serif">+</font>英文单词（第一个字母大写）的方法来命名每一个变量。具体规则如下：</p><br /><p style="margin-bottom: 0cm;"></p><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="269" /><col width="270" /><tbody><tr valign="top"><td bgcolor="#bfbfbf" width="269"><p>数据类型</p></td><td bgcolor="#bfbfbf" width="270"><p>前缀</p></td></tr><tr valign="top"><td width="269"><p><font style="font-size: 9pt;" size="2">整数</font></p></td><td width="270"><p><font face="Times New Roman, serif">i</font></p></td></tr><tr valign="top"><td width="269"><p><font style="font-size: 9pt;" size="2">小数</font></p></td><td width="270"><p><font face="Times New Roman, serif">f</font></p></td></tr><tr valign="top"><td width="269"><p><font style="font-size: 9pt;" size="2">字符</font></p></td><td width="270"><p><font face="Times New Roman, serif">s</font></p></td></tr><tr valign="top"><td width="269"><p><font style="font-size: 9pt;" size="2">布尔</font></p></td><td width="270"><p><font face="Times New Roman, serif">b</font></p></td></tr><tr valign="top"><td width="269"><p><font style="font-size: 9pt;" size="2">日期</font></p></td><td width="270"><p><font face="Times New Roman, serif">d</font></p></td></tr><tr valign="top"><td width="269"><p><font style="font-size: 9pt;" size="2">数组</font></p></td><td width="270"><p><font face="Times New Roman, serif">arr</font></p></td></tr></tbody></table><br /><p style="margin-bottom: 0cm;"></p><h2 class="cjk">函数定义规则</h2><p style="text-indent: 0.74cm; margin-bottom: 0cm;">页面编码过程中用到的所有函数定义都需要遵循相应规则，方便程序的可读性。采用前缀（<font face="Times New Roman, serif">fuc</font>）<font face="Times New Roman, serif">+</font>英文单词（第一个字母大写）的方法来命名每一个函数。</p><p style="text-indent: 0.74cm; margin-bottom: 0cm;">例如：<font face="Times New Roman, serif">fucAcceptOrder</font></p><br /><p style="margin-bottom: 0cm;"></p><h2 class="cjk"><font face="Arial, sans-serif">CSS</font>文件使用</h2><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">页面的规范</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="208" /><col width="331" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="208"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="331"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="208"><p><font face="Times New Roman, serif"><font face="宋体, SimSun"><font size="3">b</font></font><font face="宋体, SimSun"><font size="3">ody</font></font></font></p></td><td width="331"><p><font size="3">页面内容基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">表格的规范</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="208" /><col width="331" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="208"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="331"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="208"><p><font face="宋体, SimSun"><font size="3">table</font></font></p></td><td width="331"><p><font size="3">表格的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">层的规范</font></font></p></li></ul><br /><p style="margin-bottom: 0cm;"></p><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="208" /><col width="331" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="208"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="331"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="208"><p><font face="宋体, SimSun"><font size="3">div</font></font></p></td><td width="331"><p><font size="3">层的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">链接的规范</font></font></p></li></ul><br /><p style="margin-bottom: 0cm;"></p><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="208" /><col width="331" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="208"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="331"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="208"><p><font face="宋体, SimSun"><font size="3">a</font></font></p></td><td width="331"><p><font size="3">超链接的基本样式</font></p></td></tr></tbody></table><br /><p style="margin-bottom: 0cm;"></p><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">DataGrid</font></font><font face="黑体, SimHei"><font size="3">的规范</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="244" /><col width="295" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="244"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="295"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="244"><p><font face="黑体, SimHei"><font size="3">table.datatable</font></font></p></td><td width="295"><p><font size="3">数据表的基本样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.datatable</font></font><font face="黑体, SimHei"><font size="3">
			thead</font></font></font></p></td><td width="295"><p><font size="3">数据表的页眉样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.datatable</font></font><font face="黑体, SimHei"><font size="3">
			tbody</font></font></font></p></td><td width="295"><p><font size="3">数据表的表格体样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.datatable</font></font><font face="黑体, SimHei"><font size="3">
			tfoot</font></font></font></p></td><td width="295"><p><font size="3">数据表的页脚样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.datatable</font></font><font face="黑体, SimHei"><font size="3">
			tr.row_odd</font></font></font></p></td><td width="295"><p><font size="3">数据表的奇数行样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.datatable</font></font><font face="黑体, SimHei"><font size="3">
			tr.row_even</font></font></font></p></td><td width="295"><p><font size="3">数据表的偶数样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.datatable
			tr.ro</font></font><font face="黑体, SimHei"><font size="3">w_selected</font></font></font></p></td><td width="295"><p><font size="3">数据表的选中行样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="黑体, SimHei"><font size="3">table.datatable
			tr.row_active</font></font></p></td><td width="295"><p><font size="3">数据表的当前激活表格的选中行样式</font></p></td></tr><tr valign="top"><td width="244"><p><font face="黑体, SimHei"><font size="3">table.datatable
			td.indicate</font></font></p></td><td width="295"><p><font size="3">数据表的指示器样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">下拉表格的规范</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.dropdowntable</font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.dropdowntable
			thead</font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的页眉样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.dropdowntable
			tbody</font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的表格体样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">table.dropdowntable
			tfo</font></font><font face="黑体, SimHei"><font size="3">ot</font></font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的页脚样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.dropdowntable
			tr.row_odd</font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的奇数行样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.dropdowntable
			tr.row_even</font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的偶数行样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.dropdowntable
			tr.row_selected</font></font></p></td><td width="259"><p align="left"><font size="3">下拉表格的选中行样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">编辑框</font></font></p></li></ul><br /><p style="margin-bottom: 0cm;"></p><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.editor</font></font></p></td><td width="259"><p align="left"><font size="3">编辑框的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.editor_active</font></font></p></td><td width="259"><p align="left"><font size="3">激活的编辑框的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">按钮</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.button</font></font></p></td><td width="259"><p align="left"><font size="3">按钮的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.button_down</font></font></p></td><td width="259"><p align="left"><font size="3">被按下按钮的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">数据导航条控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.datapilot</font></font></p></td><td width="259"><p align="left"><font size="3">数据导航条的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">树状列表控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree</font></font></p></td><td width="259"><p align="left"><font size="3">树状列表的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree tr.row_odd</font></font></p></td><td width="259"><p align="left"><font size="3">树状列表奇数行的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree tr.row_even</font></font></p></td><td width="259"><p><font size="3">树状列表偶数行的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree
			tr.row_selected</font></font></p></td><td width="259"><p><font size="3">树状列表当前行的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree
			tr.row_rightclick</font></font></p></td><td width="259"><p><font size="3">树状列表的响应当前鼠标右击的行基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree
			.expandbutton</font></font></p></td><td width="259"><p><font size="3">树状列表展开按钮的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.tree .icon</font></font></p></td><td width="259"><p><font size="3">树状列表的图标样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">字段标题控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.fieldlabel</font></font></p></td><td width="259"><p align="left"><font size="3">字段标题的样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">数据标签控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.datalabel</font></font></p></td><td width="259"><p align="left"><font size="3">数据标签的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">标签页控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.tabset</font></font></p></td><td width="259"><p align="left"><font size="3">标签页的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="宋体, SimSun"><font size="3">.tab</font></font></p></td><td width="259"><p align="left"><font size="3">标签页中的单个标签的样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">菜单控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menu</font></font></p></td><td width="259"><p align="left"><font size="3">菜单的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menu tr</font></font></p></td><td width="259"><p align="left"><font size="3">菜单行的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menu
			tr.row_selected</font></font></p></td><td width="259"><p align="left"><font size="3">菜单选中行的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menu
			tr.row_disabled</font></font></p></td><td width="259"><p align="left"><font size="3">菜单无效行的基本样式</font></p></td></tr></tbody></table><p style="margin-bottom: 0cm;"></p><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">菜单工具条控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menubar</font></font></p></td><td width="259"><p align="left"><font size="3">菜单工具条的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menubar .button</font></font></p></td><td width="259"><p align="left"><font size="3">菜单工具条中按钮的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menubar
			.button_active</font></font></p></td><td width="259"><p align="left"><font size="3">菜单工具条中当前按钮的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">table.menubar
			.button_hot</font></font></p></td><td width="259"><p align="left"><font size="3">菜单工具条相应鼠标的按钮的基本样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">下拉选单的边框控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="宋体, SimSun"><font size="3">.dropdown_frame</font></font></p></td><td width="259"><p align="left"><font size="3">下拉选单的边框的样式</font></p></td></tr></tbody></table><ul><li><p style="margin-bottom: 0cm;"><font face="黑体, SimHei"><font size="3">日历控件</font></font></p></li></ul><table border="1" bordercolor="#000000" cellpadding="7" cellspacing="0" width="569"><col width="280" /><col width="259" /><tbody><tr valign="top"><td bgcolor="#e0e0e0" width="280"><p align="center"><font size="3">关键字</font></p></td><td bgcolor="#e0e0e0" width="259"><p align="center"><font size="3">说明</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.calendar</font></font></p></td><td width="259"><p align="left"><font size="3">日历控件的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="Times New Roman, serif"><font face="黑体, SimHei"><font size="3">.calendar</font></font><font face="黑体, SimHei"><font size="3">
			.title</font></font></font></p></td><td width="259"><p align="left"><font size="3">日历控件页眉的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.calendar .footer</font></font></p></td><td width="259"><p align="left"><font size="3">日历控件页脚的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.calendar .cell_day</font></font></p></td><td width="259"><p align="left"><font size="3">日历控件日期单元格的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.calendar
			.cell_selected</font></font></p></td><td width="259"><p align="left"><font size="3">日历控件当前单元格的基本样式</font></p></td></tr><tr valign="top"><td width="280"><p><font face="黑体, SimHei"><font size="3">.calendar
			.cell_trailing</font></font></p></td><td width="259"><p align="left"><font size="3">日历中前月和后月的日期单元格的基本样式</font></p></td></tr></tbody></table><br /><br /></div></div>
<img src ="http://www.blogjava.net/forker/aggbug/158109.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/forker/" target="_blank">forker</a> 2007-11-04 20:31 <a href="http://www.blogjava.net/forker/archive/2007/11/04/158109.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSTL 设置</title><link>http://www.blogjava.net/forker/archive/2007/09/09/143702.html</link><dc:creator>forker</dc:creator><author>forker</author><pubDate>Sat, 08 Sep 2007 16:06:00 GMT</pubDate><guid>http://www.blogjava.net/forker/archive/2007/09/09/143702.html</guid><wfw:comment>http://www.blogjava.net/forker/comments/143702.html</wfw:comment><comments>http://www.blogjava.net/forker/archive/2007/09/09/143702.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/forker/comments/commentRss/143702.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/forker/services/trackbacks/143702.html</trackback:ping><description><![CDATA[
		<ol>
				<li>从 <a target="_blank" href="http://www.apache.org/dist/jakarta/taglibs/standard/">Apache.org</a> 下载最新版 
          
          <code>jakarta-taglibs-standard-current.tar.gz</code><br /></li>
				<li>解压缩下载的文件。</li>
				<li>将 <code>jakarta-taglibs-standard-1.1.2/tld/c.tld</code> 拷贝到 
          
          <code>WEB/INF/tlds</code> 目录<br /></li>
				<li>将 <code>jakarta-taglibs-standard-1.1.2/lib</code> 中的所有JAR文件拷贝到 
          
          <code>WEB-INF/lib</code> 目录(jstl.jar和standard.jar)<br /></li>
				<li>将以下显示的条目添加到 
          
          <code>WEB-INF/web.xml</code> 部署描述符中<br /></li>
		</ol>
		<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">
				<!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">taglib</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />         </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">taglib-uri</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">http://java.sun.com/jsp/jstl/core</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">taglib-uri</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />         </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">taglib-location</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">/WEB-INF/tlds/c.tld</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">taglib-location</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">taglib</span>
				<span style="color: rgb(0, 0, 255);">&gt;<br /><br /></span>
		</div>
		<br />  6. 在 JSP 页面添加了JSTL taglib之后，可以使用核心库中的任何标记，只需把标记的前缀改为 
        
        <code>c<br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">&lt;%</span><span style="color: rgb(0, 0, 0);">@taglib uri</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">http://java.sun.com/jsp/jstl/core</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> prefix</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">c</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">%&gt;</span><span style="color: rgb(0, 0, 0);"> <br /><br /><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">c:</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> test</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${param.sayHello}</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 0);">&lt;!--</span><span style="color: rgb(0, 0, 0);"> Let's welcome the user ${param.name} </span><span style="color: rgb(0, 0, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br />        Hello ${param.name}</span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">c:</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">c:out value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Hello World</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span></div><br /></code><br /><img src ="http://www.blogjava.net/forker/aggbug/143702.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/forker/" target="_blank">forker</a> 2007-09-09 00:06 <a href="http://www.blogjava.net/forker/archive/2007/09/09/143702.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>js去空格</title><link>http://www.blogjava.net/forker/archive/2007/09/07/143472.html</link><dc:creator>forker</dc:creator><author>forker</author><pubDate>Fri, 07 Sep 2007 08:35:00 GMT</pubDate><guid>http://www.blogjava.net/forker/archive/2007/09/07/143472.html</guid><wfw:comment>http://www.blogjava.net/forker/comments/143472.html</wfw:comment><comments>http://www.blogjava.net/forker/archive/2007/09/07/143472.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/forker/comments/commentRss/143472.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/forker/services/trackbacks/143472.html</trackback:ping><description><![CDATA[
		<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">
				<!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->
				<span style="color: rgb(0, 128, 0);">//</span>
				<span style="color: rgb(0, 128, 0);">去左空格</span>
				<span style="color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">function</span>
				<span style="color: rgb(0, 0, 0);"> ltrim(s){<br /></span>
				<span style="color: rgb(0, 0, 255);">  return</span>
				<span style="color: rgb(0, 0, 0);"> s.replace( </span>
				<span style="color: rgb(0, 0, 0);">/^</span>
				<span style="color: rgb(0, 0, 0);">\s</span>
				<span style="color: rgb(0, 0, 0);">*/</span>
				<span style="color: rgb(0, 0, 0);">, </span>
				<span style="color: rgb(0, 0, 0);">""</span>
				<span style="color: rgb(0, 0, 0);">);<br />}<br /></span>
				<span style="color: rgb(0, 128, 0);">//</span>
				<span style="color: rgb(0, 128, 0);">去右空格;</span>
				<span style="color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">function</span>
				<span style="color: rgb(0, 0, 0);"> rtrim(s){<br /></span>
				<span style="color: rgb(0, 0, 255);">  return</span>
				<span style="color: rgb(0, 0, 0);"> s.replace( </span>
				<span style="color: rgb(0, 0, 0);">/</span>
				<span style="color: rgb(0, 0, 0);">\s</span>
				<span style="color: rgb(0, 0, 0);">*</span>
				<span style="color: rgb(0, 0, 0);">$</span>
				<span style="color: rgb(0, 0, 0);">/</span>
				<span style="color: rgb(0, 0, 0);">, </span>
				<span style="color: rgb(0, 0, 0);">""</span>
				<span style="color: rgb(0, 0, 0);">);<br />}<br /></span>
				<span style="color: rgb(0, 128, 0);">//</span>
				<span style="color: rgb(0, 128, 0);">去左右空格;</span>
				<span style="color: rgb(0, 128, 0);">
						<br />
				</span>
				<span style="color: rgb(0, 0, 255);">function</span>
				<span style="color: rgb(0, 0, 0);"> trim(s){<br /></span>
				<span style="color: rgb(0, 0, 255);">  return</span>
				<span style="color: rgb(0, 0, 0);"> rtrim(ltrim(s));<br />}</span>
		</div>
		<br />
<img src ="http://www.blogjava.net/forker/aggbug/143472.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/forker/" target="_blank">forker</a> 2007-09-07 16:35 <a href="http://www.blogjava.net/forker/archive/2007/09/07/143472.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>