过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
6 |# M3 K: v0 w3 P& [5 ?  z
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!6 d" O- u" X) B
! H; @. j) Y) @. Z, [0 z) C
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
, H$ ]6 \0 s) ?$ q! F點過以後就不會再出現了,除非客戶端刪除cookie。

$ ~, ~7 y8 `/ B1 |* |
3 y4 G+ |: ?+ \. kAfter 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.
. u; h5 H# o! a( b9 V' Z+ W2 j& S, d* l3 J/ x/ m0 g
以下是FIREFOX.JS的代碼
4 ^2 k1 }3 `9 y$ W# z- [6 C! @+ R. c/ C. E0 B; N1 i

  1. ( p. Q% N. A' j' T) F4 z
  2. // This function does the actual browser detection9 _3 s% U. j8 {- T) c% S9 O
  3. function writeCookie(name, value, hours). @! m% q( m% c. m
  4. {
    1 }/ [& ^+ o+ A7 b* j1 U( W
  5. var expire = 「」;( K1 Y: H3 h( M3 |
  6. if(hours != null)0 V7 P1 r- G* k& G: D7 s! o
  7. {- L3 L: O5 v4 T7 T1 k
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    - P3 t2 w1 w0 Z2 c
  9.   expire = 「; expires=」 + expire.toGMTString();
    ! b5 z# p, l3 J6 {# j- w
  10. }) \$ J- Y1 d2 R/ k& ~5 {9 E* \
  11. document.cookie = name + 「=」 + escape(value) + expire;
    + T- ^7 \  T2 O9 V( O; C  g
  12. }
    & ^, e/ S! K; c" ^/ P2 W6 V' E
  13. // Example:
    ; ^% D+ d# k1 z* j$ O" R
  14. // alert( readCookie(」myCookie」) );$ q6 X. B1 c# z% @1 ]( ~3 \& r* j* I
  15. function readCookie(name)
    & e/ F& j) }. h' |& E* R+ `
  16. {- G8 Z4 J' D- P3 }8 g0 B" K$ O  A* k
  17. var cookieValue = 「」;% w' V/ p  d6 u9 g  n. u3 D- f3 A
  18. var search = name + 「=」;0 e9 p3 ~! V' C5 y, @2 |5 {
  19. if(document.cookie.length > 0)  K( i" K$ f! m
  20. {
    8 P7 B6 p0 o! P5 |6 x
  21.   offset = document.cookie.indexOf(search);) A  \4 y, Z# _0 e
  22.   if (offset != -1)
    : ~% b: o1 c1 R4 m9 J, m6 u; z: D" [
  23.   {
    + _) ~6 Q# _2 N: u6 I3 t
  24.    offset += search.length;4 ^2 X6 `; [  u% S/ U  o' y/ T
  25.    end = document.cookie.indexOf(」;」, offset);5 l7 C* ~& @# f# Z/ v2 o
  26.    if (end == -1) end = document.cookie.length;1 y8 {) P) U2 G8 p' x, k6 N- }7 r
  27.    cookieValue = unescape(document.cookie.substring(offset, end)). V2 C9 T# e4 q- G) v
  28.   }. p" e) v" V6 E9 I
  29. }
    ' h, o0 c% d! j" [
  30. return cookieValue;* l5 k/ d% S# ?* F( c: Z$ ^
  31. }  Q8 O0 Y* V  v* ?/ d' b
  32. function hasIE_hasIE() {% i) z, l; i' k) \; m: w
  33.   var ua = navigator.userAgent.toLowerCase();& V( |% l3 _. _2 u! w
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    6 S& s, h# z  V4 {  i, H& N) i+ T
  35.           (ua.indexOf(』webtv』) == -1) &&7 W/ I) ?4 j6 b
  36.           (location.href.indexOf(』seenIEPage』) == -1));* L6 Q; D" x) Z6 L: W6 \
  37. }1 j7 \; a; H" }' c
  38. function hasIE_showLayer(whichLayer)
    % F: \) E! p) W
  39. {
    # t+ m$ `. K! z& K- U+ F' y: f3 f* x% [
  40.   if (document.getElementById)3 @2 q. M7 e7 L6 u) c8 o( F
  41.     {5 I" e8 v, [% v1 P: N
  42.       var style2 = document.getElementById(whichLayer).style;+ z6 D& l, g* G) k2 a" i3 N
  43.       style2.display = 「block」;! M9 a* b& S1 {3 Y5 H5 ~
  44.     }3 @# O+ C) ]  w9 T
  45.   else if (document.all)
    9 m, i5 H8 C0 ?; x1 t
  46.     {
    $ A/ O* M4 O  r  P5 \+ }5 a
  47.       var style2 = document.all[whichLayer].style;: z2 [9 C8 r5 v
  48.       style2.display = 「block」;
    % X* T3 i9 f2 D# c, K8 G' z
  49.     }
    8 t8 x* l- F- _5 D, z
  50.   else if (document.layers)5 O0 A; D" T* Z( V  k
  51.     {
    9 G4 ]1 i, U. b/ b% T6 y
  52.       var style2 = document.layers[whichLayer].style;
    2 P( ^5 ^4 j% }( A  o
  53.       style2.display = 「block」;8 j% j( w% F! b8 j9 x
  54.     }6 J- x& y6 @- I  {6 r- Y0 d
  55. }
    * a+ ^' o1 F, c" [1 l' k5 B' f/ P
  56. // Hides and shows sections of the page based on whether or not it』s
    ( N* n5 {+ T4 k4 p( \6 E: D7 ^" R
  57. // running in IE9 ]7 K  ^% f8 L* }1 x( q3 O6 b
  58. function hasIE_hideAndShow()  e/ f: S; k+ L0 _0 H
  59. {
      U- C9 b' y3 j( u, _
  60.   if (hasIE_hasIE())' L- q7 z: K, F- O
  61.   {
    4 g. W+ D$ {# L5 L" s: ?
  62.     hasIE_showLayer(」hasIE_level1〞);
    / r2 b3 R  f( c7 u6 Z3 E
  63.   }; d  u- e6 C2 ?* d
  64.   else{}$ ]) [  N# R- L5 R' L& t+ I: e* X
  65. }
    6 y+ E/ O" b' [. q
  66. function hasIE_ContinueWithoutFF() {
    1 r" w" b% h; a" u6 L& f) O, i; i3 @
  67.     if (location.href.indexOf(』?') != -1)1 k) e0 @  {" q
  68.         location.href += 『&seenIEPage=1′;5 R. H9 G1 y0 S% {. F+ d
  69.     else
    ) \1 j& Y, O$ G# J  O+ c  X7 A$ o2 q
  70.         location.href += 『?seenIEPage=1′;5 y" ~8 o& Y, n/ m
  71. }# k4 A/ a8 O6 q$ U( s
  72. function closediv(i) {
    $ ?1 o( x# b* r% {0 ?
  73. writeCookie(」status」,」showed24〞,240);
    3 `  H9 r  i( S# U: u& Y
  74. document.getElementById(i).style.display=』none』;
    & J/ t# M& u% |0 p" T4 V  k3 I4 B
  75. }
    , k( p1 Z* e9 W4 `* ?
  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>」);
    9 w$ o; N" S5 ~5 p$ E
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)2 x, _1 \1 k% c+ o4 m
  78. {
    # v8 I! K6 I9 \
  79. if(readCookie(」status」) != 「showed24〞)
    % D0 f1 l* S; U* M
  80. {
    3 e- F8 @& I0 j2 G3 d  D1 i: E8 ^
  81.   hasIE_hideAndShow();8 X$ J  y) O" l2 X
  82. }
    2 R2 B$ k) R; O7 i( n1 m
  83. }
    $ ~% y$ v- M. M$ k
複製代碼
2 Y$ K" S% i  Z, b! \5 V

" s0 J+ z, R) s% _4 D( P$ r# a2 d$ ~在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
& H8 R4 _0 ~8 q
1 P# z  d6 p0 }& c6 [Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar+ S8 e' k  V9 D) ]. U
) h. Q- m, k* T3 p, s
效果演示:6 V  j4 i- K1 Z' Y- b, G( B( e
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上次開會不是說了嗎( u% @9 H5 {9 U6 f2 k# F+ N
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-7-14 08:00

By DZ X3.5

小黑屋

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