ericluu 发表于 2012-9-7 09:41
5 k1 |1 g6 ]0 v; N把HTML代码贴上来看看。DOM元素是可以随意隐藏的。看看代码就知道了。 8 |4 G5 ^2 {3 @, M1 s
根据你的提示,我到朋友那进入他的光猫,复制了他的INPUT代码,并删除后面跟着的disabled='true',加进我的里面,点应用,成功搞定。" a; l, Z, _; a* Q( t! Z
原始代码:- <p><body onLoad='frmLoad()'>
* i* Q4 C# Y* Z, V2 d7 t. {( x8 J - <blockquote>3 a6 \- P# ^$ a1 w8 G
- <form>$ g; X1 \# F6 F' b7 f `: {" d$ b) [
- <b>TR-069客户-配置, G% P4 [+ a% O
- : n$ w ?+ `! u8 U7 h) j) d1 u
- </b>! n+ A8 z1 I+ K. Y5 V' L& H
- , x7 a. d. y8 c3 a
- ! Q0 ?+ \1 o; w& A( K, Z
- WAN管理协议(TR-069)允许自动配置服务器(ACS)进行自动配置、供应、汇集和诊断到这个设备。
. u* J( @0 u. z% L5 o# `; | - 6 p9 a6 n7 C) \5 i% X
$ c3 k; @/ ]4 ?4 S, ?2 b6 G- , S/ u( J7 @" \+ w0 @
- 1 G# C4 V; `8 B9 W" u2 k C
- 选择期望值,并且点击“申请”配置TR-069客户选项。5 D: |' Z- A5 {. c- I5 m- f2 w
# T; W& M* F2 m2 H/ F- / D( n$ k1 X. O d4 \) \
: q/ b0 q: a3 b7 |4 h- ]' Z) T0 u- <table border="0" cellpadding="0" cellspacing="0">! O; l7 B* J. R
- <tr>
) P7 {4 B' Y% U - <td width="80">通知</td>) d* ^: R- m0 x: K
- <td><input name='inform' type='radio' disabled='true'>
. P. ~3 }8 m Z5 }) H - 禁用</td>2 C, @9 {3 \5 V1 ~5 U8 T
- <td><input name='inform' type='radio' disabled='true'>2 ?. m( k( n* |( n
- 启用</td> B( H: {( |6 D2 a* t1 T
- </tr>
* M* g% y, ]2 t0 b" P# G - </table>8 P' o2 x# V! ^' f' Q
- ) B* X! ^; b8 _8 q
- " ~1 {. D# C' G; y* g* U8 _
- <table border="0" cellpadding="0" cellspacing="0">
6 _( ~2 Z' K- R7 {1 P; q - <tr>% M" V2 t2 G. w- b; h
- <td width="200">安全链接:</td>) \7 K8 J% @) F4 m9 g# Z
- <td><input class="buttonX" type='button' name='certificate' onclick='location.href="certca.cmd?action=view"' value='证书导入' disabled='true'></td>/ d. M2 C2 o2 `6 D! K0 v( E
- </tr>
4 i* v* r5 {( Y# } t7 M - <tr>
4 E. A1 _: ?6 [4 b2 D% K - <td width="200">通知间隔时间:</td>
8 S. G2 N: u) S" Z4 ?) M - <td><input type='text' name='informInterval' size="20" maxlength="256" disabled='true'></td>: z9 S# ]* ]1 {# c: u
- </tr>
# y/ S6 S/ }, |/ C5 I - <tr>
. I+ M( K, Q) i - <td>ACS <a href="</td">URL:</td</a>>: @( D! o0 z4 X- t. p5 c
- <td><input type='text' name='acsURL' size="20" maxlength="256" disabled='true'></td>
# z' k( P) m7 V: S - </tr>
% w9 {/ t- p, W. u5 R$ P+ m - <tr>
x) D! b6 Z+ b8 c: Z n4 K! M/ M - <td>ACS 用户名:</td>
1 v2 H# L% e5 v# z1 }$ V: T - <td><input type='text' name='acsUser' size="20" maxlength="256" disabled='true' ></td>
, R1 I! E4 b* d6 T( {( o2 b - </tr>
+ ~- n9 G4 Y) k) X: ] - <tr>: n) Y1 @* ^9 X; P" u
- <td>ACS 密码:</td>
8 X- a* F+ q, I# r& H - <td><input type='password' name='acsPwd' size="20" maxlength="256" disabled='true'></td>
( F3 A- l& T' ?) T$ g! G - </tr>
! v" w/ l9 q% W4 T: }2 Q, X - </table>
( q9 O _& ?6 a2 }. H -
; ` f6 i+ w4 z q* b- z - 4 z `' A. U& G4 l6 K: E& m% v4 r
- <table border="0" cellpadding="0" cellspacing="0">
5 ]' I( ]: @5 i- n. K) Q2 y/ ? - <tr>
2 E! y: M9 K% H2 {, D - <td><input type="checkbox" name="connReqAuth" onClick="connAuthChange()" disabled='true'> 连接请求用户认证:</td>
* I# c; |# ]. a& x - </tr>' U. r% F) P) g) F* |( W" F
- </table>; X/ `+ B7 |4 V. H4 K4 [9 b
-
! d m0 A. Q( ^' C4 i. c" E: h" x( m& K - " @ _$ s' V9 v/ m, x M
- <div id="divConnAuth">
2 R0 c, e8 p0 Z' T d - <table border="0" cellpadding="0" cellspacing="0">% _* X9 w- J _- r* a' _5 T% T. S1 g
- <tr>/ Y' W# \2 c/ R, _0 U" ]6 z, O
- <td width="200">连接请求用户名:</td>9 b; C0 ?4 r# d% _% C) N
- <td><input type='text' name='connReqUser' size="20" maxlength="256" disabled='true'></td>
; \5 g- y6 |: R; `+ ^0 r, |/ K; m - </tr>0 `) `# P% u( ~- t+ o; N) z( N
- <tr>* x" K! H. |( n$ x* N. ]; ]" v+ u
- <td>连接请求密码:</td>; ^9 N2 D( S _! e* O
- <td><input type='password' name='connReqPwd' size="20" maxlength="256" disabled='true'></td>
0 F6 k3 w' K* N9 ~& [3 u - </tr>
/ L. Q% I/ r" F. w - </table> I. I/ ]& _: y7 z6 B% @% v
- </div>/ Q4 f7 [/ @2 N- q) O: |3 F/ n9 N. C
- & ^2 e; H$ a# R1 J0 T% _) K
- ) T% Y c0 V0 H2 D4 M* h: m
- <div id="divCTMDW">
8 R* j1 F6 G4 ^1 R# e - <table border="0" cellpadding="0" cellspacing="0">
# K7 ^& b% Q$ m- h' m - <tr>
8 n8 V* s" }7 \/ r - <td width="200">中国电信中间件</td> ; P- U, b/ U# ~+ ^
- <td><input name='ctMDW' type='radio' disabled='true'>启用中间件(含TR069功能)
9 J1 i0 c5 {8 q# ? - <input name='ctMDW' type='radio' disabled='true'>关闭中间件
$ ~+ m! g2 B3 z0 E+ D - <input name='ctMDW' type='radio' disabled='true'>启用中间件(不含TR069功能)</td>' P, r' G/ m$ e% u1 M& O) T6 P
- </tr>
3 L% n: W" e9 c6 i) A' P" u' U - <tr>' n# u5 V8 M" N; b: B% f& T8 e
- <td width="200">中间件服务器地址:</td>
& B# p, }& v9 \ - <td><input type='text' name='mwsURLIP' size="20" maxlength="256" disabled='true'></td>; R ?- v+ R! E+ H0 K
- </tr>$ d+ e& [, `& n* h7 B- z
- <tr>
, V6 o9 N A# t9 ^/ H, S, l - <td width="200">中间件服务器端口:</td>( P, z1 H* j) \
- <td><input type='text' name='mwsURLPort' size="20" maxlength="256" disabled='true'></td>& {0 ~2 Q0 n8 W
- </tr>
% d; ~! j! p& l$ Y - </table>
' A5 }$ ?, ?; G1 t - </div>( H/ A- Q) d7 T+ _; N% e0 |% i
- $ v3 u2 m6 X+ K! G1 d0 D& I
- <p align="center">0 d2 ]% H# [( J% v7 E
- <input class="buttonX" type='button' name='saveapp' onClick='btnApply()' value='保存/应用' disabled='true'>
; C! `) n" K0 J E$ ?! D - </P>" g' y5 \1 _1 p- y$ t9 }
- </form>
% @- T- h+ ^! x - </blockquote></p>
复制代码 这修改后的- <body onLoad='frmLoad()'>
/ x* @; m/ P' C) P1 J - <blockquote>
. S) L7 n _$ ^- i9 B - <form>
9 o0 a, D' _7 b - <b>TR-069客户-配置
3 f) v' X* D" v3 b5 c
) L. C! N5 ^, G$ u; t. Y0 c. [- </b>, f& p# M! N% M4 [! p
- . X4 _% k' w9 e( i3 C3 C
- 8 s$ [5 _/ [) P5 T; z1 @7 k. W
- WAN管理协议(TR-069)允许自动配置服务器(ACS)进行自动配置、供应、汇集和诊断到这个设备。( k1 c W& e7 e( G! C
-
% b, j' `, l2 ^: _0 Y& L& v - ! c5 i7 e2 ]1 o m8 d; U6 J! _
- ' P, t0 S# z5 Q+ E" ~" h7 ~2 P
- & t% r- }1 v; T) r0 P9 J) j4 H
- 选择期望值,并且点击“申请”配置TR-069客户选项。
: ?+ i) N) W' [+ a9 J% l
# ^% P; C: T6 v9 t% M7 n) }9 a- 9 F. t( ~( v/ v& W4 Q$ Z$ |6 q5 ~
- 9 E# y. H% Y) Y# s2 G( @5 N
- <table border="0" cellpadding="0" cellspacing="0">
; S! s% N' B1 m% j - <tr>
3 D; C% |+ |; K, | - <td width="80">通知</td>
0 X) l5 D% a5 |. a6 Y; S - <td><input name='inform' type='radio' '>; o1 g& e7 E" V
- 禁用</td>
/ h$ ]& G' R7 d - <td><input name='inform' type='radio' '>4 I; ]( U7 o( j4 l& l( E, `9 D: P" z
- 启用</td>
W- F' f* R; i5 L8 o - </tr>7 W7 y, H A0 a! A* I4 ~
- </table># v) c9 Z! ^! J( ^; @2 f
-
( Y$ V/ O' k# {( M; a$ ]9 M5 ?
g1 {& m2 g; o) ?& R' E7 \% E" _- <table border="0" cellpadding="0" cellspacing="0">; _& ~7 X, L6 J3 G
- <tr>
' H7 D' F/ c5 n5 \+ [# I - <td width="200">安全链接:</td>7 q4 b: e7 k$ m' w' n# a
- <td><input class="buttonX" type='button' name='certificate' onclick='location.href="certca.cmd?action=view"' value='证书导入' '></td>! V2 A1 I$ m' z2 f, A
- </tr>& d: z3 E- Z0 t4 [
- <tr>
) x$ e R' P. `6 |9 J# ~! v$ b - <td width="200">通知间隔时间:</td>
6 [$ |1 V' j; w" a2 U: @ - <td><input type='text' name='informInterval' size="20" maxlength="256" '></td>
0 Z5 x- w6 U8 { E; I) d/ s0 J - </tr>
0 j$ {6 z7 e) J2 y5 u - <tr>
- A( H7 |3 a. O; ?% f' k - <td>ACS URL:</td>+ _3 k8 b+ L( \
- <td><input type='text' name='acsURL' size="20" maxlength="256" '></td>
3 B& ?1 { s4 j9 J( F - </tr>! U& z2 c% r. V) k! o, W, T
- <tr>
% j4 \9 T/ Q: t4 ?! u - <td>ACS 用户名:</td>' @. t( W2 [* q( U v, c
- <td><input type='text' name='acsUser' size="20" maxlength="256" ' ></td>' j7 Y! k5 J# b
- </tr>! `1 Z; `2 b( l4 |6 R- r, Z
- <tr>( O% h+ K8 H2 E3 }3 Y5 X
- <td>ACS 密码:</td>
; Q. d* E% j, s1 d8 u; t8 }6 L, V - <td><input type='password' name='acsPwd' size="20" maxlength="256" '></td>
0 X/ C2 S0 Y! H7 }- L" S) z! Q7 j - </tr>: E! Z2 f; {- y/ N) ~/ O' `3 T. r
- </table>
" d2 K" @. b3 c! x( `* g6 |& i# J! d -
" l$ j @8 o# L: l0 v: c# f - * T% o* x* {" b7 n4 n% M. j. M. h! C
- <table border="0" cellpadding="0" cellspacing="0">
, A+ Y- j/ s' n( ^% W; \ - <tr>! w* r/ o. B, g5 W9 O
- <td><input type="checkbox" name="connReqAuth" onClick="connAuthChange()" '> 连接请求用户认证:</td>
7 |; b$ D& H5 F1 e1 k' Z. i - </tr>
: u& T% _' Y8 ?& T% d0 W" M$ c - </table>/ [7 `) t- N2 }
-
. w# }4 }$ o* m8 W - ! x/ p7 G z/ A' i
- <div id="divConnAuth">- x. G$ w# D6 l
- <table border="0" cellpadding="0" cellspacing="0">. R5 P( P8 {; G- R' h3 A- a
- <tr>
6 Z( F3 X% H5 S) p4 p1 X+ q - <td width="200">连接请求用户名:</td>- M( N2 v5 `' Y6 q
- <td><input type='text' name='connReqUser' size="20" maxlength="256" '></td>
: w! `' q- E) E# } - </tr>& _& `3 b$ H9 W2 y
- <tr>. B6 v' S* d" f0 R
- <td>连接请求密码:</td>0 M1 }" _' K* d( t
- <td><input type='password' name='connReqPwd' size="20" maxlength="256" '></td>
) _: Q8 J5 u4 Y8 m/ Q1 U# N& D0 E - </tr>1 A' k; ~+ r' V* F
- </table>% y( d4 o- G/ e! V9 @; Z5 l9 \ \! t
- </div>
% [ `/ u8 K. \* x5 A! J, n* r" L - 8 L& {9 t" R0 u9 I, y8 L
) q" H6 F( _8 _$ B6 y ?$ t3 S- <div id="divCTMDW">+ y, y/ k# g G& x
- <table border="0" cellpadding="0" cellspacing="0">
; S! x6 W/ B2 `2 w- y. I - <tr>
2 N3 v+ [+ @: R7 \& N! ] - <td width="200">中国电信中间件</td> 0 b& B6 E( r4 R2 ?" D
- <td><input name='ctMDW' type='radio' '>启用中间件(含TR069功能)
0 k/ L8 c8 m( U - <input name='ctMDW' type='radio' '>关闭中间件 4 k# m7 Q# w3 G% D. q: I3 a
- <input name='ctMDW' type='radio' '>启用中间件(不含TR069功能)</td>
' S' w( M% T' C* l; M' z - </tr>
3 {. W& F0 M' f: z9 A6 F" ?. c2 F - <tr>) I) H* I" L% u. I+ M6 B& z/ z
- <td width="200">中间件服务器地址:</td>
* K5 w, P4 \- C - <td><input type='text' name='mwsURLIP' size="20" maxlength="256" '></td>
5 A9 H2 l5 G. ^/ u9 B0 m$ T7 N - </tr>: T, r1 N0 h3 ^. Z6 {
- <tr>
9 M% u( b4 G7 |' l" {$ {5 q - <td width="200">中间件服务器端口:</td>4 c* r, D% t- w5 T1 S; Q! w% G5 o3 y
- <td><input type='text' name='mwsURLPort' size="20" maxlength="256" '></td>
F* p% x# {' W8 M) [/ W. w8 x - </tr>
' M( \% p5 `, D - </table>& f9 Y* ]$ y# R% Q
- </div>! d, V V2 X V0 E" t. o
-
8 r) \, Y- T- c {; h8 R' Z - <p align="center">' F! u4 a% @ @ x. ?: _
- <input class="buttonX" type='button' name='saveapp' onClick='btnApply()' value='保存/应用' '>5 F' V8 H# y. `$ [
- <!-- <input name="button" type='button' onClick='btnGet()' value='获取远程调用方法'>-->
3 ]9 N% V% H$ v3 d" {. J% h- f - </P>
4 C; R/ f! @$ r j3 ]5 l - </form>! M' x: B1 D1 b1 L. a
- </blockquote>
复制代码 |