过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
% u& ]' u, N# X' d( I( l
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
! M! j5 r/ S  Q6 W, m5 I7 w  ]0 y4 C1 }4 r7 x& _" d+ ^% ~: X6 a6 b: J
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
2 n/ D0 `# ]/ n) [8 I- c4 e: }( B點過以後就不會再出現了,除非客戶端刪除cookie。
+ |% w7 k! u# L2 M  s# A) C$ ~
4 h2 [! ]/ |- g) k9 s$ e
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., \' I/ j# K$ ]. ?# G

2 o; s4 I$ S% @4 ~以下是FIREFOX.JS的代碼
: P9 j  L" W' W' V$ r( |* g# P! Y# N# C; T+ a' _9 U9 J9 |. c
  1. " e6 t( e1 g; _" Q% Y
  2. // This function does the actual browser detection- g  }  P; J( r' }8 t( O% w
  3. function writeCookie(name, value, hours)
    2 p2 N1 w9 s  B: w) X1 P1 q
  4. {
    $ j: }9 f" C7 {8 B  s5 D
  5. var expire = 「」;
    7 M0 c1 }' Z; P  v9 N
  6. if(hours != null)
    # M2 F8 e6 V8 r" M% J- A4 X
  7. {8 s( [4 ~% r+ m& @- ]8 l
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    4 O5 U; b2 e4 V" m3 x
  9.   expire = 「; expires=」 + expire.toGMTString();- H% \! b; o, T" z( w
  10. }3 `" ?* @" H  c% B% R3 {
  11. document.cookie = name + 「=」 + escape(value) + expire;
    ; n1 w( c& Z+ H$ ]
  12. }
    ! [* P0 x% V5 G4 a% v+ y, F2 z
  13. // Example:4 C) B: J3 M1 }( H' l
  14. // alert( readCookie(」myCookie」) );
    # e! {' ~' g0 F/ c. P
  15. function readCookie(name)
    8 u% d* x& K; X( A& }7 m0 [% ^5 u1 J
  16. {
    1 G( c! ~6 `8 P8 r% }
  17. var cookieValue = 「」;
    9 d: Z0 Z8 C5 c/ W
  18. var search = name + 「=」;2 N9 G# C; T9 o
  19. if(document.cookie.length > 0)1 Z0 M7 ^1 d% V5 y
  20. {
    : u# f4 t3 I7 z2 ]0 d
  21.   offset = document.cookie.indexOf(search);  M/ R0 s& A1 \: E8 E1 F& C1 R
  22.   if (offset != -1)4 K% w; s9 |6 L: R1 C
  23.   {
    ( m- Y% P5 X. G
  24.    offset += search.length;
    ( {2 x4 |/ o/ X. T! Z% q  _, `
  25.    end = document.cookie.indexOf(」;」, offset);. K2 J- T7 D+ l) t1 a
  26.    if (end == -1) end = document.cookie.length;) [) V( v! _( T
  27.    cookieValue = unescape(document.cookie.substring(offset, end))8 |8 R9 {6 t( _+ n, _
  28.   }
    ' g# D2 o! y( v. C7 e! [8 C
  29. }  q8 Z. [$ j' _6 O9 F
  30. return cookieValue;
    # {( n8 G2 N2 X* k( J0 Y
  31. }
    ( p3 n7 z4 _% K4 c) {
  32. function hasIE_hasIE() {
    8 [& s; i* I) C
  33.   var ua = navigator.userAgent.toLowerCase();
    3 }' N9 X' t' n8 p; c% E2 c  v
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    . H, \9 H( v4 I* ?: P7 K
  35.           (ua.indexOf(』webtv』) == -1) &&4 O- a6 f5 d! A& P
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    4 v$ w; c- ]7 @  @( y
  37. }" h* L; f- h5 ~9 X6 R: Z
  38. function hasIE_showLayer(whichLayer)
    2 e9 t4 X# h: O0 p; D0 h6 l. p
  39. {
    $ v9 z8 `3 y* J1 G
  40.   if (document.getElementById)
    ! A5 G: i# Y, `0 V7 f2 r
  41.     {+ C$ e0 v; @. `) J) D
  42.       var style2 = document.getElementById(whichLayer).style;0 w  {$ ?+ Y8 s& n2 K9 S
  43.       style2.display = 「block」;: h! ~( x9 o9 P
  44.     }  k5 T5 o* n9 K7 K- f# o5 N( o
  45.   else if (document.all)9 L% a2 i- F9 }* ^' |, C
  46.     {
    ) G/ v, X& Q1 z$ h5 d1 K
  47.       var style2 = document.all[whichLayer].style;$ z! d0 p+ q- H* K0 `, N  G- o
  48.       style2.display = 「block」;
    8 C% U( o& y, N' |- l
  49.     }
    " B$ z5 P: G& }' X
  50.   else if (document.layers); H2 o5 O2 p# w+ V
  51.     {
    ; r' x& Y! \5 j' |3 Z% ?
  52.       var style2 = document.layers[whichLayer].style;. W# ?( |4 R: ?
  53.       style2.display = 「block」;
    ' U* X( q9 u7 r: e* {3 W7 d+ P
  54.     }
    + A' ]6 i9 z8 {' |. \0 g
  55. }! z0 z4 G" k6 z
  56. // Hides and shows sections of the page based on whether or not it』s  `, s& q' b. F  t. P; T
  57. // running in IE# R' r. X3 a* l4 ]; \
  58. function hasIE_hideAndShow()9 M3 h. H/ Y. x9 I8 j
  59. {3 ]- ]  q; c: B) a9 u
  60.   if (hasIE_hasIE())* h; y# j  W9 j6 j3 e9 r
  61.   {
    9 \; I- Q# i5 o
  62.     hasIE_showLayer(」hasIE_level1〞);
    . M, P+ c$ n6 G
  63.   }
    4 f: l+ c# ^7 V6 }& R0 E
  64.   else{}/ q1 @$ X! q  f# @* [
  65. }
    9 ~9 T- n- B; S" R) f7 q2 u
  66. function hasIE_ContinueWithoutFF() {
    $ Y" i+ ^/ j( d; G  v2 B- z
  67.     if (location.href.indexOf(』?') != -1)( `/ J# a$ B/ X! X
  68.         location.href += 『&seenIEPage=1′;
    4 }  s! E7 v8 Y! S
  69.     else/ ?4 }* h0 l* O; y1 ~+ w) x! v3 b
  70.         location.href += 『?seenIEPage=1′;
    + r. K! F, y5 B0 d1 M7 O
  71. }5 l9 _2 w* S  h3 H1 \% w- t/ g3 N
  72. function closediv(i) {
    + B& r, v! \7 X
  73. writeCookie(」status」,」showed24〞,240);
    : V% H" F' v, `) Q
  74. document.getElementById(i).style.display=』none』;
    6 I! ^: ]& F$ B$ v: i* E3 Z1 Q/ a7 w
  75. }
    & a. ^0 U/ m! s, X% A
  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>」); 7 r- \* b5 B8 H& P, b# l
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    ; i; ~3 O+ b9 v) d1 B+ y
  78. {
    5 B, U. V& c/ a$ v- ?5 P" u5 }. Q
  79. if(readCookie(」status」) != 「showed24〞); h8 U* G) A1 Y3 \. G8 K
  80. {
    + A1 v" c% A3 H- {
  81.   hasIE_hideAndShow();9 B, b# j' |) C) D% F: J
  82. }* r( l% B: r) O
  83. }
    ) p. z, X  m5 }- k2 @7 j0 \
複製代碼
0 P. x* M1 S1 q/ L
7 I6 x$ O3 f& s( @6 F+ }1 o
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>. ?2 n  E! A$ m- r5 n
9 A& R2 N) o  R. a) _7 }
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar& C3 T' E$ x6 d) [+ b7 |

- i" B  p2 {: K效果演示:& z( _5 n' n: l5 @4 P+ \9 w
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上次開會不是說了嗎8 n$ ^5 j" Z6 [  w9 j9 B2 C# a
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

过期高净值品牌域名预定抢注

點基

GMT+8, 2026-7-28 06:50

By DZ X3.5

小黑屋

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