过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
6 n, p: T" H6 E/ _' n$ W' W
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
0 S( i6 j- S3 d- o4 k# y/ t8 W' P; @* }( p+ y3 J' ~* b/ u; z
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。2 c4 M5 D! O$ f" @2 ~% M# f! J) S
點過以後就不會再出現了,除非客戶端刪除cookie。

/ G, N/ ~; x1 A+ o  m 7 M$ a. N/ ~" Y" i8 B
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.5 e# A$ G% Z' H3 v3 k

! `, G0 \! i% k: D' m; W: G4 Q! k& Q以下是FIREFOX.JS的代碼
. Y8 _" V" v/ ]$ i& F! M  i
0 n( m0 l% ^' {9 }" a
  1. . m1 r- X. `* e9 w: h
  2. // This function does the actual browser detection6 U: P3 V/ w) J9 o8 Z/ ^  O
  3. function writeCookie(name, value, hours)
    7 U- r7 D2 P, }4 F! P$ A
  4. {
    9 k+ b* h0 F& p% p4 p: p6 |
  5. var expire = 「」;+ t; K1 y* }8 I( t- p3 O. N& a
  6. if(hours != null)
      ]) z) l+ G1 S2 ?* `& i
  7. {+ [- g8 f% s1 f/ v, W4 _
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);8 P  B. @% a  r! B+ [2 A
  9.   expire = 「; expires=」 + expire.toGMTString();
    # J# I' O9 k' k- N
  10. }- H; g' _0 X! ]5 @* Z4 Q
  11. document.cookie = name + 「=」 + escape(value) + expire;
    9 k; S' X/ C9 s9 h$ c, N4 t3 R9 Y
  12. }
    - W/ J. q5 i( w* z* D3 Q. s; \1 @
  13. // Example:  v7 H1 }$ i" f" S/ b3 U! P
  14. // alert( readCookie(」myCookie」) );# \( g3 _  W) N1 M: t' a! B4 Y
  15. function readCookie(name)! l$ F$ V3 o! Y& g. Z. U- d
  16. {
    . k7 v3 d; a/ \: |  y, _! E
  17. var cookieValue = 「」;
    8 p: R+ _4 d& O
  18. var search = name + 「=」;
    ' e/ F4 h% |3 u4 A# Q
  19. if(document.cookie.length > 0)
    ! ]3 L4 F8 e  U4 |( s
  20. {
    7 u/ h% `& @: S7 Z6 f. a. i5 k
  21.   offset = document.cookie.indexOf(search);
    / Q! t$ L* ~" s6 d' i8 G, ]
  22.   if (offset != -1)0 _$ d) M; j' A" d3 F' t6 X
  23.   {6 z* J. a" k. p! b
  24.    offset += search.length;
    . S. [2 L' f" F6 f/ a$ _7 l
  25.    end = document.cookie.indexOf(」;」, offset);
    6 |. z9 j2 E, e2 t9 X6 g
  26.    if (end == -1) end = document.cookie.length;' d) u# W( n: i% r9 S+ ]! Y
  27.    cookieValue = unescape(document.cookie.substring(offset, end))2 `. W( M) e* L- e. y0 c# V  @
  28.   }
    / v% I% j* M' ~+ Y; w0 S
  29. }
    : \/ X* c/ H& z, n. k
  30. return cookieValue;
    4 A, ~! o8 {5 N( k5 o+ Y  d; p
  31. }
    , d, H6 H9 [- `) {) p  I/ R* r
  32. function hasIE_hasIE() {7 g) C+ @* b! H7 V) t3 |
  33.   var ua = navigator.userAgent.toLowerCase();* A1 z5 i( _9 Q
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&; n' G2 R) n! e
  35.           (ua.indexOf(』webtv』) == -1) &&  \6 b3 s9 R2 r* z& ?) i" j% ^% K
  36.           (location.href.indexOf(』seenIEPage』) == -1));7 a; s1 f% N$ @. b
  37. }
    2 q4 x- m* s0 q" p: y6 V
  38. function hasIE_showLayer(whichLayer)
    , t0 T; T7 l; N4 i( N3 A
  39. {
    0 B9 w: T& O. h0 F. m
  40.   if (document.getElementById)
    ( v( F4 ^- w: T# w5 `2 n
  41.     {
    2 K+ r9 n- u5 ?+ X- \
  42.       var style2 = document.getElementById(whichLayer).style;2 j' k/ {, O/ ~2 U8 [
  43.       style2.display = 「block」;; Y6 c- c% ~. ]6 i
  44.     }
    * A  w' V% Q3 q( Z
  45.   else if (document.all)
    + ?  j) g7 x. M4 Y( X9 s
  46.     {
    5 H2 r' V6 t0 |& l* c" r
  47.       var style2 = document.all[whichLayer].style;
    + o+ }7 F* A8 B' ?$ V  y
  48.       style2.display = 「block」;- u  A6 G: Z+ H4 `2 G- z1 s# s+ E
  49.     }
    4 e0 q$ c% X. x  C$ V; {
  50.   else if (document.layers); o  O4 Q* P/ Y; B
  51.     {
    9 d# ~0 N3 R  c1 H7 |. e
  52.       var style2 = document.layers[whichLayer].style;
    % e% E: N1 x, j4 i3 ~6 T, b/ n% M3 n" f
  53.       style2.display = 「block」;# }+ g" \9 t3 z/ f) ]
  54.     }; C4 p. u+ R- L9 M* s, b- e- w
  55. }
    5 ]6 Z+ h4 k1 u' {/ g9 [3 O. z
  56. // Hides and shows sections of the page based on whether or not it』s
    - j4 O& W& s0 i2 ]+ U, i
  57. // running in IE1 A5 r4 e$ Z8 K: {) o
  58. function hasIE_hideAndShow()
    5 H- d) y3 U* N
  59. {* C3 F6 u' F: c* g# Q) n
  60.   if (hasIE_hasIE())
    5 @/ \6 Q2 }# H+ Q& _
  61.   {0 b5 H, y* b5 E
  62.     hasIE_showLayer(」hasIE_level1〞);   ?6 A5 j' c# {& v6 B; t/ n
  63.   }
    9 H% L% r3 J: w! J
  64.   else{}
    4 V  J1 N- K  a9 ?2 E- q
  65. }
    5 Z$ v% }7 L, l7 X- U
  66. function hasIE_ContinueWithoutFF() {
    " z, T# x/ Z9 b( T4 A* [- S
  67.     if (location.href.indexOf(』?') != -1)
    1 m) V, Y1 `) r+ u! |4 }
  68.         location.href += 『&seenIEPage=1′;; c4 V. h# w! W4 D0 D3 t
  69.     else; ]5 s" T: L* r/ w! ~' i; E: n3 g) ]
  70.         location.href += 『?seenIEPage=1′;
    * V* F4 W+ X% S' p" o- {
  71. }  K# ~2 E& H! y3 ^& L8 B
  72. function closediv(i) {
    , n$ L& B9 S8 S& r
  73. writeCookie(」status」,」showed24〞,240);
    0 ~7 S. ^1 A  s" T/ X
  74. document.getElementById(i).style.display=』none』;
    4 ~1 u9 q0 t& F- I
  75. }
    4 X! r/ j* e$ ^. j
  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>」);
    ( g3 P; P' H* \; k3 ]
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)5 H2 w  V" d. b- ]# _
  78. {* i  J* p2 c  d% |; W; r1 U
  79. if(readCookie(」status」) != 「showed24〞)0 U7 O3 I" g5 i' k9 E
  80. {
    3 X: N/ G+ J7 X  Y8 R! q- i
  81.   hasIE_hideAndShow();
    . X; E# R$ X: _( d- Y
  82. }
    ) z6 a2 ]$ N3 O9 b0 P
  83. }
    " k$ `) S0 m: H5 T* F5 R( p6 O
複製代碼
8 \) z8 q1 o  h1 e

  I- H. W  B# t6 D在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
; B2 W4 Z: L# p/ e) U* T5 { % O) [' W0 I: D1 h8 m1 \! m% r) t7 l
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
. E+ a4 `" e4 ~" W: u% |* ]
( O+ Q' W' [% s) U4 ~' O5 h效果演示:# ]; c9 ~6 u! r/ b4 ^9 i
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上次開會不是說了嗎9 `  P# w  v  Q8 X0 o" r
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-10-20 11:50

By DZ X3.5

小黑屋

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