惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
H
Hacker News: Front Page
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
P
Palo Alto Networks Blog
Webroot Blog
Webroot Blog
Hacker News: Ask HN
Hacker News: Ask HN
IT之家
IT之家
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
罗磊的独立博客
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
Y
Y Combinator Blog
AWS News Blog
AWS News Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
K
Kaspersky official blog
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Security Archives - TechRepublic
Security Archives - TechRepublic
The Last Watchdog
The Last Watchdog
Jina AI
Jina AI
MyScale Blog
MyScale Blog
TaoSecurity Blog
TaoSecurity Blog
大猫的无限游戏
大猫的无限游戏
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
美团技术团队
T
Tor Project blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 【当耐特】
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
I
Intezer
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - javaca88

SQL高级语法汇总 聚焦索引与非聚焦索引及其查询效率 zhuan - javaca88 - 博客园 博文阅读密码验证 - 博客园 FormView1.ChangeMode 最经典的实现字符数控制的方案哦!(完善版)(转) JavaScript实际应用:父子页面交互 FormView1 动态传参数 如何取得treeview的节点的checkbox的value值 - javaca88 - 博客园 DetailsView1 动态添加自动列 - javaca88 - 博客园 要用到的代码2 - javaca88 - 博客园 技术网站收录 grid view控件中经常会遇到选择行的问题,怎么才能获得当前行呢 step by step 7 转:C#.Net的常见面试试题 zuo ye 缓冲池 Assembly.Load 获取硬盘序列号 split 正确用法 在SQLSERVER里写了一个Split函数
textaera maxlength - javaca88 - 博客园
javaca88 · 2009-06-26 · via 博客园 - javaca88

<html>
<script type="text/javascript" language="javascript">
    function ismaxlength(obj)
    { 
 alert(obj.value.length);
        var mlength=obj.getAttribute ? parseInt(obj.getAttribute("maxlength")) : "";
     if (obj.getAttribute && obj.value.length>mlength) 
     { 
         obj.value=obj.value.substring(0,mlength) 
     }
    } 
     
     
    function imposeMaxLength(obj)
    { 

        var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "";
        if(obj.value.length >= mlength)
  {
   obj.value=obj.value.substring(0,mlength) 
  }
  
  if(obj.value.length >512)
  {
   document.getElementById("show1024").value = obj.value.length;
  }
  else
  {
   document.getElementById("show512").value = obj.value.length;
  }

    }
</script>
<div>
<span style="width:480px;float:left;" ><input type="text" id="show512" value="" /><input type="button" value="Clear" onclick="javascript:document.getElementById('show512').value=''" /></span>
<span style="width:480px;float:right;"><input type="text" id="show1024" value="" />
<input type="button" value="Clear" onclick="javascript:document.getElementById('show1024').value=''" />
</span>
</div>
<div>
<span style="float:left;">
<textarea maxlength="512" title="512" style="width:480px; height:800px;" onblur="javascript:imposeMaxLength(this);" onkeypress="javascript:ismaxlength(this);"> fs </textarea>
</span>
<span style="float:right;">
<textarea maxlength="1024" title="1024" style="width:480px; height:800px;" onblur="javascript:imposeMaxLength(this);" onkeypress="javascript:ismaxlength(this);"> fs </textarea>
</span>
</div>
</html>