CSS楼主可自己增加:- <DIV class=content>
- <DIV class=main>
- <DIV class=login>
- <FORM class=form name=dform onsubmit="return doSubmit()" action=""
- method=post><INPUT type=hidden value=rove.org.ru name=domain>
- <DIV class=fi><LABEL class=lb>帐 号:</LABEL> <INPUT class=ipt-t
- style="WIDTH: 140px" name=account_name> <B class=at>@</B><STRONG
- class=domain>rove.org.ru</STRONG> </DIV>
- <DIV class=fi><LABEL class=lb>密 码:</LABEL> <INPUT class="ipt-t ipt-t-pwd"
- style="WIDTH: 140px" type=password name=password> <A
- href="http://mail.rove.org.ru/pass.htm" target=_blank>忘记密码</A> </DIV>
- <DIV class="fi fi-btns"><BUTTON class="btn btn-login"
- onmouseover="this.className+=' btn-login-hover'"
- onmouseout="this.className='btn btn-login'" type=submit><SPAN>登
- 录</SPAN></BUTTON> </DIV></FORM></DIV></DIV></DIV>
- <SCRIPT type=text/javascript>
- function resize(){
- var minh = 700;
- document.getElementById("divPage").style.height = document.documentElement.offsetHeight < minh ? minh+"px" : "100%";
- }
- window.onresize = resize;
- window.onload = function(){
- resize();
-
- var fm = window.document.dform;
- var remUserName=cookie("ym_rem_user");
- if(remUserName){
- var user=remUserName.split("@",2)[0];
- var domain=remUserName.split("@",2)[1];
-
- fm.account_name.value=user;
-
- fm.rem.checked="checked";
-
-
- fm.password.focus();
- }
- }
-
-
-
- function doSubmit(){
- var fm = window.document.dform;
- var user = fm.account_name.value;
- var pass = fm.password.value;
- if( user == '' || user.length == 0 ||
- pass == '' || pass.length == 0 ){
- alert( "请输入用户名和密码" );
- return false;
- }
-
- var t = user.split("@");
- if( t.length >= 2 ){
- user = t[0];
- fm.account_name.value = t[0];
- if( t[1] != 'rove.org.ru' ){
- alert( "你输入的用户域名不匹配,请重新输入" );
- return false;
- }
- }
-
- //fm.action = fm.ssl.checked?"https://entry.ym.163.com/login/login":
- //"http://entry.ym.163.com/login/login";
- fm.action="https://entry.ym.163.com/login/login";
-
-
- var exp = new Date();
- var userAtDomain = user + "@rove.org.ru";
- //if(fm.rem.checked){
- exp.setTime(exp.getTime() + 86400 * 365 * 10);
- document.cookie="ym_rem_user="+userAtDomain+";domain=rove.org.ru;path=/;expires="+exp.toGMTString();
- //}else{
- //exp.setTime(exp.getTime()-1);
- //document.cookie="ym_rem_user=;domain=rove.org.ru;path=/;expires="+exp.toGMTString();
- //}
-
- return true;
- }
-
-
-
- cookie = function(key, value, options){
- if(typeof value=="undefined"){
- value=null;
- if(document.cookie && document.cookie!=''){
- var arr = document.cookie.split(";");
- for(var i=0;i<arr.length;i++){
- var c = arr[i].trim();
- if (c.substring(0, key.length + 1) == (key + '=')) {
- value = decodeURIComponent(c.substring(key.length + 1));
- break;
- }
- }
- }
- return value;
- }
- options = options || {};
- if(value===null){
- value="";
- options.expires=-1;
- }
- var expires="";
- if(options.expires && (typeof options.expire=="number" || options.expires.toUTCString)){
- var date;
- if(typeof options.expire=="number"){
- date = new Date();
- date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
- }else{
- date = options.expires;
- }
- expires = "; expires=" + date.toUTCString();
- }
- var path = options.path ? '; path=' + (options.path) : '';
- var domain = options.domain ? '; domain=' + (options.domain) : '';
- var secure = options.secure ? '; secure' : '';
- document.cookie = [key, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
- }
- String.prototype.trim = function() {
- return this.replace(/(^\s+)|(\s+$)/g, "");
- };
- </SCRIPT>
复制代码 |