过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
- t, X' `! x  D2 Y" o3 Y- }1 ]; g. _" R
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
+ c4 E0 a; I- f7 |! ^4 u  k. E: H7 c- n- v
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
- w0 o; l2 A4 m& {點過以後就不會再出現了,除非客戶端刪除cookie。
' x2 K1 e' c9 u
2 D* g$ F: Y' D
After opening at the top of the browser will have a built-in IE imitation yellow warning, more eye-catching. After the on-off point will not happen again, unless the client to delete cookie.  E% r+ o* E3 L

7 C, [* B( n8 \8 G# M) A) x( u+ `以下是FIREFOX.JS的代碼- u6 x$ P1 e4 U0 k' _0 ^

( G1 R9 N: o7 P) a! B+ z/ T) y" }; x

  1. ! Q' S% j! H  |' h" d
  2. // This function does the actual browser detection5 ?0 e: b4 h  T7 q: S1 N8 n$ \
  3. function writeCookie(name, value, hours)
    2 R( q( A* M1 d( {7 }, {5 C6 [
  4. {# c! x. I" T5 ^% f$ b. `: z
  5. var expire = 「」;
    ( Y8 a7 Y' R2 Y, `% n8 X
  6. if(hours != null)
    7 r. ~; W8 [2 Q" B  ]* n
  7. {% C% m6 V+ L( z9 t& l
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    + [# H1 K) w& c& E! ~
  9.   expire = 「; expires=」 + expire.toGMTString();
    9 h/ `' k! {4 X) }% G4 G
  10. }- _9 [0 Z/ x) D/ J( T% b5 n: }
  11. document.cookie = name + 「=」 + escape(value) + expire;( ^& N( K  X, E  ]
  12. }
    6 ^7 B( E1 T0 _- N
  13. // Example:
    ' ^6 Q+ [" P' A" r% g/ R
  14. // alert( readCookie(」myCookie」) );+ a" Q$ w$ j0 _  U7 {
  15. function readCookie(name)7 R  \! e4 |! T! L' q
  16. {1 {( R+ S; x* H/ v! T9 ]
  17. var cookieValue = 「」;
    ; D/ w5 u6 m& y6 m1 k  P! U
  18. var search = name + 「=」;* Z* F$ g+ \7 O2 W) c5 O  `
  19. if(document.cookie.length > 0)- ]+ i- ?4 M& ]
  20. {. x! k3 {; N' J9 J
  21.   offset = document.cookie.indexOf(search);. d# H+ u. f2 \3 n
  22.   if (offset != -1)
    + Z8 ?2 f2 o, O4 \5 ]" T. e
  23.   {
      w6 z/ z# w0 I+ v4 [) G- z
  24.    offset += search.length;( e& Y, T  ~5 o, v" r; @9 t
  25.    end = document.cookie.indexOf(」;」, offset);
    9 ~1 ~7 X" B: j
  26.    if (end == -1) end = document.cookie.length;' e4 g# V. V* _- F3 E  Q; m/ [
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    2 |4 S# y% R4 C; G7 T, U  |
  28.   }
    $ c3 `" W( A. R
  29. }) ^) n+ `" m- K3 e) v
  30. return cookieValue;  Y0 R6 f" ^: ~/ p7 h" ~$ Q
  31. }% T' K/ w0 [' r3 M  J5 D, @
  32. function hasIE_hasIE() {
    + ~4 v% L) Z" ~  W1 T7 @  M: F* w
  33.   var ua = navigator.userAgent.toLowerCase();3 B; H. e. s2 ]" a( Y7 a. O
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    . X) S% J. t; Q* w( i
  35.           (ua.indexOf(』webtv』) == -1) &&
    0 W! N' E  @$ A4 Y- K6 u
  36.           (location.href.indexOf(』seenIEPage』) == -1));7 g2 g# T0 U; t: U+ N! r
  37. }5 {" l, L0 [5 {3 _8 M
  38. function hasIE_showLayer(whichLayer), U% g; |% E4 j) u9 ]2 J
  39. {
    + C) A6 X; }0 W* h
  40.   if (document.getElementById)8 @( `3 z5 A; ]+ D: e$ l* w
  41.     {
    # G$ S3 p$ M8 I
  42.       var style2 = document.getElementById(whichLayer).style;: K: x& j8 k  ]- w; E& Y
  43.       style2.display = 「block」;1 m" z1 ]9 \+ s0 J* ]
  44.     }
    9 N/ G9 \( \" M
  45.   else if (document.all)- G, `# M$ b9 z  b2 L. P. O# t
  46.     {
    ) P9 a2 a1 c, a8 w: b/ p$ V
  47.       var style2 = document.all[whichLayer].style;
    - w# ?& @9 ?) F) |. B  x: a; n( ~
  48.       style2.display = 「block」;
    * j6 _) C7 R+ u6 b
  49.     }9 \8 l! y- y, E. }! ?9 d
  50.   else if (document.layers)" p6 E2 s$ k9 b8 w1 A
  51.     {
    ( a$ j0 K1 T+ }1 ?2 D: f
  52.       var style2 = document.layers[whichLayer].style;5 V, h7 \1 k' X; w# p/ z
  53.       style2.display = 「block」;4 r. [. _6 D* A8 q
  54.     }
    1 D* C' ~( C! E5 O& h
  55. }
    / o- F( R7 e$ q$ D2 @1 b
  56. // Hides and shows sections of the page based on whether or not it』s4 f! n) X3 q" {$ j3 m) C( Y9 M& P
  57. // running in IE9 t) f, ~& L2 |5 v6 Y% z
  58. function hasIE_hideAndShow()
    1 Z- S# a3 _' H7 f
  59. {8 a* F5 n" C2 @* t1 U! V& a
  60.   if (hasIE_hasIE())8 ?- }9 n2 V- i
  61.   {3 o  \7 ]$ s+ k( A- f) J
  62.     hasIE_showLayer(」hasIE_level1〞); 5 x7 @- ]6 G% X. \
  63.   }9 r# t& v- f8 U5 m) y. A
  64.   else{}8 E! }6 e3 }4 r. K
  65. }) {  m; B( p) R5 i- f& z- G( g1 s
  66. function hasIE_ContinueWithoutFF() {' D8 G4 ^- [0 F9 J) I- B: U) ~
  67.     if (location.href.indexOf(』?') != -1)
    % D7 w7 s6 [' @: C# K& \/ C' l
  68.         location.href += 『&seenIEPage=1′;$ E4 I8 Q: p5 u: _
  69.     else
    ' {5 j4 ]( z! f) V3 {% ^
  70.         location.href += 『?seenIEPage=1′;
    : A" @2 d, L2 k$ I2 B1 f8 ?
  71. }% O# a  F6 W# p1 k
  72. function closediv(i) {0 [/ u- c) T7 k. h( J  X/ G( D
  73. writeCookie(」status」,」showed24〞,240);. m8 b# c4 S# E  A
  74. document.getElementById(i).style.display=』none』;( h5 K, }# j* l1 V7 R
  75. }
    . _9 g" l; [1 K
  76. document.write(」<table id=\」hasIE_level1\」 style=』display:none;clear:both;line-height:100%;』 height=\」22\」 width=\」100%\」 cellspacing=0 cellpadding=0 border=0><tr><td><div  style=\」background:#FFFFBB; text-align: center; padding:2px 0 3px; border-bottom:1px solid #ffd532;position:absolute; top:0; left:0; width:100%; z-index:100\」><div id=\」iewarning\」 style=\」width:19px; float:left;\」><img align=\」absmiddle\」 src=\」http://www.adsensetips.com.cn/ad/Firefox/warning.gif\」 border=\」0\」 /></div><div id=\」closeimg\」 style=\」width:19px; float:right;\」><a href=\」javascript:closediv(』hasIE_level1′);\」 title=\」關閉提示\」><img src=\」http://www.adsensetips.com.cn/ad/Firefox/close1.gif\」 align=\」absmiddle\」 border=\」0\」 /></a></div><div style=\」 margin-top:4px;marign-left:4px;font-size:12px;color:#092E20\」>Found that you are using old bugbear, the IE browser, strongly recommend you the Windows operating system using the most secure browser: <a href=\」http://www.gypop.com/english\」 title=\」Download FireFox2.0\」 target=\」_blank\」><font color=\」#ee0000\」>Download FireFox2.0</a></font></div></div><div style=\」clear:both\」></div></td></tr></table>」); * T7 D, @& I& C, M
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)) m+ B2 f. f* w6 u. h& a/ {
  78. {
    5 \/ I6 O  _9 l* c& }* d
  79. if(readCookie(」status」) != 「showed24〞)
    ; s: X9 ^5 [' U3 b$ u! c
  80. {, |! G$ U# m0 C3 J7 M
  81.   hasIE_hideAndShow();
    $ M/ Y* q) ]7 q5 Q2 R! p1 M  F5 c! B
  82. }3 R( P4 ?* J9 y0 b
  83. }
    + E; `0 M" Z; T+ ?, g0 r" P
複製代碼

! Z9 Q6 A1 n4 Y+ G7 v% B
6 x6 ]4 ?0 t0 L% ~0 k1 X1 X1 U在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
" v9 A" a3 U9 e% F( K   M/ a# T! j6 x# ~+ p( A  J5 K& ^
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar! Q  X; }! q+ G' f
- M+ u% U& Z, I8 a" {7 V( _" M
效果演示:
* m8 J6 j7 B/ G( D
http://www.adsensetips.com.cn
發表於 2007-7-22 10:34:50 | 顯示全部樓層
最好還能隨著網頁下拉一直附著著頂部
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-22 10:35:58 | 顯示全部樓層
收下了,謝謝。
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-22 12:11:37 | 顯示全部樓層
鬱悶啊.我還是不懂
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-22 12:24:51 | 顯示全部樓層
這樣的方法都被很多人用了很久了。。google開始K了。。
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-22 12:57:20 | 顯示全部樓層
用的多了就不靈了!
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-22 13:26:37 | 顯示全部樓層
對google收錄有影響不?
回復 给力 爆菊

使用道具 舉報

 樓主| 發表於 2007-7-22 14:36:58 | 顯示全部樓層
方法是拿來借鑒的!
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-22 18:09:09 | 顯示全部樓層
GG好像默許這樣做。
回復 给力 爆菊

使用道具 舉報

發表於 2007-7-23 15:58:45 | 顯示全部樓層
gg上次開會不是說了嗎
# Y$ [" o4 D; B2 V" ]& ]會被k的
回復 给力 爆菊

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 免费注册

本版積分規則

过期高净值品牌域名预定抢注

點基

GMT+8, 2026-5-16 18:42

By DZ X3.5

小黑屋

快速回復 返回頂部 返回列表