注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

天上人间*bobo之家

有阳光的时段,就有他(她)的博客文章。也许天气并非晴空万里,博主的“博物钟”却是

 
 
 

日志

 
 

mootools-JS验证  

2009-11-24 18:15:41|  分类: typo3 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Installation tutorial and examples

First link MooTools dependencies

<script type="text/javascript" src="/js/mootools/core.js"></script> 
<script type="text/javascript" src="/js/mootools/more.js"></script>
See How much mootools? For the minimum requirements.

Attach FormCheck to your HTML document

<script type="text/javascript" src="/js/formcheck/lang/en.js"> </script>
<script type="text/javascript" src="/js/formcheck/formcheck.js"> </script>

Link the desired theme

<link rel="stylesheet" href="/js/formcheck/theme/classic/formcheck.css" type="text/css" media="screen" />

Instantiate FormCheck class for the given form

<script type="text/javascript">
window.addEvent('domready', function(){
new FormCheck('myform');
});
</script>

required

Validation will failed if there is no value entered in the field.


<input class="validate['required']" />

TS
page.includeJS {
file1 = //冲突时令其为空
file42 =
lightbox =
file3 = typo3conf/ext/fn_mootools_libs/res/js/mootools/mootools-1.2-core.js
file4 = typo3conf/ext/fn_mootools_libs/res/js/mootools/mootools-1.2-more.js
file5 = typo3conf/ext/fn_mootools_libs/res/js/formcheck/lang/en.js
file6 = typo3conf/ext/fn_mootools_libs/res/js/formcheck/formcheck_1.4.js
}

官网:http://mootools.floor.ch/en/demos/formcheck/
  评论这张
 
阅读(567)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018