过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
8 w- Y9 U! W0 ?/ u% H: O
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
2 a& n& ^( |6 A+ A2 d( [9 t% F( Q
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
$ {8 |) _$ [* K% f點過以後就不會再出現了,除非客戶端刪除cookie。

3 S  e6 F7 W! r, P; H5 p7 |
# s: N9 n2 V# VAfter 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.5 |* {6 e: S! L$ Y5 k; S

: A8 m1 Y" h# X& ]以下是FIREFOX.JS的代碼; e( c7 K) m. v
! U- D( b% n( G$ v8 u. g) D& V

  1. ( e+ {+ ~) U: N! i) M* d
  2. // This function does the actual browser detection# c0 \* ^6 Z0 P) e
  3. function writeCookie(name, value, hours)0 U& o+ i2 }8 n2 K8 x# }: ?
  4. {  a3 Q" ~( r2 v" ~4 G( O9 L
  5. var expire = 「」;
    / u* ?# b0 k5 t' O
  6. if(hours != null)
    6 {# O- B4 c, w5 }+ c) {, `9 o; |
  7. {
    . Y$ M; n) }: G% O$ {6 K; O
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);& d: n$ [- F. F) a* Q) J9 k/ a
  9.   expire = 「; expires=」 + expire.toGMTString();+ W3 l: l, O7 x9 ~& T) e" T! ?' _
  10. }* i; _2 K0 [4 o6 W! q
  11. document.cookie = name + 「=」 + escape(value) + expire;* f# A" L  |( F7 X3 R
  12. }
    3 F! T9 h6 t5 Y
  13. // Example:2 `* P9 D4 C3 E1 j: S7 S
  14. // alert( readCookie(」myCookie」) );
    , _7 H3 t- b4 h6 i" X# G" j
  15. function readCookie(name)
    $ a, [- q/ K) V, E. V
  16. {5 T& n% M6 W7 I0 I  R
  17. var cookieValue = 「」;
    , ]3 ~2 V9 X$ \7 C; r: X
  18. var search = name + 「=」;* f  l( q1 A& H0 H
  19. if(document.cookie.length > 0)) N! z! R' m# f2 B& ~) O0 j; W' f$ X1 {
  20. {6 r9 ~5 l; N  Y9 d5 T3 W
  21.   offset = document.cookie.indexOf(search);$ D# j3 p2 G; b; h' e
  22.   if (offset != -1)/ R0 i. x  s( u9 l4 F( E6 B
  23.   {
    ( c  ~0 f* K  n6 l- R* C  W
  24.    offset += search.length;. d7 Z1 V3 P1 ^' j7 c5 }" w
  25.    end = document.cookie.indexOf(」;」, offset);: }: ?9 L1 _% D& [
  26.    if (end == -1) end = document.cookie.length;! q4 h- z  x/ b; [/ v
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    1 p* z+ s4 Z/ o/ K/ z  K
  28.   }
    7 U+ s  V  D3 D
  29. }
    1 C+ y! J) p' e1 [; q
  30. return cookieValue;
    9 J; S6 E3 }. m7 T  Y1 q" v
  31. }
    . `: @- A+ L& o) y1 R0 [
  32. function hasIE_hasIE() {7 h8 x+ _$ N, Z0 K; Q
  33.   var ua = navigator.userAgent.toLowerCase();
    # E5 f, o+ O, \; `. C3 h
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    5 R$ r/ s' o' {- e; T5 A
  35.           (ua.indexOf(』webtv』) == -1) &&& ^( j9 ~( ]- m7 q& t+ u: H3 G
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    % E) ~# |& m0 }
  37. }
    5 w5 X9 [1 g* ^
  38. function hasIE_showLayer(whichLayer)
    ' [" Z' [. @0 W, }
  39. {) \# _7 Y& f- d3 l' V1 c) A0 z
  40.   if (document.getElementById)( k! H. d1 |  X3 i( n
  41.     {
    ; d/ C  n* q( H, L' X
  42.       var style2 = document.getElementById(whichLayer).style;
    8 O: H5 P) H. H- X; }
  43.       style2.display = 「block」;
    5 o( E7 m4 U5 X/ u5 g) y
  44.     }( u: F" G+ n3 U/ {# {6 N
  45.   else if (document.all): y3 K* n, D/ P. [
  46.     {
      R! \* n* A: O4 h* q/ A
  47.       var style2 = document.all[whichLayer].style;
    / \; X+ h/ Q, ?3 P6 q9 ^
  48.       style2.display = 「block」;0 F: a! |% u! w. s
  49.     }
    6 \9 [0 y$ w: k% @
  50.   else if (document.layers)8 V# o; B+ q8 |' Z0 b: X3 v2 \
  51.     {) w0 @6 h$ P% U& i0 f
  52.       var style2 = document.layers[whichLayer].style;
    4 p, c# `8 O  E  \
  53.       style2.display = 「block」;
    4 i* i2 |6 Z4 n& U7 g
  54.     }9 p' ]6 ^7 d0 b0 a- K  p
  55. }5 K& Z, \5 p6 s1 U+ S
  56. // Hides and shows sections of the page based on whether or not it』s
    3 f' h6 p6 I7 l# ^% m
  57. // running in IE5 S- D' N2 c% ]% E; p' ]3 \2 `9 H% j. Z
  58. function hasIE_hideAndShow()  B, K, _4 `% x: ?/ o. E9 q! J- D
  59. {1 J1 O5 n# ^7 G7 Z: O+ b& c" E! R, ?/ n
  60.   if (hasIE_hasIE())  i8 K* s( q7 U% @
  61.   {# o& D6 X  P' s* |) O- P4 X
  62.     hasIE_showLayer(」hasIE_level1〞);
    1 s# h7 L( C( L/ l
  63.   }8 s7 A& I: g0 t2 F
  64.   else{}4 `* K5 x, `" a, {' \7 I
  65. }
    - P9 n8 J, w2 {2 p% p
  66. function hasIE_ContinueWithoutFF() {; k; ]8 C+ E, G" n8 l
  67.     if (location.href.indexOf(』?') != -1)
    / h" p6 C5 g0 B
  68.         location.href += 『&seenIEPage=1′;
    8 v6 @, y1 W' c" e$ e/ b3 D4 i
  69.     else9 O/ a% ?4 x- w4 M+ O
  70.         location.href += 『?seenIEPage=1′;
    , m" x5 q- N  l$ k! M4 E1 r+ A
  71. }: e  p' p- M3 }- g# P
  72. function closediv(i) {
    8 i2 ^+ ?$ u2 V8 X& p2 C
  73. writeCookie(」status」,」showed24〞,240);; K# c% z/ ^, e3 n
  74. document.getElementById(i).style.display=』none』;
    " y+ n( v' r% Z3 g. y8 w0 ?+ t
  75. }4 a3 q6 f! e* l* B; d
  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>」);
    1 Y; H8 [( J, N
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    2 {5 q- B, w4 r- R1 w0 B5 L% M
  78. {2 K5 Q1 ^: r2 \$ C4 [; A9 f8 h
  79. if(readCookie(」status」) != 「showed24〞)
    & l% _. l; x- h: O
  80. {
    3 O9 L3 m# U" t# G
  81.   hasIE_hideAndShow();" c7 t0 ?+ |) M# b+ }: P$ k' f
  82. }
    : E8 M8 w' ?+ d& G, `/ {
  83. }
    " L  p& f- h8 k& v7 W8 o
複製代碼
+ I7 K2 D/ O; r& X2 d: R5 e" f3 p9 p1 D

! z, v: y' I  I% v在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>- e4 v: d, Z; E3 Q+ F7 k$ Y
. O9 w' I# V3 s$ J
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
5 ]4 `( h2 |0 Z' Y1 g- ~3 W' E9 X8 k( D# g$ ^) p) |" ^
效果演示:$ X, K; D, K4 T: @
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上次開會不是說了嗎
8 A, B9 X- s5 w7 ?4 K' o7 ~2 h: j會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-7-14 06:30

By DZ X3.5

小黑屋

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