六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 133|回复: 0

Dojo登陆表单代码

[复制链接]

升级  21.4%

185

主题

185

主题

185

主题

进士

Rank: 4

积分
607
 楼主| 发表于 2013-2-7 21:03:27 | 显示全部楼层 |阅读模式
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>无标题文档</title><link rel="stylesheet" type="text/css" href="../js/dijit/themes/tundra/tundra.css" /><link rel="stylesheet" type="text/css" href="../js/dojo/resources/dojo.css" /><style type="text/css">h3 {margin: 10px;}label, input {display:block;float:left;margin-bottom:5px;}label {text-align:right;width:70px;}br {clear:left;}.grouping {width:300px;border:solid 1px rgb(230,230,230);padding:5px;margin:10px;}</style><script type="text/javascript"  src="../js/dojo/dojo.js" djConfig="parseOnLoad: true"></script><script type="text/javascript">dojo.require("dojo.parser");dojo.require("dijit.form.TextBox");dojo.require("dijit.form.ValidationTextBox");dojo.require("dijit.form.Button");</script></head><body class="tundra"><h3>Sign-Up for out greater offers:</h3><form id="registration_form"><div class="grouping"><label>First Name:</label><input type="text" maxlength="25" name="first" dojoType="dijit.form.TextBox"  trim="true" propercase="true" /><br /><label>Last Name: </label><input type="text" maxlength="25" name="last" dojoType="dijit.form.TextBox" trim="true" propercase="true" /><br /><label>Your Email:</label><input type="text" maxlength="25" name="email" dojoType="dijit.form.ValidationTextBox" trim="true" lowercase="true" regExp="[a-z0-9._%+-]+@[a-z0-9-]+\.[a-z]{2,4}" required="true" invalidMessage="Please enter a valid e-mail address" /><br /><button dojoType="dijit.form.Button" >Sign Up!</button></div></form></body></html>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表