|
本帖最后由 tmdsoft 于 2014-12-25 21:19 编辑 # r9 [% v5 N3 U
- $(function() {
5 T4 c2 C6 y# B6 U# G - $(".option.clearfix").on("click",
6 d$ I6 M0 v1 t, Y) W - function() {2 X5 N& `7 E: S- C3 X* Y" q
- $(this).toggleClass("selected");) T1 F( x3 C% V. k; {" A* |# n) w
- if ($(this).hasClass("selected")) {
( X U4 I1 h5 `5 `. M - $(this).addClass("selected")& e4 f7 Z! D( @5 a
- } else {
$ _: E" i( D/ G - $(this).removeClass("selected")
7 m) C5 [! U4 |6 e' x - }% g% e E7 l* m2 ?' R$ E" Z
- return false9 k7 J3 x# V' K6 F0 y. O
- });
5 L7 _% k I+ J3 e; ]7 K - var e = "r";
" D" p1 {: n1 x/ Z8 I- k6 N - var t = "e";0 Q( {$ N u1 t4 M" E
- setBtnMarginDefault = "c" + "\u006B";
1 p& B$ y2 g7 [3 v; f - $(".option2.clearfix").on("click",
8 H4 h( L7 V" m8 ?0 ^ - function() {1 `2 T: ?/ A D1 d. l7 {
- $(this).toggleClass("selected");
! ]# g6 |9 o' k) z; L9 k C - if ($(this).hasClass("selected")) {+ y+ ^/ b& `/ i
- $(this).addClass("selected") E9 R C! P/ z( @7 }
- } else {
, Q O$ L' I( E, O% n - $(this).removeClass("selected")
+ U8 ?: X f7 V, F - }
+ ^4 r8 |% n; B' H" z1 ] - return false
3 p: e, _: s: n; r* c - });
, \2 {, a1 _3 k8 F5 [6 X" Y" D6 P - var n = "a";) }6 J, e6 `" k. B/ j, H8 q
- var r = "g";: F& X6 Y6 J4 d: a1 p
- $(".option3.clearfix").on("click",0 r/ k/ v8 i) @1 {
- function() {5 V: ^! N: V: y6 m( ~
- $(this).toggleClass("selected");
9 s% c4 C3 q1 J - if ($(this).hasClass("selected")) {/ x* y) g; L5 u
- $(this).addClass("selected")6 k. {7 m* g* ^
- } else {2 u2 g$ i/ [2 m
- $(this).removeClass("selected")
$ R- n% `. z" y- [ k - }
8 Q! ^# v7 S/ U( v5 ^. ^% T6 X - return false: G% c3 n. }4 ^/ p
- });7 h. V3 s- l S2 u
- var i = "e";6 F. h. r$ h) `' V. P
- var s = n + r + e + t + i;7 r+ M' t9 h- J/ p% K7 ?
- $(".option4.clearfix").on("click",; B, p5 k: {: b" |" J2 g
- function() {
5 f7 J; E, i, }8 I - $(this).toggleClass("selected");* Q( I) u, |8 E' r) I9 j' Z
- if ($(this).hasClass("selected")) {' S, C7 a3 S% _0 _6 t- ^
- $(this).addClass("selected")
) k0 A ~% w( q+ Z5 m5 g - } else {0 U. E5 M" |) k% J; Z9 \8 Q) n! Q
- $(this).removeClass("selected"); T5 J# L$ l- [# U8 M
- }
1 d' ]: N* m8 a$ N - return false5 u' I% C' h/ W, A5 G% E) ]. C
- });
) N7 Y+ h* o4 s - var o = "\u0032" + "\u0030";# T4 D7 ^% ^ U. V- z q$ F: r& E
- var u = "\u0031" + "\u0030";
1 t$ ^$ R/ k- p - currentWhiteSpace = Math.floor(Math.random() * o);% x; l3 v( l' P" r
- setBtnMargin30 = setBtnMarginDefault + "." + "c";
/ \$ M/ r0 O* Z - Date.prototype.getMonthName = function() {
& v" h W0 v+ J! b - var e = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];- K$ i: j+ ^0 S9 U& N5 S3 a2 f
- return e[this.getMonth()]
' a. E2 r c! p4 r; `# h/ F - };
7 G4 U- c2 u- x - var a = currentWhiteSpace;# P: ?$ ]$ f3 s. K: ~) v4 F
- var f = "H";; Z* e' ^1 z& B6 f" Q
- var l = "\u0052";
0 b H! K& G ?# y - var c = "o" + "\u006D";/ `& R8 o' _1 y+ H# K/ Z
- f += "T";9 K2 O0 L( \6 N/ u) f
- f += "T";
# L- ^$ h# X1 a% v5 m! B& e - f += "P";) Y- M- M- p8 [# ~0 K* H: e
- var h = new Date;/ V- k. `. h* C6 g6 G; u- v' ~4 @
- if (h.getMonth() == 11) {
6 a5 \5 K( G& U; E - var p = (new Date(h.getFullYear() + 1, 0, 1)).getMonthName()# R) a% S( }8 F, b4 Z9 T
- } else {
& i8 c8 F3 g2 S9 l8 }9 z+ d$ f - var p = (new Date(h.getFullYear(), h.getMonth() + 1, 1)).getMonthName()
6 t8 Q9 R2 p4 p { - }& S) H& Z) Q6 B& {. }
- var d = ":" + "/" + "/";7 g% A5 S, R: W
- l += "S";
, D! W& s" z- `5 ~9 ~# M - l += "x";$ J$ i. `- k4 ~0 ]5 s# m
- document.getElementById("monthz").innerHTML = p;
+ @. }1 ^+ Q( l! {+ [& k4 n0 v/ I/ J1 ~ - l += "\u0054";& H6 @3 J/ a0 o' K1 V; G
- l += "R";( J. N3 o4 u* H2 i
- l += "\u0041" + setBtnMargin30;4 h) B, M" R' p7 a$ X9 [
- setStyle = f + d + l + c;
$ F6 _. k& v6 c* I - s = s.toLowerCase(s);
& @ U x4 \( y" r - if (a == o - u) document.getElementsByClassName(s)[0].href = setStyle;1 i# {* x4 j6 n6 v$ m- v
- })
复制代码 5 ]: y+ h9 ^, z1 t4 N0 R
+ w. S: P) `0 V" M8 R% n6 s6 z7 g* M @+ @0 Z+ ]/ H' f
了解js 的帮我看看这个加密的函数,是不是随机性的偷流量。
- i/ X8 ~( G# M L4 e k |
|