过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
6 B% B6 A" ~" w" Q2 e# r
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
2 b  [$ l! \/ k( f5 o
8 j& B( }# ]; n) f9 n- z& V打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。7 P6 R& ?$ a/ w5 m" _7 o% a
點過以後就不會再出現了,除非客戶端刪除cookie。
  g* }$ m- I7 ?
$ S  G4 x/ b; f9 ?- N  L5 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.& |7 e4 k: C; s% m2 @- R

6 \1 W8 z% p" B# V. {# s. w以下是FIREFOX.JS的代碼
; d9 I6 E. e* K
' G# V- g0 D: W( a% I9 O

  1. 6 w4 G2 S2 i  l5 n$ m4 f
  2. // This function does the actual browser detection3 {2 C  r3 `; ^6 M8 T! i/ w8 D( v( g5 ~
  3. function writeCookie(name, value, hours), ~/ c. `7 {& m2 y
  4. {
    / ~, G7 }. W% p/ W8 x' R& C
  5. var expire = 「」;
    9 X) X& Q$ e) b3 Z2 E
  6. if(hours != null)
    8 N& [/ ~- b& w$ b8 v
  7. {
    + K* U- {1 `/ z+ p
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    6 @6 P* }7 y4 K9 z  _) b7 g* U7 Y
  9.   expire = 「; expires=」 + expire.toGMTString();
    7 c& Y% Q/ D1 T% b; u* N3 \
  10. }9 e2 F% i3 [7 v
  11. document.cookie = name + 「=」 + escape(value) + expire;8 G/ g1 i1 i3 F4 r
  12. }
    8 f# [( J& |* ~7 f$ o: ^
  13. // Example:4 f) D! r) N3 a- x- o, _5 w$ B
  14. // alert( readCookie(」myCookie」) );. |( M2 Z% G3 ~3 s' y  ?
  15. function readCookie(name)+ [$ P9 \/ B$ R. z& [3 ]; `
  16. {$ s& ]0 b$ Z9 z9 D" `: `0 f% t+ x
  17. var cookieValue = 「」;
    7 b5 N( {0 t+ i
  18. var search = name + 「=」;0 k( Q. {: {. d& z% l9 p
  19. if(document.cookie.length > 0)
    " O( r5 f6 H5 c$ P4 ?/ M
  20. {9 K* c) C$ J8 W5 u7 l9 a
  21.   offset = document.cookie.indexOf(search);
    - ~1 t! o0 ~( _# G! h" B3 X6 J
  22.   if (offset != -1)
      o: N( J' b" [% p, \, \
  23.   {
    , U+ |- e+ m  Z7 b$ D
  24.    offset += search.length;3 Z9 F+ M2 P$ @6 A* V2 P, m
  25.    end = document.cookie.indexOf(」;」, offset);/ i: Z( q& C6 g/ \: ~( a' d; D
  26.    if (end == -1) end = document.cookie.length;
    1 s& G. }7 u7 m  g
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    - _+ W( d6 I8 t9 h9 e2 g
  28.   }1 P$ K0 j+ O: Q* M! m; d' X
  29. }) G/ G' O$ W- p0 n1 R" z
  30. return cookieValue;
    ) X- p2 G1 i8 z+ O4 a
  31. }) S+ ?/ N) d7 O
  32. function hasIE_hasIE() {
    + Q6 S2 ?- o2 U  H- {3 S3 ^
  33.   var ua = navigator.userAgent.toLowerCase();
    , S9 B; X. W+ {& L: j
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    4 {, k2 L( U$ o* D# ^
  35.           (ua.indexOf(』webtv』) == -1) &&
    # O# T' e# r( K7 f% y1 g
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    1 a. B5 V% |+ C( J, C6 i% L# ]
  37. }
      d0 Q2 ^) J8 Z
  38. function hasIE_showLayer(whichLayer)1 H( j& b$ A! {. h' j2 V& \
  39. {
    5 }5 w& J: Y- T6 p$ N" z- e; _
  40.   if (document.getElementById)
    % O6 X: `) u$ ?8 r
  41.     {
    . E  M* L/ P! ~: y  O
  42.       var style2 = document.getElementById(whichLayer).style;
    ; M" b6 N0 j( Z
  43.       style2.display = 「block」;/ i  k' N9 S# J
  44.     }
    " M3 B, A1 V$ x! {& u+ G- E
  45.   else if (document.all)% ^! M8 d! [) I" n
  46.     {; n; p" C' g3 n- n  Z, y& w9 o
  47.       var style2 = document.all[whichLayer].style;
    0 P$ `* i& F1 x5 ^
  48.       style2.display = 「block」;! X9 N6 j5 H) R$ Z
  49.     }, u0 ^7 \/ E( t* L8 x% O# y
  50.   else if (document.layers)
    ! I4 o5 q3 Y& W
  51.     {
    % D5 `1 |/ b& O9 |' [
  52.       var style2 = document.layers[whichLayer].style;
    1 E& K7 A6 J& r1 u
  53.       style2.display = 「block」;
    , w" y5 }& F2 G: @/ U# V
  54.     }
    . ~/ C* O$ m5 Q
  55. }8 x$ f4 F5 D; m& @) a
  56. // Hides and shows sections of the page based on whether or not it』s
    * Y' `+ X% S0 w4 ^: H+ R+ S: ^0 \0 g! H
  57. // running in IE% J' \8 ^: H6 _
  58. function hasIE_hideAndShow()
    - h9 o( i1 n. D% f# T
  59. {
    * G; h: L5 b( ~$ e6 g# u
  60.   if (hasIE_hasIE()); |2 w, O. X( r8 l- S
  61.   {
    * T/ V+ o# ^- ?, v
  62.     hasIE_showLayer(」hasIE_level1〞); + {- M, K5 h: \
  63.   }
    1 K& ]- H$ G8 W# e6 S+ U* e) w
  64.   else{}
    3 A1 `, \& A% q; y% u- I2 c
  65. }
    * y% p5 N) h, e* D9 ?* x1 G- \" P
  66. function hasIE_ContinueWithoutFF() {
    * t8 p: v1 A/ S' u& W
  67.     if (location.href.indexOf(』?') != -1)
    2 I1 f% _( E6 _/ K: n# v" @
  68.         location.href += 『&seenIEPage=1′;  k8 @* [, E$ |# ^7 N" t
  69.     else4 e7 A' G' W! v: i
  70.         location.href += 『?seenIEPage=1′;! R  A: P' ^' v2 F' Y. m
  71. }
    2 Q' [7 R, K8 R- G2 u
  72. function closediv(i) {
    * E* q5 U' I% o, e
  73. writeCookie(」status」,」showed24〞,240);
    / C( ^0 w, r& r5 J; ?' a3 H
  74. document.getElementById(i).style.display=』none』;
    5 F% D9 @' a3 t
  75. }
    & g0 @4 t- Z+ R
  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>」);
    , \0 n% e. m4 @1 Q
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    6 X7 ?- i. c  z# |: C
  78. {
    ! z1 X+ y: `, j9 q, A$ K" R
  79. if(readCookie(」status」) != 「showed24〞)1 S3 X/ |/ V# r7 i! ]' A
  80. {
    " }% j7 B1 a' i+ h2 a" Q; D5 f% P
  81.   hasIE_hideAndShow();' K; E( r( J! h& R6 P' v
  82. }0 `8 Z* R$ |( G- k
  83. }9 L8 }/ {3 q! [$ \* m# p
複製代碼

: \3 k( S! U* e8 \- X; _% `7 b' j+ ~0 r6 T0 }
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
: q7 X3 c) ]/ [* O
& e4 Q5 ]* Y+ J. X- N6 V/ C; W$ XPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar/ I( z8 n/ v, T1 K4 d# y- q

5 T# W; g# M" ~$ W  d0 d7 R, D# f效果演示:
/ y$ y  y. Z/ y2 |6 H$ d
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上次開會不是說了嗎* w( x+ k; z! }5 n8 _. K2 o2 }+ C
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-5-16 19:31

By DZ X3.5

小黑屋

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