随笔-103  评论-37  文章-0  trackbacks-0
 
     摘要: 功能:在往第一个文本框或第二个文本框里输入的时候,同时在第三个文本框里显示输入的内容。
问题:在首次载入的时候,输入拼音,功能能实现。但是输入汉字,功能不能实现。必须在第一次
输入后,将输入内容删除,再重新输入,功能才能实现。

  阅读全文
posted @ 2007-04-19 20:50 鱼有所思 阅读(4624) | 评论 (1)编辑 收藏
     摘要: 在Web中经常碰到链接提示文字效果,就是当鼠标经过URL链接时,立刻弹出一个提示层(DIV),提示链接内容等等相关文字.虽然知道是用隐藏DIV实现的,不过一直不知道怎么弄.昨天搜到一个JS文件,可以轻松搞定.帖出来,收藏一下.
  阅读全文
posted @ 2007-04-19 20:49 鱼有所思 阅读(438) | 评论 (1)编辑 收藏
     摘要: JS大全  阅读全文
posted @ 2007-04-19 20:45 鱼有所思 阅读(26858) | 评论 (1)编辑 收藏
     摘要: 1,在函数中,传递数组时使用 return 比使用 global 要高效,比如
function userloginfo($usertemp)
{
$detail=explode("|",$usertemp);
return $detail;
}
$login=userloginfo($userdb); 比
function userloginfo($usertemp)
{
global $detail;
$detail=explode("|",$usertemp);
}
userloginfo($userdb); 要高速;  阅读全文
posted @ 2007-03-31 01:04 鱼有所思 阅读(327) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2007-03-29 15:54 鱼有所思 阅读(526) | 评论 (0)编辑 收藏
select NeConfig.NeName,SystemPerformance.ID,SystemPerformance.Time,PerfThreshold.PerfID,SystemPerformance.CpuUseRatio as Performance,PerfThreshold.HighWatermark from NeConfig,SystemPerformance,PerfThreshold where PerfThreshold.PerfID=1 union select NeConfig.NeName,SystemPerformance.ID,SystemPerformance.Time,PerfThreshold.PerfID,SystemPerformance.CpuTemp as Performance,PerfThreshold.HighWatermark from NeConfig,SystemPerformance,PerfThreshold where PerfThreshold.PerfID=2 union select NeConfig.NeName,SystemPerformance.ID,SystemPerformance.Time,PerfThreshold.PerfID,SystemPerformance.MemUseRatio as Performance,PerfThreshold.HighWatermark from NeConfig,SystemPerformance,PerfThreshold where PerfThreshold.PerfID=3 union select NeConfig.NeName,SystemPerformance.ID,SystemPerformance.Time,PerfThreshold.PerfID,SystemPerformance.Flow as Performance,PerfThreshold.HighWatermark from NeConfig,SystemPerformance,PerfThreshold where PerfThreshold.PerfID=4 union select NeConfig.NeName,SystemPerformance.ID,SystemPerformance.Time,PerfThreshold.PerfID,SystemPerformance.DiskUseRatio as Performance,PerfThreshold.HighWatermark from NeConfig,SystemPerformance,PerfThreshold where PerfThreshold.PerfID=5 union select NeConfig.NeName,SystemPerformance.ID,SystemPerformance.Time,PerfThreshold.PerfID,SystemPerformance.ProcessNum as Performance,PerfThreshold.HighWatermark from NeConfig,SystemPerformance,PerfThreshold where PerfThreshold.PerfID=6;
posted @ 2007-03-27 16:49 鱼有所思 阅读(798) | 评论 (3)编辑 收藏
     摘要: 删除现实存在的文本文件的指定行,这一行可以是任意的,即由用户决定。删除文本文件的任意一行非常有意义,比如,我们用一个文本文件记录注册用户的相关资讯(每一行一条资讯),现在我们需要删除其中的某一条。
  阅读全文
posted @ 2007-03-22 19:23 鱼有所思 阅读(5779) | 评论 (0)编辑 收藏
     摘要: 比如我们要下载一个abc.exe的文件。
分两种情况,一是文件单独下载:
另外一种情况是文件路径包含“http”或者“ftp”网址:   阅读全文
posted @ 2007-03-20 21:16 鱼有所思 阅读(355) | 评论 (0)编辑 收藏
     摘要: 一、验证类
1、数字验证内
1.1 整数
1.2 大于0的整数 (用于传来的ID的验证)
1.3 负整数的验证
1.4 整数不能大于iMax
1.5 整数不能小于iMin
2、时间类
2.1 短时间,形如 (13:04:06)
2.2 短日期,形如 (2003-12-05)
2.3 长时间,形如 (2003-12-05 13:04:06)
2.4 只有年和月。形如(2003-05,或者2003-5)
2.5 只有小时和分钟,形如(12:03)
3、表单类
3.1 所有的表单的值都不能为空
3.2 多行文本框的值不能为空。
3.3 多行文本框的值不能超过sMaxStrleng
3.4 多行文本框的值不能少于sMixStrleng
3.5 判断单选框是否选择。
3.6 判断复选框是否选择.
3.7 复选框的全选,多选,全不选,反选
3.8 文件上传过程中判断文件类型
4、字符类
4.1 判断字符全部由a-Z或  阅读全文
posted @ 2007-03-16 18:24 鱼有所思 阅读(523) | 评论 (0)编辑 收藏
     摘要: 权限设计

大概有这几种模式:
用户+组+角色+权限
用户+组+权限
用户+角色+权限
用户+权限  阅读全文
posted @ 2007-03-16 18:22 鱼有所思 阅读(1169) | 评论 (0)编辑 收藏
仅列出标题
共11页: First 3 4 5 6 7 8 9 10 11