过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
  D# T. z0 f( {& G7 [1 D: B3 E
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!+ v7 J0 W$ O; [2 a& ?" W  B5 y4 Z, s
4 n7 a4 x2 n9 ~& @+ W: |8 V
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
& c6 L. U1 f6 S" q點過以後就不會再出現了,除非客戶端刪除cookie。

$ J; g7 n0 ~) A' f- m+ \9 M/ { - \( G* @/ Y6 y$ I2 m
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.
. j1 W9 e# ]8 [0 \$ Z- ^, R3 ~# O; z0 n/ a# y4 L
以下是FIREFOX.JS的代碼
) N) q( H& e& n* J- O/ }6 ^  t: _* a5 n6 i- b* K0 ]& G

  1. ( _# |4 n  ^8 \
  2. // This function does the actual browser detection' e, W6 I8 r( z4 f5 Z- A+ G+ B5 P
  3. function writeCookie(name, value, hours)# S/ W1 M0 O& @2 _, b4 ]% k% R
  4. {
    ' N' A# ~4 M& E: }* ?
  5. var expire = 「」;, X' D! C, R4 i5 [. _2 P( T! p8 u
  6. if(hours != null)
    / P1 l9 N/ Y, A5 c9 ~6 @
  7. {; i1 b0 \' V, e9 G, ~' M* r
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);' G1 @1 F8 k: W& k" ]" ?$ X
  9.   expire = 「; expires=」 + expire.toGMTString();5 y9 r  L4 k1 s. }( s% V
  10. }
    7 }7 p3 L, T1 y& u1 N/ z
  11. document.cookie = name + 「=」 + escape(value) + expire;
    ; y+ |4 o4 P. j2 i  A0 i7 A
  12. }
    + {0 g$ M3 V6 i6 C. ^
  13. // Example:: y& b) I3 |  D, F$ S
  14. // alert( readCookie(」myCookie」) );+ O( D6 |1 s/ q" f6 z  l) B6 f- x% b
  15. function readCookie(name)& c3 q7 f) q$ ~' N; k
  16. {8 T$ z" J0 Z) N. `" |
  17. var cookieValue = 「」;
    2 r. M6 e, z. t, ~6 v* f$ U
  18. var search = name + 「=」;
      p' }% m, L- E( H; L
  19. if(document.cookie.length > 0), G9 x" L6 q$ J6 O) y5 G
  20. {
    1 |/ o# m; W, t; f
  21.   offset = document.cookie.indexOf(search);
    0 J/ }" p! A; {& j6 s
  22.   if (offset != -1)
    " }4 g% @+ h# h
  23.   {5 L7 W7 r! L7 Q+ e1 b
  24.    offset += search.length;
      S# I+ C& M$ O) w  q( |
  25.    end = document.cookie.indexOf(」;」, offset);
    5 U, ~0 i. V2 O1 T
  26.    if (end == -1) end = document.cookie.length;6 T! k5 ]+ `/ l- Y) {
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    ! M. S  P- K6 }- D: d# v0 ^# ^: j
  28.   }
    ) [' l5 T& D3 U/ }& Q
  29. }$ h5 i! s5 V0 L3 h5 _. ?
  30. return cookieValue;/ W: H2 S6 \" A  \5 k6 Z$ n, x+ B
  31. }
    , ^  i( ]& E- \
  32. function hasIE_hasIE() {/ K! L. W+ ~+ i9 j+ T5 v
  33.   var ua = navigator.userAgent.toLowerCase();
    / l, c- T- ~+ {) j/ F& L
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&! c3 t7 t4 G2 @
  35.           (ua.indexOf(』webtv』) == -1) &&$ d( m& H6 l/ E1 [# b
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    $ h9 N& X0 B2 l; b% C
  37. }, g& n3 D. X" h- e2 Z
  38. function hasIE_showLayer(whichLayer)
    $ d) `" u$ O. d: [' E% F
  39. {
    ; M$ A- u7 ?5 C' z
  40.   if (document.getElementById)
    4 k+ W( c: ~; I/ O' U' F8 a* v0 j
  41.     {3 b3 P0 U' j  H9 d& ]6 o
  42.       var style2 = document.getElementById(whichLayer).style;
    / e( L! [' L* A: X0 y: R
  43.       style2.display = 「block」;6 r* T; t. L+ r
  44.     }  N. O* V7 I0 W
  45.   else if (document.all)
    ' D9 X$ w" A8 V2 t  A2 y
  46.     {
    / x. p7 c2 E6 ~' l8 f0 i% j
  47.       var style2 = document.all[whichLayer].style;
    0 X" d& }; f# W
  48.       style2.display = 「block」;8 _, q$ a6 ]8 ^7 w6 L
  49.     }
    " v" ^$ [+ o, g% y
  50.   else if (document.layers)
    0 n, K. A* f: a: T
  51.     {2 M2 S* G3 f4 ?/ Y1 ?
  52.       var style2 = document.layers[whichLayer].style;- b# [0 [, k: M9 W9 @' _1 h+ Q
  53.       style2.display = 「block」;
    & ]3 o* e' j; }+ c" ~
  54.     }* {- D( y* d5 a- N7 ^8 K# h
  55. }
    9 F7 }0 u* p' p4 d- p5 u) N
  56. // Hides and shows sections of the page based on whether or not it』s
    % I5 K: o6 S/ Q: c
  57. // running in IE) M3 X: S  Z; s7 v7 v  a
  58. function hasIE_hideAndShow()& x; m4 _  Y+ R$ E1 V+ G& k% m4 `
  59. {9 q( P' C; ~' _+ }) a+ j
  60.   if (hasIE_hasIE())
    0 z* |( G5 W; r  C+ O% ]
  61.   {
    " O* G0 j. M3 }1 U) B7 k! w
  62.     hasIE_showLayer(」hasIE_level1〞);
    ! H  e  K4 x2 B) X  y3 @8 `/ |
  63.   }/ m3 v, m3 Q+ U' F
  64.   else{}
    , [" W5 e$ b3 G0 K) `+ \
  65. }4 y' d7 ?! A) z/ B& }
  66. function hasIE_ContinueWithoutFF() {
    1 E; c; F' l# H4 i9 j* {
  67.     if (location.href.indexOf(』?') != -1)
    + V; k( |) Y  W1 k& o( x/ F  i
  68.         location.href += 『&seenIEPage=1′;
    0 ?- b2 W( e4 ?5 q
  69.     else
    3 a, Z$ z$ n9 d" ~: ]
  70.         location.href += 『?seenIEPage=1′;
    6 `7 W) L& n6 l" @
  71. }
    - X& }" b# G! l( M8 {
  72. function closediv(i) {
    . R. W4 `8 d% ~% O  D
  73. writeCookie(」status」,」showed24〞,240);
    2 {, }2 ]( e; V9 ?: ?
  74. document.getElementById(i).style.display=』none』;
    $ ~& w8 t1 j* i
  75. }9 e8 S' R' h$ S' {7 V1 e+ S( J1 @
  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>」); + i( j4 C8 ^9 E5 J1 }1 O
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)) Q5 {- s/ U5 P7 }
  78. {
    # V/ Q% D* F) }
  79. if(readCookie(」status」) != 「showed24〞)
    3 o; T5 u) j" a* p& B  F; p9 y
  80. {" M3 z6 t7 B$ t) b, D9 W
  81.   hasIE_hideAndShow();
    7 v. a5 u6 Q3 X" N9 p
  82. }
    8 l1 ^) ~, K$ I+ B" t6 v6 q' P
  83. }
    9 h, Y( K4 n) G- [. O) y
複製代碼
: ~3 }2 c8 Q! H5 X
- E& F0 A5 P; V) b( k  a% g
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>0 x& m+ c5 M& S  Y. M
" O( v* Q6 N' G2 O- Z9 K* ~
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar$ b' Y' g3 H! V7 I# y8 Y

& O) N. o! B% T5 u效果演示:
5 Q" o4 u% \$ }9 S! i3 ^, A
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上次開會不是說了嗎; m) n6 R& l9 a/ b* q
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-3-15 01:29

By DZ X3.5

小黑屋

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