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

推荐订阅源

N
News | PayPal Newsroom
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LangChain Blog
S
SegmentFault 最新的问题
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Project Zero
Project Zero
P
Privacy & Cybersecurity Law Blog
V
Vulnerabilities – Threatpost
博客园 - 三生石上(FineUI控件)
Recorded Future
Recorded Future
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
T
Tor Project blog
T
The Exploit Database - CXSecurity.com
Schneier on Security
Schneier on Security
H
Help Net Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
M
MIT News - Artificial intelligence
W
WeLiveSecurity
P
Proofpoint News Feed
A
About on SuperTechFans
S
Securelist
I
InfoQ
G
Google Developers Blog
博客园 - 司徒正美
博客园 - 叶小钗
Latest news
Latest news
F
Fortinet All Blogs
G
GRAHAM CLULEY
腾讯CDC
Jina AI
Jina AI
S
Schneier on Security
I
Intezer
V
Visual Studio Blog
美团技术团队
V2EX - 技术
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
罗磊的独立博客
Y
Y Combinator Blog

博客园 - 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>