52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 4081|敺: 0
銝銝銝駁 銝銝銝駁

[HTML] 敺桀航閬蝒批捆撠箏站--Javascript[1撘萄]

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-12-10 17:42:11 | 芰閰脖 |芰憭批 撣 |甇摨閬 |梯璅∪
砍敺 media 2014-12-10 19:08 蝺刻摩 4 x3 k" V$ l) N; d0 j
$ L, \+ X& q0 l$ @6 s3 T7 F
餈甫avascript閬蝒憭批嚗唬閬賢函⊥菜葫銝撖祇憿敺靘曉唬畾菟畾萇撘蝣潘嗥冽潮曉之銝阡*蝷箸澆臭葉憭桐蝵格撣豢具
9 o2 R& t. E( N1 X( `
  1. <script type="text/javascript">) F3 Y6 M( ~1 b5 \; |
  2. <!--
    , B$ M9 h7 [/ M% Q

  3. ; c) C  S$ L+ A
  4. var viewportwidth;
    ; D2 c6 p$ L* N: q+ l: L
  5. var viewportheight;
    $ H7 O; b% j0 ^3 [! @

  6. " s; R! a  S5 n3 Y% F, K
  7. // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight+ C  k$ e. }0 e# n, a! q

  8. * r" Z* ~1 C  g7 F/ c% F' {3 n. G: Q
  9. if (typeof window.innerWidth != 'undefined'); T% S4 s! h& f7 p: ^( p
  10. {# @( L6 `% [9 Z
  11.       viewportwidth = window.innerWidth,$ v; M$ j8 \- {' V7 ^
  12.       viewportheight = window.innerHeight
    $ z  n! I! _  J0 p' c9 L  u8 e" K
  13. }. o1 o# t+ K. K
  14. # A; \( c1 n7 @( {  m! ]
  15. // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
    % f; ^5 v0 s5 Q4 ~  h. S+ N. p* @" G0 r

  16. * M8 X8 o$ O7 L( j& `( C! b
  17. else if (typeof document.documentElement != 'undefined'# K' N: Q8 ^! F4 j
  18.      && typeof document.documentElement.clientWidth !=
    / H7 R& b7 f( h7 M
  19.      'undefined' && document.documentElement.clientWidth != 0). q5 ?2 v" g! G0 F# O& H
  20. {
    ' y8 `5 W: p2 I8 p. H: T5 w2 }
  21.        viewportwidth = document.documentElement.clientWidth,8 W# Y! n8 ~" k0 Q
  22.        viewportheight = document.documentElement.clientHeight4 K$ f7 g- p" W% L
  23. }
    4 z/ \$ @* t( J2 h( ?' j' k

  24. ' k3 E- V& R4 e& e! l0 m1 m
  25. // older versions of IE
      v2 A) ]6 o  `0 J

  26. 8 U/ y4 q) t# i% E1 o+ g; `. P" a! E
  27. else# X- T& ~" B6 g5 @
  28. {
    ) F# D2 q3 c' l9 m" Z
  29.        viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
    ( t, O% e2 v4 T: ]
  30.        viewportheight = document.getElementsByTagName('body')[0].clientHeight
    / `! v6 [$ K; m4 M: S
  31. }3 o7 n  z+ i% _0 k" B
  32. document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');6 b% q" M$ g' O
  33. //-->
    " I, d8 N; `$ K; ^3 K. \
  34. </script>
銴鋆賭誨蝣
蝯: 狂oogle chrome 憿舐內蝯, Z, q0 m8 \( d1 f

! X. I! e/ r9 J% N# o% F' K1 W

5 K/ o/ J% o, f靘皞:
Get viewport size (width and height) with javascript
0 |( }/ f$ b+ y& k6 r7 n" n
9 ]4 `1 G! H' d3 V7 s' \6 g* r

9 \8 s1 p+ w, F5 w. `

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-21 22:48 , Processed in 0.067692 second(s), 20 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵