过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:/ T6 l2 x/ W" y4 w% g' @( W( P
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
3 o& e3 Z3 w  C$ N0 B1 y* [! O2 s& M9 Z2 ?4 H- c: M
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。! p2 ^* d7 b. t$ \
點過以後就不會再出現了,除非客戶端刪除cookie。

  p. |" h. L6 W2 B& g. ?9 M; b* a
0 m- o" A0 @& ^. y4 IAfter 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.
$ w* s* C5 r. u4 d0 \: U$ ]1 P9 W; t. w$ v* n  P- d
以下是FIREFOX.JS的代碼
3 {* P3 S/ O2 A6 j" i6 z9 W9 V/ S. [* {0 {, c. t4 z% w+ `' u

  1. ) m9 N# @+ L5 i
  2. // This function does the actual browser detection
    ( |1 k: x) V9 Y3 m) G5 O
  3. function writeCookie(name, value, hours)
    - F$ t/ I' |6 ]% @: @- R# I
  4. {
    0 z3 i1 \8 y0 d. x
  5. var expire = 「」;
    , s$ j- `. C# m% @$ m+ N5 `
  6. if(hours != null)
    ; j5 |( r4 M. Z9 M/ Y
  7. {8 a4 ?; U! ]6 _% ^
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    ( F5 ^! Q' g% h( k) b7 A! }* _
  9.   expire = 「; expires=」 + expire.toGMTString();
    4 P0 l. p- }: ]% ~9 M3 T4 m
  10. }0 m' p6 v) }7 I9 m  R; V" n5 ~
  11. document.cookie = name + 「=」 + escape(value) + expire;
    * a) @7 r9 Y) f/ Z3 |3 H
  12. }
    0 Q# Q, s) R2 q! `
  13. // Example:, D+ N* |1 h1 g8 L$ y' q% a
  14. // alert( readCookie(」myCookie」) );
    7 Q$ h! S' q0 a# G0 l9 f
  15. function readCookie(name)
    2 I! y5 Y1 S& d: s3 E
  16. {
    / m2 k# X1 u* [$ d% K
  17. var cookieValue = 「」;2 E% G, _; Z2 Y$ n1 d) k9 U/ E
  18. var search = name + 「=」;$ ?" m  R; u0 Q- O, q
  19. if(document.cookie.length > 0)% R* o' L+ P" W( d$ D0 k6 u
  20. {
    0 ~& U  `  ]) ^! d: ~# A4 P
  21.   offset = document.cookie.indexOf(search);1 q" a" Q# U6 d+ q3 v( W+ K
  22.   if (offset != -1)
    ; c3 o% b+ o2 O: L/ y" ]
  23.   {) R$ o; A4 y$ D
  24.    offset += search.length;
      G" U4 q) P, b
  25.    end = document.cookie.indexOf(」;」, offset);
    2 h  O1 |/ t: [+ x
  26.    if (end == -1) end = document.cookie.length;
    % O, L+ ?9 \9 N8 N" ~
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    * L9 p, o6 P* v) q7 s- b
  28.   }
    9 {+ |/ R7 s0 X0 S1 i8 ]* P
  29. }
    & H/ y/ D: I$ p. m9 Z+ ]% _
  30. return cookieValue;2 `" u, p4 _! G: H$ @; A' I2 K, a
  31. }* R/ t+ S* n- {9 _. M! m4 n
  32. function hasIE_hasIE() {! O6 L6 t0 x6 ~; x( f" e7 z
  33.   var ua = navigator.userAgent.toLowerCase();/ v6 S8 U! ]9 Z/ C+ {
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    , `/ ]1 O# ~& O$ W% `" m5 v1 R* c* o
  35.           (ua.indexOf(』webtv』) == -1) &&4 M$ K" _( p+ O  \
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    + h9 |& k' v8 `8 Q5 H
  37. }
    ) m/ l8 C( S, S: p1 n7 R7 c
  38. function hasIE_showLayer(whichLayer)
    7 Q9 c/ n! u8 l9 c
  39. {
    & H3 P8 D6 r. W  r+ [8 H& x
  40.   if (document.getElementById)
    1 \7 V0 z8 J8 u
  41.     {
    0 c+ o4 c2 M& [  A, Z& H' l
  42.       var style2 = document.getElementById(whichLayer).style;/ p  }6 I$ g  i3 Z8 Z
  43.       style2.display = 「block」;
    ( u& I4 t9 H# X
  44.     }
    * V$ u8 n2 }  E  t
  45.   else if (document.all)
    ! x) @/ Z) D, ?  v# E
  46.     {, X! \; p  m) U: V. L5 F; O; {
  47.       var style2 = document.all[whichLayer].style;1 W: Q# ]2 J% w  J$ ~8 n4 B2 r
  48.       style2.display = 「block」;
    2 s* T0 ^. D3 z- Z: p1 n) ]
  49.     }
    3 C; n7 E/ I0 N3 _" p& z
  50.   else if (document.layers)
    * C' R. Z; I% o
  51.     {
    % R% l! b4 P/ X9 z2 m$ c
  52.       var style2 = document.layers[whichLayer].style;
    5 j4 g9 S4 D# |( x; d+ d
  53.       style2.display = 「block」;6 B/ s7 r1 J" ]  G, k
  54.     }
    ) U$ a. q4 q5 U. }
  55. }
    ; i4 E9 [8 S3 L# N: g
  56. // Hides and shows sections of the page based on whether or not it』s
      z* w/ }: j1 h% L( W2 A
  57. // running in IE# O# z' H) X5 e. j/ H
  58. function hasIE_hideAndShow()/ v1 F. u% w: S. N$ @$ p
  59. {2 |' |9 r. C# h) Q% V) e
  60.   if (hasIE_hasIE())
    7 c# g: h0 l" ]5 ?  L% r, e
  61.   {! I+ S7 h& P: s% W, S
  62.     hasIE_showLayer(」hasIE_level1〞); 3 g  q4 x9 g: }* `/ M
  63.   }. l; G+ {7 `, p# {; \
  64.   else{}
    2 B5 N2 V5 w  Y1 Y* o% R
  65. }; c  _# L* Z5 t0 }
  66. function hasIE_ContinueWithoutFF() {& g9 k& H( {" e# P* q
  67.     if (location.href.indexOf(』?') != -1)
    3 r/ W. E1 U0 e
  68.         location.href += 『&seenIEPage=1′;5 s5 N( n3 c0 n
  69.     else- d( ^3 I: e$ p
  70.         location.href += 『?seenIEPage=1′;1 t9 r. K0 @5 ~5 H2 e  \0 B
  71. }
    ' u7 J- M( x/ n0 G1 K. U, J
  72. function closediv(i) {9 u6 j3 i2 e/ b2 j4 r
  73. writeCookie(」status」,」showed24〞,240);
    9 q* b9 @- _/ a1 g3 u& B
  74. document.getElementById(i).style.display=』none』;
    . `( n8 L; ^! F
  75. }
    , _3 u- x/ g# S
  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>」);
    . G1 _2 I4 j% N9 }
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    5 \& X1 z8 M7 I1 i' [
  78. {
    1 V6 W' n- u; n( Z9 F. O; q
  79. if(readCookie(」status」) != 「showed24〞)
    ' q* b( ]' C2 A2 g: O- r
  80. {
    6 Z, m5 t9 y# y) ^: H: K
  81.   hasIE_hideAndShow();8 J8 w4 f( F7 `, p
  82. }
    ; G1 {: \. S3 T8 R+ x. ]
  83. }, i) b5 G+ i' n2 v
複製代碼
- D$ l" A/ h: q9 w' v0 v' s1 a

0 C  O1 A; B4 N在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
& O3 z) V& R; J+ g3 ~ / b1 O! E+ N) Y
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar7 }9 A, Y3 I9 B. {
: @' t9 E5 Z( Q% B% H4 }0 V! ?
效果演示:
5 |, N' N2 x' k/ @% Q' ~
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上次開會不是說了嗎$ `. \/ t) U! {
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2026-5-16 20:16

By DZ X3.5

小黑屋

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