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

最近自己在写javascript/html/css的树控件

    完成以下部分:
    1. 树可以接受singleXml格式和json以及jsonarray格式的数据;
    2. 复选框勾选和折叠子节点的逻辑用div嵌套来实现,效率更高;并提供了快速画树的方法;(存在bug:快速画树效率并不高,div嵌套有问题);
    3.增加树的深度 this.depth;
    4.增加当前节点的层次 this.level;
//学习要点:
1. 嵌套div如果内层div没有指定宽度,则文字以外的部分点击没有效果;(仅限ie,firefox没有问题)


相关文档:

获取对象CSS属性

//获取一个特定元素的样式属性
function getStyle(elem,name){
//如果该属性存在于style中 则他最近被设置过
if(elem.style[name]){
return elem.style[name];
}
//否则尝试IE方法
else if(elem.currentStyle){
return elem.currentStyle[name];
//W3C方法
}else if(document.defaultview && document ......

进一步理解javascript对象、数组和哈希表


进一步理解javascript对象、数组和哈希表 



在javascript中,对象实际上就是一个哈希表,比如下面这个user对象:
function user(n, a)
{
this.name = n;
this.age = a;
this.toString = function() {
return 'Name:' + ......

coolite control add the html tag

I always consider the coolitm control only can use its control tag in its body.
But I found that it can use html tag ,this very good.
so I show the sample to other:
<ext:Window
ID="Window1"
runat="server"
Width="500"
Height="485"
......

asp.net wap 2.0 实现 ishtml32 下 加载 css文件

使用asp.net 开发wap 网站,在ishtml32下,如果手机浏览器支持ishtml32,但是 SupportsCss=False 时,想加载css文件时,采用重写mobile:form的方法来实现
using System;
using System.Configuration;
using System.Web.UI.MobileControls;
using System.Web.UI.MobileControls.Adapters;
public class MyForm : Form
{ ......

[转]JavaScript中的trim函数

/**
* 去除多余空格函数
* trim:去除两边空格 lTrim:去除左空格 rTrim: 去除右空格
* 用法:
*     var str = "  hello ";
*     str = str.trim();
*/
String.prototype.trim = function()
{
    return this.replace(/(^[\\s]*)|([\\s]*$)/g, ""); ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号