过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
) D; ?, z, u  x1 y" o$ m3 ?
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
& [6 B% M! i: G4 M, J( c+ ?- C( Q  m
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。2 s# @  T) I& h
點過以後就不會再出現了,除非客戶端刪除cookie。
% _* B& v- j2 |3 ?0 ?
* T+ q* @2 U6 v6 ]5 U' s
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.
; Y; z* R+ k2 K/ y+ z# `
, s* a; Z4 B$ z5 I. R# y" a以下是FIREFOX.JS的代碼
! o9 o7 ^6 i1 q0 s
6 M0 D9 I- U, T" R( U

  1. , y5 R& O/ Z7 G! ?: k' Q9 c! o
  2. // This function does the actual browser detection6 N  [& ~9 x: y7 U
  3. function writeCookie(name, value, hours)- C/ M' b! ~( O$ J# z* R8 F5 u$ ^
  4. {
    ! S0 q- |) N; U) F1 r, p) T
  5. var expire = 「」;
    8 P! }$ W: o* I* q& R, s4 t. y
  6. if(hours != null)
    8 t0 Z( c& n" U, t
  7. {' j3 y9 P0 q) T0 _. _
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    ; J2 C" F2 d4 ?6 |6 n
  9.   expire = 「; expires=」 + expire.toGMTString();
    8 ~5 ^8 m# b/ l, r6 z
  10. }# e' @8 u* N+ ]& Z
  11. document.cookie = name + 「=」 + escape(value) + expire;8 y3 Q, f7 W- U% N( J* w/ Y; t
  12. }
    + Y& W1 K7 b& X6 y; F" J4 |) q
  13. // Example:- C/ ]+ R8 s; G  y1 W
  14. // alert( readCookie(」myCookie」) );2 r$ }  f, }5 }, Q$ P4 o$ a& k
  15. function readCookie(name)
    % C+ k6 W$ T! N. q, c- y
  16. {0 R9 [$ q9 C) v
  17. var cookieValue = 「」;
    9 k& e+ K8 s  K" F$ M+ Q0 s
  18. var search = name + 「=」;
    6 o( B8 D$ E: e& ^- y
  19. if(document.cookie.length > 0)8 q& I& J& I4 y/ {
  20. {4 `) g; e7 G# W6 ~9 z
  21.   offset = document.cookie.indexOf(search);7 z& W+ ]& [% S$ G1 e6 J
  22.   if (offset != -1)
    " t; y/ m% Q" i
  23.   {! T: g% ^" ^7 [* l+ L
  24.    offset += search.length;
    + c6 B9 X& r+ T, a2 I) l1 T7 Z0 @
  25.    end = document.cookie.indexOf(」;」, offset);
    9 R8 y% Y; f( h
  26.    if (end == -1) end = document.cookie.length;' I! y# T6 l& d5 k
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    # w* \5 L4 E. a5 D) V& L
  28.   }6 e' z( m0 v  W- N2 ?1 a2 {* h
  29. }
      w& {- _9 D; ^! M9 L5 e# j9 @8 v
  30. return cookieValue;
    # s/ L! M! m, j3 S( I; A
  31. }1 P1 b6 e& O9 M
  32. function hasIE_hasIE() {. Q6 D! }) O* c* ^3 v* |4 v! k1 o9 u
  33.   var ua = navigator.userAgent.toLowerCase();
    8 F& c3 t  w9 }# b( A/ l
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    3 _! T2 n7 a% q' c+ p( v
  35.           (ua.indexOf(』webtv』) == -1) &&1 b5 c5 r9 G+ @1 O: C
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    5 r! O& W% {% [( I
  37. }8 A, Q& L$ n* w( E- o& Q$ u% x
  38. function hasIE_showLayer(whichLayer)
    : L3 X4 R- B5 g: f: C' i- f& g
  39. {
    4 x& Q1 l$ J; e+ U7 C
  40.   if (document.getElementById)
    - z3 I% F$ N1 ]$ y* p
  41.     {8 X- n  k3 w2 x, b. D4 M3 p
  42.       var style2 = document.getElementById(whichLayer).style;( f1 B5 [9 S( d# C
  43.       style2.display = 「block」;+ n. S8 R  M0 F# u: z
  44.     }' x# D9 p% s+ k8 M: U
  45.   else if (document.all)  B) Y2 i$ v! }8 ^) d0 w8 D
  46.     {* R9 v" m; |0 W0 a# e4 T8 A; i
  47.       var style2 = document.all[whichLayer].style;8 ~; q  A4 C% m. y/ }
  48.       style2.display = 「block」;, l/ _4 U) U, y- T
  49.     }
    + m. M1 `) z" l) j% a) J; K! Q4 C
  50.   else if (document.layers)7 V4 ]4 `7 l/ d. K" R! }
  51.     {) D8 Q  T% H( N+ q6 S9 J
  52.       var style2 = document.layers[whichLayer].style;0 j+ Z5 }2 s1 Q" c- W
  53.       style2.display = 「block」;7 g  W( v) F. G4 s& h$ X
  54.     }
    ; a8 `  t2 ]! M6 e
  55. }
    6 k" C& f+ i9 i6 m" q
  56. // Hides and shows sections of the page based on whether or not it』s6 z4 ?/ P8 o7 ~- l
  57. // running in IE
    ' a3 b9 l5 ^6 D" j9 v8 |1 S# `
  58. function hasIE_hideAndShow()8 \2 M7 C. E' B8 \- ]# U# u5 B
  59. {
    4 d. ~& a% E# b3 X- P
  60.   if (hasIE_hasIE())& L3 J+ L' w: r
  61.   {
    ' F5 h4 Y% I" i% z, L0 X$ D
  62.     hasIE_showLayer(」hasIE_level1〞);
    + c" E- `/ x% T9 K
  63.   }
    9 z4 B( o+ Q9 F1 L9 A; z3 }& [
  64.   else{}
    / _  C/ B& j2 Y% H- a" g) g
  65. }
    , t3 ]" \' F9 [. n+ M0 n
  66. function hasIE_ContinueWithoutFF() {
    % t# L5 [- z  [# z2 p2 C
  67.     if (location.href.indexOf(』?') != -1). g  y* J0 e  ^8 ^  P) ^
  68.         location.href += 『&seenIEPage=1′;9 b9 E) D: l* x* A4 e2 M% p
  69.     else  M3 ?7 R6 a9 ~9 d' s0 ?
  70.         location.href += 『?seenIEPage=1′;, i6 \' }* c; |
  71. }& \) t+ _) R7 t
  72. function closediv(i) {
    ( {' ?* v- P5 T2 @2 W$ _
  73. writeCookie(」status」,」showed24〞,240);6 Q' U  w% l& I& i, F8 H6 n' h
  74. document.getElementById(i).style.display=』none』;/ n0 }  ]. Q7 v8 k+ |
  75. }7 ^$ ~5 y6 c) [2 z
  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>」);
    * `: l$ ?2 k' @/ Q- h  S1 D* J# B) i
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    3 M. t$ @; ]* b' M4 q# t
  78. {
    ; ^2 X; h6 J0 [9 L
  79. if(readCookie(」status」) != 「showed24〞)+ f- b7 K# s* x; X7 d
  80. {
    3 G6 ^% E5 L& C+ q/ O: Z* E( m
  81.   hasIE_hideAndShow();
    & F" k7 d4 Z9 }5 @. K6 W
  82. }
    , L/ h! Q* M# _, i
  83. }9 }2 a1 W3 I: _$ w; v! ~3 J
複製代碼

, ]4 w; X- Y+ G# w7 K% Y: ?1 v" ]
0 T2 I( N/ S9 I1 p在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>2 r9 s4 s" b/ i# P: Q8 L3 t+ r
1 n" k) Q2 q( q  G
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
9 W: A9 v; X9 H
1 {9 K3 r; C2 r% j' ^效果演示:
* M! I% g4 T3 ~7 z% C
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上次開會不是說了嗎
% ?, V/ t) t8 b; i, ]- \會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

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

By DZ X3.5

小黑屋

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