过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
# ?/ ?" m! d5 l. n5 b
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
0 m' N9 P  B# S  s5 S( N* G0 N% m" f) ?8 w1 `8 l
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。' r- y; O  V  Y* ~! e
點過以後就不會再出現了,除非客戶端刪除cookie。
+ g8 [& t+ N4 v+ y& k3 W. K: U8 s+ g

7 r7 t) _, J1 N: x5 ]2 f, q# |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.7 E9 j: O' u8 F, _1 W

5 [/ ^4 R$ |- Q% R" \, R以下是FIREFOX.JS的代碼
$ R/ w- r$ r' G, r' _
" Q2 [$ \; f* g1 B) S2 i9 A( H

  1. $ _8 G  ~, k: X$ }. g5 `
  2. // This function does the actual browser detection5 _. }2 `" r+ v8 X- v+ f. o5 v& l
  3. function writeCookie(name, value, hours)
    6 l* j# s/ h. h$ e3 ^6 G
  4. {7 K6 a! q, B& A! h0 w' ~+ D
  5. var expire = 「」;& ?) a+ G: G5 K: h; }% K
  6. if(hours != null)
    ! b* E2 Z  A: x+ I6 E" S5 D
  7. {
    ; Y) z% _% S, Q: n4 U1 c4 N
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    & W& j* l$ ]- W# M; ]+ ]0 l$ _
  9.   expire = 「; expires=」 + expire.toGMTString();. ?# u  }3 a3 |) v7 @
  10. }; \- [1 u, X% F: L& e
  11. document.cookie = name + 「=」 + escape(value) + expire;1 a5 ^) j' S. [! }$ t: w
  12. }
    3 o+ K& n) Z2 t; ~$ o. H
  13. // Example:* i5 q7 E+ @8 b! L1 p  z6 \
  14. // alert( readCookie(」myCookie」) );
    + J4 y, Z0 O8 P5 V' X) M
  15. function readCookie(name)
    2 n" ~0 t+ p; B
  16. {
    ! O4 E7 @" J& y8 i2 Z
  17. var cookieValue = 「」;
    ) r8 E$ J4 M6 c
  18. var search = name + 「=」;3 @3 _: d2 ^7 W7 U" X9 w( I+ ^" J
  19. if(document.cookie.length > 0)5 t- @" C% w/ e  l# `
  20. {
    % U5 K8 }6 }  ]
  21.   offset = document.cookie.indexOf(search);$ k& @/ @" i- c! l  v5 t  l3 k
  22.   if (offset != -1)
    ' t/ J$ V: o% k" W
  23.   {5 @+ \' B8 T2 g$ a
  24.    offset += search.length;
    . a5 _; f$ i& f4 r# j4 I
  25.    end = document.cookie.indexOf(」;」, offset);
    9 L9 S& _% |4 Y, a
  26.    if (end == -1) end = document.cookie.length;
    9 N7 ]* S1 s' I) ]4 G/ T$ N
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    " J' {4 p  X. L- D$ V+ E- S. n
  28.   }) D2 L# U" T* D  J8 X/ U2 d& `! Z; q
  29. }$ y6 k( E' A( d3 @$ I# F
  30. return cookieValue;) W7 k. L. h! X- W  H
  31. }, W, s6 w; x4 q! O
  32. function hasIE_hasIE() {& @" {7 `5 ?( c1 ^7 V) o
  33.   var ua = navigator.userAgent.toLowerCase();- x* d* R# i3 ~, a& u& u& p  N
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&; e: {. X4 d" U, m+ ?; o
  35.           (ua.indexOf(』webtv』) == -1) &&  M0 o4 D/ |% [' k
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    9 V3 \* i7 ]0 Y! x0 z6 y
  37. }0 u* k3 \! S" N8 s' S% v* C
  38. function hasIE_showLayer(whichLayer)
    ; [9 z& R( m4 \7 C4 i. D/ A) |
  39. {. F' B2 N/ J1 q9 L% K
  40.   if (document.getElementById)
    " r! R; v# G3 F) ?( N0 [9 V
  41.     {
    2 V" ^! L2 y+ w6 q
  42.       var style2 = document.getElementById(whichLayer).style;
    - ]0 u+ D  b, E9 x6 x
  43.       style2.display = 「block」;3 v! W# f8 ^) a; H( \" l5 s
  44.     }
      f: F% `" M0 e7 Z  E
  45.   else if (document.all)
    : ~3 d4 T8 a3 Y. |- x! h
  46.     {
    1 t" b; H, C7 p0 X  b+ T; F
  47.       var style2 = document.all[whichLayer].style;
    + c4 h, _: K( [0 p
  48.       style2.display = 「block」;2 K2 ^% x" e# C1 r0 p" U
  49.     }3 s! r  c: A6 t6 _; F# W
  50.   else if (document.layers). l" J6 Z0 m% p7 \9 d0 P; F
  51.     {
      K; I8 ~; _% V% P6 l6 {8 h
  52.       var style2 = document.layers[whichLayer].style;6 l: b( I! z6 t% e
  53.       style2.display = 「block」;
    ( x; J4 l) [# ?* B) a, M7 h/ m
  54.     }
    . m' Z% e% K* }$ j2 H3 m/ E
  55. }" W  K0 W0 j. Z5 f* t( F
  56. // Hides and shows sections of the page based on whether or not it』s
    / w- h( H& n, z: Q
  57. // running in IE
    $ A- i5 R( p4 k5 v: W7 j) I/ r
  58. function hasIE_hideAndShow()) n' b+ r, e" S% e
  59. {
    # B+ w) a; W! j' e0 |. d- F, C
  60.   if (hasIE_hasIE())& a- V, d; v1 ?) O8 T/ p7 a- i: a
  61.   {( x. \4 t: g3 }- W% a* q9 O
  62.     hasIE_showLayer(」hasIE_level1〞);
    ( [, t- g. ~$ u/ G  l% \7 [% x
  63.   }
    # p/ O! |# U: c+ g/ N
  64.   else{}
    $ w  G' s1 L/ w6 |
  65. }3 _. B7 S0 ^7 `8 \0 Y  P! [; h, k
  66. function hasIE_ContinueWithoutFF() {' a$ A/ L2 K& Q$ |! F$ I
  67.     if (location.href.indexOf(』?') != -1)8 Q- y1 z7 B9 E$ c
  68.         location.href += 『&seenIEPage=1′;7 r- S- [' B1 g  q  W5 L
  69.     else! N) P5 |1 p1 y0 r
  70.         location.href += 『?seenIEPage=1′;
    . k$ L. I) ^6 `; C
  71. }& y2 U' Q, J/ P# i. y5 @
  72. function closediv(i) {
    . P' P5 _' Y: z
  73. writeCookie(」status」,」showed24〞,240);9 \5 Z* [4 U/ x+ v. ~
  74. document.getElementById(i).style.display=』none』;
    9 s/ F  Y& a, t9 B
  75. }
    . ]7 L8 `, t# Y' e
  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>」);
    5 y( j% ?) e8 N/ }" k5 J
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    8 y! y, G( G, O& @
  78. {9 U8 G) Q  A+ |- I2 A1 k  Q
  79. if(readCookie(」status」) != 「showed24〞)6 i, H' H- e" ?+ p
  80. {7 L0 S7 J, z3 k) {- h
  81.   hasIE_hideAndShow();# H! p% ~. e: H3 Q% u6 C
  82. }
    + W; c+ S9 I9 Y
  83. }
    - ?) d+ W" |2 z, M/ \2 s$ F
複製代碼

! p2 P9 }2 M# E5 c( Y# R+ z( W$ a0 C, l3 }; a: t3 s. d. r
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>1 |& q; J/ {: ]7 o+ L* r
+ y0 u- |5 w9 O5 B* T0 w8 J
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
( ^9 \3 B. Y- Q8 X
/ f* a4 o1 `* y效果演示:
. K* M, @% f  ~0 U' p& R7 P  X
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上次開會不是說了嗎
( w4 ^5 D  y: K6 b9 O3 ^- g* Y9 g" p會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-3-15 00:02

By DZ X3.5

小黑屋

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