过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:& r6 O# c+ B6 I
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!* G8 W0 J6 B9 L$ I
2 O  }6 ?7 B) V6 F
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
# [# [: ]4 w9 R) o6 c# U點過以後就不會再出現了,除非客戶端刪除cookie。
3 w' }# w/ ?  n, O3 ~; z) X- k
5 F3 b8 J: K8 m( \0 ?- _
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.
4 O. _4 \+ |7 o% j4 y
5 H% \$ l* K( O以下是FIREFOX.JS的代碼
$ V) T$ \8 Z' o% v! Z1 a; |
0 f6 p& ^  F7 [" R# ~6 @
  1. 0 Q2 h1 b9 f( d
  2. // This function does the actual browser detection( N/ w' r: ]1 p" Z' R) ?5 J) _. g3 E
  3. function writeCookie(name, value, hours)
    0 S( P- q' A! T
  4. {  o7 _$ L- p% r1 d+ D9 F5 {& {
  5. var expire = 「」;
    % j/ R& W2 O9 @" y/ X7 N6 E
  6. if(hours != null)% k& w9 o) U( F* P. B* v* L
  7. {
    - I1 U" y& ]% o  n. [
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    # V! r6 S* K( r+ h7 {& N) T
  9.   expire = 「; expires=」 + expire.toGMTString();
    ' {: h. t0 }- X, e" g0 |
  10. }
    % x  g6 L; O; ^. i1 E/ t
  11. document.cookie = name + 「=」 + escape(value) + expire;0 }' ^2 H  \7 y8 z9 _8 Q0 p: u/ Y
  12. }0 K0 @# s) i, u, o/ Y8 }' T
  13. // Example:
    & h( q, s; _6 @/ v/ q9 m
  14. // alert( readCookie(」myCookie」) );. _! E* y" i' P
  15. function readCookie(name)
    & n3 l, Y7 z/ W: `
  16. {
    - E7 h5 p7 V$ e9 ?5 X3 G# Z6 E6 ~
  17. var cookieValue = 「」;6 O  K1 B$ f! _4 w9 A
  18. var search = name + 「=」;
    4 I  ^' D8 y' X# z
  19. if(document.cookie.length > 0)% C! e8 I  F1 U& @; Z' Z6 E
  20. {  w( w- H7 g) C
  21.   offset = document.cookie.indexOf(search);6 K: y! X4 K! a& w* _
  22.   if (offset != -1)
    $ @' f1 p/ c/ n; S# B
  23.   {
    ; M& q, z1 b' G
  24.    offset += search.length;/ p2 d7 e3 N9 l1 P
  25.    end = document.cookie.indexOf(」;」, offset);
    % c8 K# M, s! ?6 x+ ?  z% J
  26.    if (end == -1) end = document.cookie.length;$ j, K4 x6 _7 `; v! J/ w
  27.    cookieValue = unescape(document.cookie.substring(offset, end))) V( W2 S  ]  w
  28.   }
    7 e$ j. F  v. e7 i
  29. }
    $ q( n; V- v! u0 y; P4 U  y: o
  30. return cookieValue;2 I) F' b- S' P! }% L
  31. }
    ) [2 z2 O9 l8 D
  32. function hasIE_hasIE() {
    . X$ b) c  Y* N4 ~& T
  33.   var ua = navigator.userAgent.toLowerCase();: Q, w) p% n" ^# P
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&$ L# T+ ~- ?; U/ f" v* b
  35.           (ua.indexOf(』webtv』) == -1) &&  y/ c; u* j8 Y% n
  36.           (location.href.indexOf(』seenIEPage』) == -1));" b7 M( k" G; R( m4 Z% F7 t! J
  37. }
    ; H  N0 v! m. S+ ]# u6 i
  38. function hasIE_showLayer(whichLayer): O1 C9 g: a/ t8 D0 V" l4 T
  39. {
      _1 b) D$ |& z1 u
  40.   if (document.getElementById)
      u2 f' z) n  o9 G5 ~" @& @
  41.     {
    * Z- r  S( A' k; S& g5 e
  42.       var style2 = document.getElementById(whichLayer).style;
    ) |4 Y" z+ m- T+ W/ h
  43.       style2.display = 「block」;
    ) t7 x+ V8 g8 }" W3 c
  44.     }
    : g% D# c7 Q' K4 I
  45.   else if (document.all)! ?  ?* n" l; o2 X4 h: ]7 |
  46.     {5 }1 {; d0 v% g( Z! Q! L
  47.       var style2 = document.all[whichLayer].style;! Y" R; y: n$ M' i, N2 @0 i
  48.       style2.display = 「block」;
    $ I3 n8 |  a% m  \; \! z4 b
  49.     }8 i# M3 D3 Q9 Q
  50.   else if (document.layers)- m% r5 V7 m3 g) c' c
  51.     {* H/ ?% y% U2 ^0 u
  52.       var style2 = document.layers[whichLayer].style;0 b5 h: ~4 b1 ~8 ?  G* U
  53.       style2.display = 「block」;
    8 c8 R' S. t3 }5 @
  54.     }
    / e9 A! Q7 X! P. v! ^: `% K
  55. }; ?6 i  b2 ^+ _4 A! j7 `: ^; y. O. u5 W
  56. // Hides and shows sections of the page based on whether or not it』s. A# ^: R) P  G" T/ x6 l
  57. // running in IE
    1 t1 l/ V8 H) U# X, F1 q
  58. function hasIE_hideAndShow()
    & a* k+ {( P8 L9 E4 C: G
  59. {
      `; X1 C- n+ W9 N3 |. T" s
  60.   if (hasIE_hasIE())
    " t' E% \9 g0 Y
  61.   {
    $ W) j. R# J1 N4 {" p5 a% p8 B
  62.     hasIE_showLayer(」hasIE_level1〞);
    % U% w$ a) I7 m0 i
  63.   }6 c: b% N# y9 Z: ]! w$ q
  64.   else{}. D4 E  S4 _2 v; w5 h4 w' Z
  65. }
    1 F8 p# X" G9 {
  66. function hasIE_ContinueWithoutFF() {0 H8 ]1 J$ b/ O1 D  U- A3 B$ ^
  67.     if (location.href.indexOf(』?') != -1)
      I5 Z" w/ ~: m7 a1 Q
  68.         location.href += 『&seenIEPage=1′;
    " B7 C! [% ~8 n
  69.     else7 I  n& q& `/ N7 P
  70.         location.href += 『?seenIEPage=1′;# b, H& W* q+ s( O, l/ q
  71. }) K4 Z; Y! A0 G  K1 [! b
  72. function closediv(i) {+ Y" k& k* ]7 y+ c: X* Q2 ]& v
  73. writeCookie(」status」,」showed24〞,240);
    2 A- O+ Q" t8 U7 U
  74. document.getElementById(i).style.display=』none』;0 `5 M# q5 C/ J9 z
  75. }
    5 m6 S2 z% F3 Z. e, n' m* s( e! F) 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>」);
    6 _' Z- `4 r+ Z- n0 K8 v
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1). c0 ^1 T! O9 ~  o6 L: c6 O
  78. {" }) k2 R. v- O5 f! B
  79. if(readCookie(」status」) != 「showed24〞)
    - t2 x  H2 ~$ o1 b
  80. {! t  H8 `$ y1 Q5 F5 ^( q
  81.   hasIE_hideAndShow();6 t9 n$ x# U  r# Q/ ^
  82. }1 C0 y8 h. ?& w
  83. }
    - q! F$ g+ D/ r( C# ?( O. p8 Z2 B
複製代碼

4 l- F  \5 d. p, Y* T" K! |8 }/ |: ?- L2 b; u" E
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
$ V) O1 w% W) G+ v5 x( M8 l5 I/ w1 C , Y, P9 |8 J* ~+ Q% Q0 z
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
( y4 }9 y7 f; Q+ p# f. I( J7 ]9 I
& f0 G1 B; P8 B, i: H' f1 X效果演示:/ U# E7 M* h. J' h
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上次開會不是說了嗎9 z% W( l# I& ]6 p
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2026-10-20 11:16

By DZ X3.5

小黑屋

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