易截截图软件、单文件、免安装、纯绿色、仅160KB

下拉框树,HTML代码

     很多时候,我们需要将下拉框里面的数据用树显示出来,这样会便于客户得到清晰的数据,而且比较直接,晾出以下HTML代码,可以直接复制到HTML代码里面运行!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script>
/*****************************************
auth: polarbear
data: 2009.04.17
******************************************/
//ucstar select
//id: select id
//name: select attribute name
//rootSelectname: select first option value
//sign: iterator options's prefix sign
//selectid: about the selected option id
function UcstarSelectObj(id,name,rootSelectname,sign,selectedid) {
 this.id = id;
 this.name = name;
 this.rootSelectname = rootSelectname;
 this.sign = sign;
 this.selectedid = selectedid;
 this.selectStr = "";
 this.ucstaroptions = [];
 this.ucstaroptionobjs = [];
}
//ucstar option
//id: option id
//name: option value
//pid: the node's parent id
//desc: the option's description
function UcstarOption(id,name,pid,desc) {
 this.id = id;
 this.name = name;
 this.pid = pid;
 this.desc = desc;
}
//get the options by parentid
UcstarSelectObj.prototype.getChildOptions = function(vPid) {
 var childOptions = new Array();
 //this.debug(this.ucstaroptions.length);
 for(var i = 0; i < this.ucstaroptions.length; i++) {
  if(this.ucstaroptions[i].pid == vPid) {
   //this.debug(this.ucstaroptions[i].pid + "-" + this.ucstaroptions[i].id);
   childOptions[childOptions.length] = this.ucstaroptions[i];
  }
 }
 return childOptions;
}
//debug message
UcstarSelectObj.prototype.debug = function(message) {
 


相关文档:

有关去掉html中的两端字符

如何有一个字符串是这样的形式str = "&bbbLAA";
想得到"L"的话可以这样去实现:
//sDataStr = "&bbbLAA";
//sLeftQuote = ""&bbb";
//sRightQuote = "&AA";
调用这个方法将得到L字段。
function abCutString( sDataStr, sLeftQuote, sRightQuote)
{
 var sReturnVal = '';
 var nStart ......

c#从html中获取图片地址

 
using System.Text.RegularExpressions;
string ohtml = this.TextBox1.Text;
            System.Text.RegularExpressions.MatchCollection m;
            //提取字符串的图片
   ......

html弹出提示框并实现拖动的源码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type" />
<title>简单的测试页面</title> ......

.net 生成HTML页


        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            string ......

HTML,CSS编辑器:Crescent Eve

Crescent Eve(http://www.kashim.com/eve/
)是免费的HTML,CSS的编辑器.
和记事本类似,非常简洁.
主要有以下4个功能
   HTML的tag输入提示
   tag属性的输入提示
   HTML的语法检查
   HTML预览
在编辑HTML画面时非常有用.
Crescent Eve是非常小的一个编辑器,操作也非常简 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号