过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
  @$ o6 I! \5 X7 c  |: I; _8 I, V: P( m
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
" N5 G0 [/ o$ h* u# F) v. `; l
1 _9 W* R' z- P打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
2 }# G% _/ z! W8 N! z* ]點過以後就不會再出現了,除非客戶端刪除cookie。
7 |2 Y5 z" |/ p4 z5 ^8 j& k
1 _( M6 m9 s+ G8 Y
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.
& z5 ^* b. R$ t' i( j) K; I- G; L' X7 d6 M$ @
以下是FIREFOX.JS的代碼
5 y) t( _6 @: y4 Z# e' P; u  h9 }7 t1 k* N4 L1 s) [7 a1 S5 f+ n
  1. % e( G( [9 b. g& {  I0 T0 d
  2. // This function does the actual browser detection
    7 k+ q; Y" i0 h
  3. function writeCookie(name, value, hours)
    " C; j/ T" ~- }5 k+ [  I5 O& c
  4. {. U9 P0 {) @% k* T% m
  5. var expire = 「」;
    & m  v7 i- I  m' g
  6. if(hours != null)
    6 G' c  Q# z2 @1 {7 y7 B
  7. {, }; o& c/ e. h% ~
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    9 `( G# k8 ~/ M' F, a
  9.   expire = 「; expires=」 + expire.toGMTString();& j+ Z7 h: Z: f) @9 `
  10. }: j( g5 y( p+ X, R# d
  11. document.cookie = name + 「=」 + escape(value) + expire;; y  s% s( ]) R6 _
  12. }, J8 U6 P: p1 T2 R5 f0 x
  13. // Example:; g. H$ p1 t0 C0 A
  14. // alert( readCookie(」myCookie」) );+ V% n) N. T5 Y0 w1 j
  15. function readCookie(name), J! C& v2 s: r3 d7 B$ y0 L
  16. {
    9 F. J/ o* s5 p$ ~/ i
  17. var cookieValue = 「」;
    6 [, l" f6 x$ u
  18. var search = name + 「=」;* j8 ?3 K5 T. x2 Y0 X
  19. if(document.cookie.length > 0); d1 D! G% F- n1 ]6 H( v' M' h# K" q8 w
  20. {/ I$ w) O) L  ]; s+ ]; T
  21.   offset = document.cookie.indexOf(search);( S: ~" P9 I/ I1 K7 z; m& s6 ]8 [1 ^: [7 ^
  22.   if (offset != -1)2 H. Q' B7 \8 j% d# D4 s
  23.   {/ [0 w" Y3 S# F
  24.    offset += search.length;! y6 S. L' x( J, f7 g4 m
  25.    end = document.cookie.indexOf(」;」, offset);
    1 e) `9 w# e3 a1 c* ~8 A4 c, k# q% \8 K+ t
  26.    if (end == -1) end = document.cookie.length;+ I: [1 G8 r1 {
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    & Y0 f9 ]0 l* Y$ t2 V' y% J( P' U
  28.   }
    ; [* a& U- U- `8 N( p; W
  29. }
    # X2 m! O& t% I; V* g+ z
  30. return cookieValue;. D% |/ V! s: p* N# W) V* a, L
  31. }) i5 _% c6 C" a( `( ?) d
  32. function hasIE_hasIE() {* Y( `0 ]7 j8 A: c; ~1 z# M
  33.   var ua = navigator.userAgent.toLowerCase();) W1 n$ l8 \% c% [, P: j! c- G
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&* ]! o: H/ f8 d1 B" V5 \
  35.           (ua.indexOf(』webtv』) == -1) &&
    3 L  U1 t% H- s  N. j
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    ; p8 q5 f; p" H% @
  37. }
    2 C* o0 M$ ^: r7 T- n4 c' ~
  38. function hasIE_showLayer(whichLayer). l, I! Y8 ]- N0 ?& D
  39. {
    - i# l7 M" W: G* l, H1 n3 _3 O; B
  40.   if (document.getElementById)# F* B7 a" f0 w; Y' w! A
  41.     {7 z0 ~& H/ U& h: w" a) @
  42.       var style2 = document.getElementById(whichLayer).style;
    & ~) Z4 K8 Z1 ^! f! V- {1 z
  43.       style2.display = 「block」;* |% ?2 s% q5 q: X$ F% `4 D1 o& R
  44.     }6 B, W- B" }2 }- u2 g) \
  45.   else if (document.all)
    9 T  [$ A5 w7 k0 i1 {
  46.     {+ `. A+ P9 I1 J; E0 ]' t
  47.       var style2 = document.all[whichLayer].style;
    8 r  n9 i6 @4 B5 y% n
  48.       style2.display = 「block」;( w' b" \7 j% ^* S* u
  49.     }& Y) z# }/ \$ W# F& M5 K
  50.   else if (document.layers)4 @+ I* t6 C) H
  51.     {
    ) S+ G' U* u* M
  52.       var style2 = document.layers[whichLayer].style;
    6 i# [% l$ Q; G3 y
  53.       style2.display = 「block」;+ \. c; g& I; h  E2 S( d* ?
  54.     }
    ! L" M. F- z# f4 K
  55. }! w& E9 _( h& ]$ v) L- {" A
  56. // Hides and shows sections of the page based on whether or not it』s
    2 E+ o9 J; F* j% A. c' R- S: h
  57. // running in IE0 A, s  ~( v6 E1 J
  58. function hasIE_hideAndShow()  l0 T4 v( P* I+ ~, }
  59. {' z$ \5 F8 W- ^2 m
  60.   if (hasIE_hasIE())
    0 _. i( g  n2 z1 V! q. Z4 o6 ~7 y8 q7 ?
  61.   {
    7 z5 G4 ^- V  I8 s6 u* m) |( x
  62.     hasIE_showLayer(」hasIE_level1〞);
    3 V/ @0 m. X) a# a: R% S; ~: B
  63.   }
    2 V2 @( i/ q8 w* B# @
  64.   else{}8 m8 Z: }* V' E, B2 b; ^  Q3 D
  65. }
    & F, a" e2 @( g' A
  66. function hasIE_ContinueWithoutFF() {/ U, p7 H6 K* e8 F
  67.     if (location.href.indexOf(』?') != -1)! ^7 @0 ^6 N. {, S% S
  68.         location.href += 『&seenIEPage=1′;8 i2 }$ H$ `6 O" y: Y) h
  69.     else9 ]- S5 k* |  e! Y$ P
  70.         location.href += 『?seenIEPage=1′;
    $ t, _9 E$ S) \0 ]
  71. }3 J3 e0 j" ^6 t, W* i$ {
  72. function closediv(i) {
    ; ?, k; Q$ P+ i0 {9 w' l& l. [
  73. writeCookie(」status」,」showed24〞,240);" _1 v8 v2 s7 o% z
  74. document.getElementById(i).style.display=』none』;
    5 o$ }, Z6 @( k( D) L
  75. }
    ) K, k+ o3 d) r8 h
  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>」);
      F% J. C8 [$ [! z( B) f+ U
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    ) C. s. B# `* x$ M; p7 @
  78. {1 Z8 _8 Y$ K0 l
  79. if(readCookie(」status」) != 「showed24〞)
    0 o1 L/ |" I) m8 \$ p8 Z
  80. {3 j" l; L5 [; F9 P" _% T) `
  81.   hasIE_hideAndShow();* _  k) \2 _9 \- _8 {! C  A, n
  82. }% _, ~) \& H% W! A% m
  83. }' L. L" y" I1 k0 K0 W* l  Q
複製代碼

/ Z/ J8 Y* r3 K# Z4 k1 a! K& K
/ c7 g3 D3 B" v2 Z. @( Q& @8 |" V在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
/ K; e/ M0 b% v$ U1 S1 I, j4 s1 S
& P+ Z6 z0 Z6 H& g0 rPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar! @  C! y& Q7 z: m8 T5 `) t% m

/ o6 H7 r( k- m效果演示:
, b' f; R* W8 v1 \- g. S
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上次開會不是說了嗎1 m; P6 [" t8 H, Q+ q6 K7 x
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-8-11 07:05

By DZ X3.5

小黑屋

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