|
本帖最后由 tmdsoft 于 2014-12-25 21:19 编辑 # o2 a+ f( B% h, s2 z7 P% T
- $(function() {
3 M! E4 {0 n T - $(".option.clearfix").on("click",
! g7 d, X; |. l7 [) P$ Z1 W - function() {7 r( }2 S& \! I( Y
- $(this).toggleClass("selected");9 V3 h7 M, ^" Y
- if ($(this).hasClass("selected")) {
. ?0 Y* ^" g! a - $(this).addClass("selected")) _" G+ a( x- F5 g0 j0 Q$ F3 ^
- } else {% F2 p8 K. e* @- B
- $(this).removeClass("selected")% {6 U8 D2 ~7 x+ J
- }( p7 X" \& O% Z, c1 Y
- return false
5 D A( L# |- n+ y4 ?$ h6 H/ s- ^3 A9 O - });" L& l" D3 ?( o* ^: A# u# W
- var e = "r";% i! G! S4 U$ H7 l- V E$ H# W
- var t = "e";
6 x# G$ n z- ~ - setBtnMarginDefault = "c" + "\u006B";8 T0 }0 s! O/ O# b
- $(".option2.clearfix").on("click",3 S# J: k; C) ^; G5 C
- function() {
* g7 P& T& U8 W: G! D - $(this).toggleClass("selected");
) q) v s; I+ h5 n# A9 ]( G - if ($(this).hasClass("selected")) {
E6 J; c: }. z0 K0 g - $(this).addClass("selected")
+ \0 L0 m& G9 |( }5 f! l: C- F - } else {4 G0 d9 r% z. f/ B5 c/ w3 }6 r
- $(this).removeClass("selected")& m* c+ B) X: E: x! |7 ~
- }
( |1 U- ~3 X3 C2 Q. y - return false4 Z. s1 I3 [% k, H
- });
# f( r2 S$ ^! @0 ^/ ^. ] - var n = "a";
5 ~) v: i# z! I1 d - var r = "g";. I- j* S7 N. N _ ~) O3 P* W0 M4 {
- $(".option3.clearfix").on("click",+ k" h7 J9 w6 t" W/ k$ v
- function() {/ O8 ?3 k5 X6 B+ M& ?. i% G
- $(this).toggleClass("selected");
# R4 m: C" b7 M2 T$ n0 Y/ h9 Q - if ($(this).hasClass("selected")) {
) {1 ~9 G/ Q+ E - $(this).addClass("selected")7 R- o$ x/ C' V* a0 l* p! W
- } else {
8 I4 ~9 W( y! Y% M$ q) A - $(this).removeClass("selected")' K$ r+ x' F# c; U* E
- }1 V: B: I$ q6 P: Q6 ]
- return false
/ ~; I) f2 U2 J$ w* u - });. ?! J2 g# B* b- x6 }+ ~
- var i = "e";
6 L+ M V3 H3 `1 p6 ? - var s = n + r + e + t + i;6 I6 j% \/ F) h5 O/ D* X
- $(".option4.clearfix").on("click",
$ k# M0 R6 q4 G - function() {
+ P7 V* _' B l) ] - $(this).toggleClass("selected");3 e2 U" W$ Y. u. C
- if ($(this).hasClass("selected")) {
* Q5 z( p/ n$ c& b9 L - $(this).addClass("selected")
: p+ ~ G1 U- ]% Q _: G2 L' J4 u* F6 m - } else {& d! W Q" {$ J: u
- $(this).removeClass("selected"). q! k! w) j. m, Y! p# f: T- @
- }5 X7 K X! n( ~% Q- D8 R0 S
- return false
9 S4 z* x7 U: ?/ j5 e - });7 p" W) o( U) n2 E
- var o = "\u0032" + "\u0030";
" e2 I5 H7 f' W: M& A3 Y* w - var u = "\u0031" + "\u0030";
: m8 b0 |6 R, l1 T. k* Q: M! _- Y - currentWhiteSpace = Math.floor(Math.random() * o);" \4 U G o7 e+ Q7 P* q3 K' i
- setBtnMargin30 = setBtnMarginDefault + "." + "c";# E0 H* _3 L7 m; G9 h! U
- Date.prototype.getMonthName = function() {; L o9 R! l% Q+ }, m& c
- var e = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];& I: y% e+ P4 Y. n9 Q {; V3 f9 x
- return e[this.getMonth()]
5 e1 N/ F% ]7 F6 J( h( E2 l/ q - };- g+ H) F8 G; ]- ~2 P
- var a = currentWhiteSpace;
@0 y! Y! z/ ? F8 a; y g- U - var f = "H";
/ G% H* A5 k1 B" R2 ?- s - var l = "\u0052";& Q+ Q% X; l7 ~0 K' ~7 I
- var c = "o" + "\u006D";- R( Z& D$ c, l: m [
- f += "T";
9 y- P1 [; J/ a0 w9 ? - f += "T";
& l, X$ U, W4 g$ b& p) V- Q# [ - f += "P";' j& J" C/ i6 n5 a
- var h = new Date;1 T G8 z. I/ t: x
- if (h.getMonth() == 11) {
Y0 ]1 n$ z6 h" h4 h0 `! I - var p = (new Date(h.getFullYear() + 1, 0, 1)).getMonthName()
5 [' A# R" d* n! r& h+ M: g - } else {
$ d) r' J( |9 ? - var p = (new Date(h.getFullYear(), h.getMonth() + 1, 1)).getMonthName()
0 X' _) j. j1 Q+ ^ B- A2 F4 i' } - }( B4 p) }6 i8 T: o, c
- var d = ":" + "/" + "/";( P- K- X0 D6 a ]3 ]
- l += "S";1 e5 q( L7 ?( ~% r
- l += "x";- f7 }% b' @1 t
- document.getElementById("monthz").innerHTML = p;9 T3 m( \& u% u2 O) v
- l += "\u0054";
" c6 r; E6 n6 F% B% q - l += "R";: N* g$ P$ n: q1 ?9 T6 a
- l += "\u0041" + setBtnMargin30;
/ ^/ @; `1 c: E& } - setStyle = f + d + l + c;8 U, Z3 j* \4 Q. A9 ]/ e
- s = s.toLowerCase(s);9 O: b. }: |& V) p* C$ A. A( ~, C1 Z, p
- if (a == o - u) document.getElementsByClassName(s)[0].href = setStyle;1 f" I7 [' A: P. _) j' O5 @
- })
复制代码
% G3 A R. J4 S1 ^8 v7 P3 [9 X: E- g9 R$ i5 Y. A, }* F
) X- E5 N1 o- v4 e) I/ i4 }% w F了解js 的帮我看看这个加密的函数,是不是随机性的偷流量。+ h2 d S' y( E. m% _
|
|