找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5640|回复: 3

发现HG8245的一个隐藏按钮(隐藏页面)。。。。!!!

[复制链接]
发表于 2014-5-11 22:25:21 | 显示全部楼层 |阅读模式
本帖最后由 lph1216 于 2014-5-11 22:47 编辑
7 ~9 ^& ~7 V& d9 `8 b- x! c
0 X) E0 G  E* ^1 H固件版本:V1R006C00S122
5 }: P' t0 ~# y8 u$ q8 J
8 n! ^4 j& m' f( F6 _9 lIE输入192.168.1.1,就在这个登录页面,红色方框处
) @) E1 Y9 r: \/ M3 q! b
* F0 T# X0 w6 K# |
- g- k) g; J! {+ p8 }) Q为了工作,按http://jingyan.baidu.com/article/ad310e80b6c68f1848f49e7c.html 开启IE11的企业模式。。。闲得无聊进入光猫看看。。但我并没输入超级账号和密码登录,只是刷新了一下登录页面。。。瞬间。。。就在那刷新的半秒瞬间,在“确定”的左边闪现了“路由设置”这么一个按钮。。。的确是个按钮。。。。只出现在刷新的半秒,接着消失。。。  Z" k" W* p+ l) K. R  \- J

5 p- Y  @! ^# M4 b! U然后,我就在该页面右键》查看源。。。。在最后面几行。。。除了“确定”、“取消”、“设备注册”之外。。。还真有“路由设置”。。。。
3 `+ y, F0 ]3 g$ u8 y; @只是我不懂怎么把这个隐藏的按钮搞出来,进去看看有什么稀奇。。。。呵呵,呼唤高手8 \: ~" ]* J. F! S7 a
% Q& ]& y; R4 K( z, x* o7 @& H
以下是登录页面的源代码:注意看最后几行就行了% m, e% I" ]/ ~
<html>
" u/ K( B# |9 n9 a3 J<head>
6 a4 C- n- Y  G( C1 C; X' z<title></title>
/ E6 ~2 ]' _" }! }<meta http-equiv="Content-Type" content="text/html; charset=utf-8">& o/ I) Z5 @% w' ]. L7 |
<style type="text/css">( d2 x/ O4 G6 x0 H
#div_visite {8 t  n3 r0 u. O- c6 U8 M" U  p
margin-left: 50px;
! R: j8 D% x1 t& nmargin-top: 100px;
* ]5 V: G- f( ]* R* v$ Smargin-right: 50px;6 l" P; P# o: o7 {
margin-bottom: 100px;
: X5 \# C; F4 s. ~/ G3 P1 rfont-family: "宋体";
5 a" [, v7 R( x% v8 j' k" lfont-size: 12px;
, K5 v. y/ D8 @. O! F1 a2 Vcolor: #333333;: J" S8 \# a* ?, b, J
}
; @7 E3 T1 [, `' L
4 }1 X6 E6 ~% X- m$ h' j9 ^table {3 {2 I: `. `" B8 t, |2 b  }
font-family: "宋体";
% \4 y( s0 V5 {/ dfont-size: 15px;* g6 u$ B( N  _$ v7 @
}
4 u0 L$ i) ~& G+ b) b9 l</style>1 a. o& s% ~$ k' F, ?) I
<script language="JavaScript" src="js/md5.js?688846"></script>
- X# ]9 d; r( F# `<script language="JavaScript" type="text/javascript">0 Z& O3 l6 L9 Y' Y/ d7 i; [1 M5 f

' O7 d0 ], O/ W: t1 |function stResultInfo(domain,Result, Status,RegIsSuccedFlag)- V0 a8 r/ I5 d" O
{" t8 G) c$ W  h2 A$ n
  this.domain = domain;
8 x, l* s7 f5 O$ N$ v  this.Result = Result;. R1 D. a+ n9 W8 O) L* [5 v, s
  this.Status = Status;. S6 d( D* V3 U3 P! `% |  P. R6 d
  this.RegIsSuccedFlag = RegIsSuccedFlag;+ D2 L# ^: x' @+ O0 e8 ^+ U9 o  H5 j2 @
}
; \( G# E6 b# M7 f% F: V1 E8 T+ _0 g& ]
function GetRandCnt() { return 688846; }6 {' S$ s- t* s3 O
function MD5(str) { return hex_md5(str); }
) H+ ?, m+ e3 y! j
# h! I  `& g( e) m& @4 O! Z/ Fvar LoginTimes = 0;
; v& z0 m! T: Fvar ProductName = 'HG8245';
6 T  t- G, _# [var Var_DefaultLang = 'chinese';; a: ]! k: {: j' n& X
var Language = "chinese";
) o& ?6 ~8 h5 Q7 g! Q& x; Q# Y) Cdocument.title = ProductName;# ?% O3 X8 o  A8 O1 [

0 X+ U( u7 Z& u; X! E9 vvar stResultInfos = new Array(new stResultInfo("InternetGatewayDevice.X_HW_UserInfo","1","0","0"),null);: q4 U; C" T8 _* L& K1 m: f
var Infos = stResultInfos[0];: R, g, I. Q# q- ^6 p; \
/ i! D- |/ l: c+ X4 \( f6 l$ C
function stFJWebFlag(FJWebFlag)# `# c/ }8 \2 C. ?
{  o1 ?% @% K1 E' ^' x5 {
this.FJWebFlag = FJWebFlag;
  X3 t# |. ^" {' s% j1 o+ q}0 K2 f4 p) {. m$ t# Y9 r& }
/ R/ v! d- |' y: n2 X
var stFJWebFlags = new Array(new stFJWebFlag(0),null);;
( j! X( D% D; ~! F" zvar stFJWebFlagsinfo = stFJWebFlags[0];
* v8 }1 t/ f, l0 V) y( e% C/ w3 x% V) M
var manageFlag = 0;
- T( Z; j! t" X9 ufunction stManageFlag(ManageFlag) {
( l9 ?* K' z$ XmanageFlag = ManageFlag;% x$ N/ H, }3 t* f
}4 z2 V* R& _/ c# R2 y
var ManageMode = new Array(new stManageFlag(0),null);
; |% T* d, l1 t( U& ^/ x) Yvar CfgMode ='SCCT';
7 E# r* h* i0 z! l6 m, @
# R. q. @$ i+ @var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
7 Q3 b, e' D, Xvar base64DecodeChars = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,- H* `+ c3 ?; ?) ?( {" f* U& Q
        -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
6 p! V. d6 J+ t  ^: f        16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1,
5 a& h, ~8 E' X/ @5 q! k        -1, -1, -1, -1);, n6 l7 H* \5 y: |& V. x5 [

8 L- s) H, B3 n+ K3 X% |3 Wfunction base64encode(str) {+ _; G& U, W7 l; s4 s( L. q6 y
    var out, i, len;
6 U* A& Q- v) V/ m9 U" r5 h' a    var c1, c2, c3;* [, ?/ J. R" h6 X

6 r) M- x) e+ a6 w3 J% R. d$ s( o    len = str.length;. h. M6 f! v% q( U* y
    i = 0;
! e4 b2 b; a/ V  k; l# L    out = "";* j0 v8 ~/ V9 ~7 X+ E( ?* O
    while (i < len) {- o. F8 q/ X  _% w. p  X' |
        c1 = str.charCodeAt(i++) & 0xff;
3 c; D' a# a4 }! M: l3 g2 Q; R        if (i == len) {
9 q6 _% {/ `; L! l3 W. A) S            out += base64EncodeChars.charAt(c1 >> 2);
0 w! G' {% N! }2 y            out += base64EncodeChars.charAt((c1 & 0x3) << 4);
+ Q+ C. `4 V5 K& D8 V            out += "==";, a% h$ J) |6 V: y2 N2 L$ z8 D/ O
            break;: h- u* P0 g0 N# r7 Q# ^
        }# Y1 U& O5 H( r% j- r
        c2 = str.charCodeAt(i++);
5 p8 Z) d! }( s9 H# O& h        if (i == len) {! u' z! H1 N0 ?8 z5 z
            out += base64EncodeChars.charAt(c1 >> 2);
- H7 F' C' w4 U! I  b            out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));2 P& p( `, M+ f, R
            out += base64EncodeChars.charAt((c2 & 0xF) << 2);8 A1 ?- ~3 w) x( d
            out += "=";/ [2 I* H7 j. |( M+ h8 G
            break;
' ?  Q9 d6 S! ?) Q, O* |, }: I        }% r# M0 S; V1 o) ]% Z$ F; a, T
        c3 = str.charCodeAt(i++);9 |' B$ B5 u' m" F. n( Q8 ]
        out += base64EncodeChars.charAt(c1 >> 2);2 P- @# [$ Q, n/ v' _; a! i
        out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));" F9 T! \4 ?. b  m% e8 ~
        out += base64EncodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >> 6));
4 I8 x! o5 J7 y        out += base64EncodeChars.charAt(c3 & 0x3F);- D; p, Q, B- q: x& v- O
    }" Q+ J9 T) J( R
    return out;
: N' @  a0 `& G9 z- v* c, B4 Q}
0 W& M6 N- F$ c7 {9 f8 j
2 d! F: h4 _* M/ X$ l, kfunction isValidAscii(val)
% R+ B! M8 x% O3 P0 w{
0 L) u: G1 k/ }$ _0 U$ ^$ f9 R) S    for ( var i = 0 ; i < val.length ; i++ )
0 M4 e6 ]# h, x2 D1 F1 o    {
" g1 p6 n, S* T# O' m2 A. H" f        var ch = val.charAt(i);
8 b1 R8 ^+ X0 V2 E+ V- ^        if ( ch < ' ' || ch > '~' ). c1 [3 y5 t1 V6 g8 g7 k
        {
6 ]6 Y- |. m' R) u' t4 F            return false;6 q+ j( z+ B& E7 M1 `
        }9 Y* e7 J$ v0 I
    }# m' d; S; K& x* E
    return true;
( ~0 [( N+ y1 [0 E) N" ^}% @' a2 e  j& q+ \. v; s/ |9 G
function base64decode(str) {
7 |) ~# z0 D$ ?9 Z3 U7 H    var c1, c2, c3, c4;
; q% [( a- B, e- e  d( V7 V' E    var i, len, out;
5 k. `3 Y5 |- F
4 w0 h/ f+ A( `; A$ p8 ]7 w    len = str.length;
* U& _$ s6 m" h/ K; }9 a8 q+ I    i = 0;8 a: z8 u# A( ?
    out = "";8 P5 {: z  X4 t5 j
    while (i < len) {
2 {4 g" `1 D( c5 t/ u        /* c1 */6 l$ k. N) `0 \- @
        do {+ f' ^  i- t4 p3 \* \! Q
            c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
8 }+ e2 V1 n) q7 ]        } while (i < len && c1 == -1);2 U+ |) L$ s( E2 P0 a$ O$ a+ ?6 n
        if (c1 == -1)
( U0 O" E( s* M$ W$ ^- v            break;
: ~: @8 y( F9 U! U
% V: L, O( r5 L+ p7 M" N( t        /* c2 */0 ]: d5 [6 Y6 _  J: x' I
        do {- F# C% q% h4 V7 s- _# @5 \
            c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];$ E" C" w! \8 Q- H" ^6 S+ \5 ^' M
        } while (i < len && c2 == -1);9 k( _% X2 @$ A
        if (c2 == -1)
* w6 J' f' E3 O  L: f            break;$ B) A( y$ Y5 i, O) {$ A

1 v/ N; G/ U% V' E2 g* y, Y# ?1 m        out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));3 `- W; D) P  F$ |5 L: d$ P- |) S
7 R+ Y7 u0 J% g( w4 j
        /* c3 */
! A6 E7 G1 v+ w, E/ w        do {$ M9 `) o; H. v0 R' S5 Q
            c3 = str.charCodeAt(i++) & 0xff;
: a- {/ `- f4 L/ Q) p/ J            if (c3 == 61)
& t* l6 c4 P( c) a' n3 f                return out;1 |  ^  N1 X" p% k# [3 X* p
            c3 = base64DecodeChars[c3];; v: }" c7 f( x/ B1 _
        } while (i < len && c3 == -1);) M/ V5 i8 g4 m  o! Z- k% x7 L/ G
        if (c3 == -1)
" ]* O9 F# A  n            break;
1 Y8 G; }% ?' I8 H( i& C, R( ?& E: |+ `: |( n9 ?
        out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));! d; m! N6 ]; t6 Y0 h' Q
; W" D( K! ]7 |& B. @( Q
        /* c4 */
( g2 l4 G! W" n7 ?; N        do {% z. q/ z! I+ m1 Q: _; [
            c4 = str.charCodeAt(i++) & 0xff;+ a% Q2 `0 V3 s. `2 `
            if (c4 == 61)8 Q3 b$ A" m7 |1 A) B
                return out;
/ t- _1 Q" L& N! W, a. v  Y: C- d5 Q            c4 = base64DecodeChars[c4];
9 P0 N6 i+ m9 @  u2 |. G) r3 N& L, n! j        } while (i < len && c4 == -1);7 X. v" C$ q& ]4 }3 \; j  H$ k( I
        if (c4 == -1)
) x. X- P/ _' ^# W1 V            break;+ f  p( I: r) n6 [) a
        out += String.fromCharCode(((c3 & 0x03) << 6) | c4);
1 e2 ^0 D! C. D  g: v  [4 i- q0 f    }
1 l0 l  _# A9 f    return out;
0 M- l+ S! Z' j0 |+ D}  {+ |. B% F& F

; }- i4 A/ a) D; Zfunction SubmitForm() {1 q2 \. X% G2 m  L( X
    var Username = document.getElementById('txt_Username');2 b- R7 g/ i* {/ t$ |
    var Password = document.getElementById('txt_Password');7 n/ B! Y( K3 K/ @) q0 q  {
var appName = navigator.appName;
1 n# v+ O3 I5 i2 M; |4 ]var version = navigator.appVersion;5 ~  B: P8 y+ O- h
" i% W$ A8 o# G4 W$ H$ x
if (appName == "Microsoft Internet Explorer")& l; T" O. P0 b" y
{/ J# E( Z9 L/ R2 q  c; t
var versionNumber = version.split(" ")[3];
; X3 G& J4 R( Z: w! r/ uif (parseInt(versionNumber.split(";")[0]) < 6)" A+ V3 K+ Q" i6 d2 v
{
4 P, r1 v" X: ], Calert("不支持IE6.0以下版本。");
3 X8 X4 T7 H+ B% x( m4 R+ C- z2 @return;
% m0 p' ?6 j' o0 w( I; N; v/ U}
% l+ n4 W. U# W! I. g/ B/ ^% b}
* j; \7 w  m% i  D, K+ c2 }$ l' D; d, [6 J# _
    if (Username.value == "") {+ N0 t$ s6 Z3 ]% Z1 F6 @( L
        alert("用户名不能为空。");, l% p5 b" T) c3 e3 `
        Username.focus();; C; n* s9 y& Q5 I$ P
        return false;
: \! U% \1 O5 f& _- B3 H3 N. N- b    }, S, ?- Z3 D  t! `

; ]  s9 j( F: dif (!isValidAscii(Username.value))
  U+ G* \3 r$ H{. Y2 B5 M+ S3 |
alert("用户名包含非法字符.");
  k- }; x  U8 r" F# bUsername.focus();
; V; o! z0 o# z; |' zreturn false;
8 @8 x7 x7 q: a0 j}
/ C. X# N1 _8 c; R7 ^( p' Z5 W4 M$ @$ t& u* `/ K( b' u
    if (Password.value == "") {
+ C4 Y4 x* Z4 j3 b4 {# x        alert("密码不能为空。");5 e% F; G. Q  Q& e7 e
        Password.focus();7 W# w. k5 ^3 v9 M0 w6 {
        return false;
* E. i; O. Q% c+ h# D# B3 {% ]" X0 M    }' H# |; Q) e1 O: P# w/ r
if (!isValidAscii(Password.value))
, }& G4 {1 {2 C! N{& w8 W2 g2 w" A: a  e& e
alert("密码包含非法字符。");
& e9 C0 P6 f" TPassword.focus();
1 {9 Y- P  A& z2 e3 z! greturn false;
5 l  l; h3 a2 _}
6 @$ l7 S" P2 E& Y+ @! m. `* J9 h* P# i
    var cnt = GetRandCnt();
9 K$ H, Y5 F4 o4 {8 Lvar cookie2 = "Cookie=" + "tid=" + MD5("" + cnt) + MD5(Username.value + cnt ) + MD5(MD5(Password.value) + cnt) + ":" + "Language:" + Language + ":SubmitType=Login" + ":" +"id=-1;path=/";+ O$ V! x2 G( v" T: d

. W% G+ d5 o$ Y8 |0 {# ~/ o7 ?3 R    document.cookie = cookie2;
3 n& x" I/ M3 Y. E    Username.disabled = true;
5 [, r& N% f' `" V& Q) m& v    Password.disabled = true;
: W2 Q3 n" ~! d3 ?4 _
8 \4 w% @( G* \& V* X( S9 h    location.replace('/login.cgi');3 U. b- j" k, I" o* _6 R' _
    return true;
5 }+ ]" k2 U7 y1 G9 I1 m$ e+ Z}* T; y( k* N* q1 r5 I

3 [: [8 I* N  U, }1 @function SubmitRouteSet() {8 Y% {. L3 r  K# T! j* M
    var Username = document.getElementById('txt_Username');- i) C$ A# d+ D* i
    var Password = document.getElementById('txt_Password');* X5 ~+ e& _5 k& i0 E
var appName = navigator.appName;0 J1 `; \* y& `6 P. ]2 e
var version = navigator.appVersion;# ~- ]9 x- X7 ?# P4 I
9 P% I: G. x& Z
if (appName == "Microsoft Internet Explorer")5 a/ f9 ]. ^% e/ G
{
9 R0 y3 j, Y- gvar versionNumber = version.split(" ")[3];
' D: Y3 g9 ?0 n# I' W( t7 @if (parseInt(versionNumber.split(";")[0]) < 6)9 Z3 q' m) B  l' Q6 ^  t9 P
{4 K" P( T* x$ s
alert("不支持IE6.0以下版本。");. z' I$ X% A/ V* V( q% @
return;7 k( n) \/ E, }7 ?! c* ?
}. F3 R9 ^1 p$ }: q3 N  \
}
: }( }+ m! l! D" r
) r: I( ~( K& \' S; k2 L    if (Username.value == "") {, z) K- Z( q/ S. n( e, }3 p' u
        alert("用户名不能为空。");
8 f' W5 M! |: C; d) s: l% c        Username.focus();
2 Q6 I. H4 F1 r; q' i5 |2 _        return false;3 v  B8 x# r5 L5 I5 K
    }& _  f, ]* Y' s* G: D
; Q5 X) p# ~% P6 V$ [  |
if (!isValidAscii(Username.value))% Q5 E& n& \& S
{5 Y: V# \- }% ?  c7 L) v) s" R
alert("用户名包含非法字符.");4 H7 }. P2 m, D/ P
Username.focus();9 w9 E0 k; U2 P/ H* k
return false;
# W+ m' t$ S  i# {6 g}
. T$ s% a; ?7 ~) ^+ Z4 |
4 i8 p2 k5 |" w    if (Password.value == "") {1 }: ^$ T: M' B( B- P" j6 q6 M% y
        alert("密码不能为空。");" x  _' o; V% m1 J( G: r
        Password.focus();' g, _, c% U" _, U1 j  A6 C3 \
        return false;
1 Z$ [9 d- {/ Y; k: @4 H: o* u2 l    }
# q5 |5 O# z" |6 k& Z8 D. Zif (!isValidAscii(Password.value))$ {9 {. ?( E. P! P$ _
{  U9 ^1 `) b$ |; F, R
alert("密码包含非法字符。");
* k8 D( N' ?  i; v! xPassword.focus();6 D2 M: r6 [. d2 ~
return false;
) H1 x2 G9 I2 ^( i# g# A6 O+ G}  C5 C3 h% k5 B/ l1 l: ^

% Z8 q+ p1 q! }    var cnt = GetRandCnt();' e  t) P8 g& Z" g: K+ c  d
var cookie2 = "Cookie=" + "tid=" + MD5("" + cnt) + MD5(Username.value + cnt ) + MD5(MD5(Password.value) + cnt) + ":" + "Language:" + Language + ":SubmitType=SetRoute"+":" +"id=-1;path=/";
3 \) u2 }* S  C: z& |3 v. w
( ?' L9 a; K3 Y: T    document.cookie = cookie2;
9 \; M& t- H, y  b& c! A    Username.disabled = true;: G: u9 t7 `4 E
    Password.disabled = true;
) f8 y# }) Z+ k, x
- e+ Q! ~0 g' h7 |1 r! K/ r    location.replace('/login.cgi');
* _8 i. l" @5 ~% x/ b& M# q    return true;
5 u: L( T+ j( h6 i}$ J, p# Y/ X5 n1 r( K* D; v

$ o" \# ^% ?: b7 D* p; |function LoadFrame() {
6 V* E2 W  Z) D' w* E7 u( I4 @' {" F    document.getElementById('txt_Username').focus();% Z! o% E* A" E; t9 I
    if ((LoginTimes != null) && (LoginTimes != '') && (LoginTimes > 0)) {
% J5 Z0 u, r& V4 }        // setDisplay('loginfail', 1);
7 e4 U" M& Q) i+ J6 w        document.getElementById('loginfail').style.display = '';2 j( I1 H! o- H5 _6 }1 d; ?. j) u
    }
! N( l  S4 l& Q+ o' i3 C0 Y
  {- L3 E8 r. E/ T7 ~, Lif (manageFlag == 1)$ Y  T) T5 s8 g2 u$ W
{& k& M- v. l3 r7 C7 r
document.getElementById('regdevice').style.display = 'none';6 ~* j: N* ~6 S0 Q6 I' ?
}- P4 l1 q% D5 G  {

# W8 h0 R/ ^, Y1 n+ z/ k" I+ G& Uif (('HAINCT' != CfgMode.toUpperCase()) && ('HAINGCT' != CfgMode.toUpperCase()))! [% e9 R5 j6 E
{" t1 g$ O. v; [6 m
document.getElementById('routeSet').style.display = 'none';
' F0 D% M/ A' `, @0 l}! V9 P/ C  \$ R0 s& F- J

, t7 T4 {7 E; C: P1 ?1 v7 H    init();* O, ?/ }( V; x: F, C: q9 G
}
7 |; l; `; f) [( q" f9 O. {7 Ofunction init() {
; Z, e) @- H: t( W    if (document.addEventListener) {
4 `8 T$ Y8 P4 X- f        document.addEventListener("keypress", onHandleKeyDown, false);0 ^& _9 g( m: w0 ]/ X$ ^
    } else {5 Z+ h- |- T. n' L4 t( ^
        document.onkeypress = onHandleKeyDown;/ z0 p: q1 n  W8 P) e
    }
  K% r; @8 k& y6 D: R& [& O+ C6 n}
5 h+ P0 u8 T) a, l& E' Gfunction onHandleKeyDown(event) {
, |/ B  r1 p- X; m: g2 H! L" B    var e = event || window.event;
2 D( S: J0 G; p/ V. Q6 W2 Y    var code = e.charCode || e.keyCode;1 W: U4 K5 p: `

- [( G$ k9 f% _    if (code == 13) {; l. k5 {* ]5 \' O: [% J# H  K5 V
        SubmitForm();
1 x  O0 C" w* ]$ q4 w) D5 Z    }
4 }* @4 w$ F7 x& h/ W0 `! M}
' }2 p* E+ B3 ]* d  }/ `: Q! u
; T5 J+ l+ `/ D: sfunction onChangeLanguage(language) {
1 U: j& C" |7 v+ ]    Language = language;( L# W6 w) g4 D6 P0 W
    if (language == "chinese") {; @: p7 c" `% y
        document.getElementById('Chinese').style.color = 'red';
5 O& R3 {! Z  |5 [        document.getElementById('English').style.color = 'black';
  |( Y# Q7 Z, A    } else {5 _( _( f6 G0 F5 b; y0 {6 B+ P
        document.getElementById('Chinese').style.color = 'black';
3 u% o. k, r# A        document.getElementById('English').style.color = 'red';& X( E/ A+ i( [, q. L! F- c; o# J
    }
5 t" ?2 y+ R4 f! @) x6 I+ Z7 F}3 B+ U+ V" Q% c1 ~: k0 h$ q) |

0 L' B" Q/ z5 Ifunction canceltext()
/ Q  x$ B0 W/ e2 I+ U0 l3 \. B{
4 |/ A# j& L' o  V( S( E    document.getElementById('txt_Username').value = "";
2 @4 b4 K6 i$ c8 w5 z% T0 d8 M1 C6 b    document.getElementById('txt_Password').value = "";3 r0 K! B0 K7 [/ U! c9 z
}! k; H2 z' `, m+ m

" I: q# L  m/ r& U- Yfunction JumpToReg()
5 r- o* ]! K6 x{
* e9 e- f# P1 A! N! Z5 o  if((1 == stFJWebFlagsinfo.FJWebFlag) && (parseInt(Infos.RegIsSuccedFlag) == 1))  
6 s% v: x5 x# h. b- s4 w  {
: Z. Z$ N3 M& ~2 p" U; _( B    window.location="loidgregsuccess.asp";
# E1 b& Q5 h( T! M6 g  E& r( w  }8 f$ _4 J3 h9 ?7 {: I1 m) j
  else; [2 U; L' E0 C% F: b
  {$ h  i* T* t" }  {5 x
     window.location="loidreg.asp";& E7 ]7 ?% x- v, w
  }
' g3 q* p4 j( ?8 S}
/ `  u3 U9 p4 g  S/ f) F+ O5 n# G$ f* h2 t! m
</script>1 Z! J9 E* ^$ H+ u0 N0 B9 W
</head>
  K; }% _" }* O<body># K$ s/ U: M0 Z( j5 g1 V9 R4 ]5 m
<div id="div_visite">
) x7 a7 b. ~" W3 U" B<table align="center" cellpadding="0" cellspacing="0" bordercolor="#E7E7E7" bgcolor="#E7E7E7" border="0" style="position:relative;">
' W9 E# I8 j' G; ]- R0 N    <tr>
) v( q) D' ?( _        <td height="10" colspan="3" align="center" bgcolor="#FFFFFF"><label>, Y7 Y3 j8 U3 _& p' Z. h& U1 t  e# J: D
        <script language="javascript">
1 M  v0 P- m! `; l! B  if ( 'CMCC' == CfgMode.toUpperCase())
8 a8 G* ]+ A5 z" h% A7 }$ ^+ E* V  {
3 X9 X! f! {. _7 d' V+ L' T  document.write('<img src="images/logo_cmcc.jpg" width="337" height="117" />');4 b# H, O" u/ k: E) @
  }) H5 n8 Y8 x! x, x6 y) C, _
  else& A  B! E" P3 T' c
  {
9 y: `+ O2 C# L  document.write('<img src="images/logo.jpg" width="337" height="117" />');2 @1 X3 o& D; h; s' n2 g0 K2 S
  }  ' h! A& G- Z* ]9 a- W
        </script>
  X" z! D3 W9 v" y/ ?) `        </label></td>4 D1 ]+ e; J+ O6 `8 j5 Z0 c6 M
    </tr>* c8 ?9 t' i  _- b6 m/ L
    <tr>+ P2 V3 e3 P5 I: F* s, K) ]: @1 L
        <td width="35%" height="50" align="right" >帐号:</td>
" z7 k( a9 s' s" W1 c* N! D0 O        <td width="5%"> </td>
+ K. r' J6 \/ e2 Z        <td><label>
+ {( N3 i6 i. A- R  B- p1 |# O            <input name="txt_Username" type="text" id="txt_Username" style="width:140px; font-family:Arial" maxlength="31"/>/ a/ w7 m5 ~* i2 l( X1 Y
        </label></td>
* o- X9 d) h" a: ?# s    </tr>/ D1 I6 N: O# y/ |& b
    <tr>
7 S5 U; \7 i" {! ]        <td height="30" align="right">密码:</td>
/ M% ]# G  c7 Q6 b        <td> </td>
9 `% C! [. @- N4 E/ }1 \1 N        <td><input name="txt_Password" type="password" id="txt_Password" style="width:140px; font-family:Arial" maxlength="127"/></td>
' W; E" y( R6 q- A0 {) D; G8 I    </tr>
( ~( D$ _5 J8 h, Q+ ^$ r! e+ U/ K! f$ D1 ?- V7 S; O) W7 H
<tr>
1 f6 s" V3 d0 J4 T: W% @. ^( h        <td></td>
+ e. T5 v1 R* d# z0 I+ U        <td> </td>$ O% r2 d0 x7 I1 u) W9 N# ]% k. a
        <td style="color:#FF0000">
% L1 e' R) a) T+ `<div id="loginfail" style="display:none;">! x3 a$ E) d$ r
<script language="javascript">  z( g0 E( L: [( j% i
if (LoginTimes > 0 && LoginTimes < 3)/ d. w& D% H+ k
    {
/ P) |2 ^4 f$ l: E$ F: P. m5 ~    var str = '您已经' +  LoginTimes + '次用户名或密码输入错误!';
+ j8 W& K" ]( q- m4 E, O3 E* J    document.write(str);. s- e) o" b4 P: q9 n
}. p5 y6 Y4 x' f7 \8 o9 U  i, Z
$ ]/ @9 g3 c  h0 h. @' V. {
if (LoginTimes >= 3)
8 s' ]4 Q: u  u( a3 f9 \    {
' [2 o) Q8 T4 z- H    document.write('您已经连续三次登录失败,请1分钟后再登录!');; x% X+ `# G) Z8 o
    }. n3 C; Z* E# N* V3 m5 G: i

- T4 x5 H9 C! {# A</script>
7 A. i! U/ [( {1 d</div>: {* W  @! d5 i( Q7 h) y! `
</td>  t, \( n* q- U9 r5 L
    </tr>! p* p$ {- q6 Q6 t" R6 ?

" {# J6 ]+ B) e7 R  <tr>0 @5 B: f/ U( Y# o, b5 g5 D
        <td>
7 `# f. s4 V. w  {% p$ q9 Q<div align="right">8 C, r, r/ S. y$ E+ P. r! k
<input type="button"  id="routeSet" name="routeSet" value="路由设置"/>2 T3 {: l$ G& z* `
</div>! C3 B9 T& Y1 y0 `4 ~
</td>
$ v+ S. g' p8 m        <td></td>1 v* |8 v( _% {+ _9 P, c
        <td>
; b) |. B4 A+ T) N. p5 A<input type="button"  id="btnSubmit" name="btnSubmit" value="确定" onclick="SubmitForm();"/>& _" o' t- g0 r6 B6 u
        <input type="reset" name="Submit2" value="取消"/>
5 s5 V( m& C+ J, A<input type="button" name="regdevice" id="regdevice" value="设备注册" onclick="JumpToReg();"/>" u2 Q) _7 m3 ^2 A3 Q* z3 k9 ~5 Y5 Q" u
</td>
) }- J4 S" c: e# I. t</tr>
7 X( t; B3 \0 j' t7 T; t</table>, w: q! s, Z" X$ S% R* |3 @
</div>
  V4 l$ J2 J( o3 `<script language="JavaScript" type="text/javascript">
; H- s5 H2 V: z9 m3 [</script>
9 [6 x9 l* a5 s: O8 {</body>: a1 y, A" z" g) K  c
</html>/ `2 s2 x* c0 u, z  k
! J& @2 O# X+ }

( m# P" }& I9 U+ y! W
  }; Z2 v9 G2 J+ o

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2014-5-12 12:03:37 | 显示全部楼层
什么意思 没有明白?
发表于 2014-5-12 13:24:19 | 显示全部楼层
做什么用的?
发表于 2014-5-12 13:24:36 来自手机 | 显示全部楼层
ie的 F11看看能不能调
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-5-11 00:32 , Processed in 0.032127 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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