过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:5 m" s; }: R4 G3 a8 j
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!' `" c# J# |7 ~7 }' t* @% e4 G

) v0 `1 d2 F9 V& g3 Z/ d# s" b打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
0 U0 l+ W$ \" V1 C6 H- s點過以後就不會再出現了,除非客戶端刪除cookie。
6 E7 H& E$ `, J

$ ~' f( f" P% I" k: V4 P3 ^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.
$ }1 q9 l" Z* {/ j' i4 I- f9 u* j) p+ u1 M( c6 n* [
以下是FIREFOX.JS的代碼6 x' ?4 f: K! w* G: I5 T; T* A

2 y7 f, R" @& y

  1. 7 Z/ C2 q& Y3 d) w( e
  2. // This function does the actual browser detection( `/ m+ x/ Q' L' D
  3. function writeCookie(name, value, hours)
    # |" V# h2 X& j; g4 u3 x  y" G4 F, D
  4. {
    * P3 E1 j% x  \$ l) C
  5. var expire = 「」;
    0 G- J8 C, b+ l0 N1 h
  6. if(hours != null)7 ^5 N8 P0 n) O& o
  7. {; j6 k5 w1 N7 ^0 \! k3 H
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);  f! Q5 o2 R6 l+ }
  9.   expire = 「; expires=」 + expire.toGMTString();/ u' e2 `8 O8 h8 J
  10. }' B. _/ T7 R* k  x6 l$ Y
  11. document.cookie = name + 「=」 + escape(value) + expire;7 v9 Z5 f0 M- o4 C6 `' m" m
  12. }
    3 n: Z  T) d/ t* n$ I& O6 W3 y2 |
  13. // Example:
    % A( p: Q1 p$ T4 }
  14. // alert( readCookie(」myCookie」) );
    + x) ]2 _' |5 q- ^4 m0 [, q
  15. function readCookie(name)
    3 I2 i! k- Y! f0 g. R4 C
  16. {
    : b, S7 Q5 G, H6 ?; i
  17. var cookieValue = 「」;
    * m$ s* ~8 C2 k3 f8 R
  18. var search = name + 「=」;
    3 Q; H5 j- W7 K# F0 }, E
  19. if(document.cookie.length > 0)$ V; Z1 y( L$ Z# g3 u
  20. {* h: B& B/ i. M. C
  21.   offset = document.cookie.indexOf(search);- J+ z: S+ R3 u/ w% c5 }" ?% r# t- c
  22.   if (offset != -1)* G5 d) ~# k/ j$ b. _! [% D
  23.   {$ B$ T! N; R6 \/ i) `1 k
  24.    offset += search.length;4 D0 c2 k& ^8 s/ A# `4 L4 m2 Y' Z
  25.    end = document.cookie.indexOf(」;」, offset);% {- U& g( u) c$ x8 _
  26.    if (end == -1) end = document.cookie.length;
    . N. }* D$ Q7 S/ h7 ]
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    4 u- U0 J! h3 a- W9 R
  28.   }  s9 l! Z- e7 V  S2 n, w
  29. }
    0 i& F  {' P+ c' b$ |' o
  30. return cookieValue;4 x: z; m' r* z6 \
  31. }
    ) l  ^( w; ~" X' a8 M* \
  32. function hasIE_hasIE() {
    4 o% X( O' f1 c' W
  33.   var ua = navigator.userAgent.toLowerCase();
    % e5 K, v. ?3 j& V
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&5 m* c# F( c! Q9 p: r
  35.           (ua.indexOf(』webtv』) == -1) &&4 _+ v' M% U( R3 d) M( ~  Q
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    * |% L/ ~/ ]0 }$ M, o
  37. }9 M& u# M! b9 p9 P4 p0 Y9 X
  38. function hasIE_showLayer(whichLayer)
    , b" L% Q: X- e8 Y$ w# o( R/ [
  39. {0 W9 ?( d' L& |- P
  40.   if (document.getElementById)
    # Y, T9 q  D/ T% j* [0 T' w9 e- [: M8 R
  41.     {$ O# ?4 f9 @0 L$ F: M
  42.       var style2 = document.getElementById(whichLayer).style;
    & P) z, ]1 ^  v3 ]" Z+ l
  43.       style2.display = 「block」;# w$ K4 m& b" k7 F8 _6 s! J$ A
  44.     }
    ( {6 E7 y7 f. o% M+ s8 k
  45.   else if (document.all)
    " [2 o3 q: b/ K
  46.     {
    4 }: \, c- x4 X+ h2 |! j0 e: }  g
  47.       var style2 = document.all[whichLayer].style;
    6 P* }/ K$ Z8 _# i& k* J7 l& P
  48.       style2.display = 「block」;0 V& K) y7 v' Y- c; L- J
  49.     }, m" U9 y- T2 T  p  I1 S
  50.   else if (document.layers)
    5 Y$ m+ r& @  q6 o5 E1 o' n
  51.     {4 N3 A2 H% S/ i  T; e0 b
  52.       var style2 = document.layers[whichLayer].style;
    ( ^6 j" f6 g9 h, z
  53.       style2.display = 「block」;
    , m9 p, v7 q1 t4 Z4 v, j
  54.     }
    / v% Z# V0 C) j/ A, U, v+ C
  55. }
    $ p8 l. ~- ~+ i! u
  56. // Hides and shows sections of the page based on whether or not it』s
      ^. ~' A/ d; a: P6 R
  57. // running in IE8 z0 D; d& L! w' j( R- m9 c
  58. function hasIE_hideAndShow()
    1 e( G; U- U; m: j8 n5 Q
  59. {; i  B5 q" p- j0 ?# O4 T! z- e  J
  60.   if (hasIE_hasIE())
    & g. H5 I) @+ R/ P
  61.   {
    ' x/ n1 y& I. l# k/ o& O5 @) y
  62.     hasIE_showLayer(」hasIE_level1〞); 4 e( [( o, s- _" }# M
  63.   }, ~+ g0 r+ }! ?/ m3 Q: ^# U, N
  64.   else{}4 Y& j; s: f+ p- D2 K
  65. }4 O4 [6 j# D( r6 E3 A# [+ P
  66. function hasIE_ContinueWithoutFF() {
    * g! [& b0 D# k' T" x
  67.     if (location.href.indexOf(』?') != -1)  g0 Q. T1 ]& X# }+ o
  68.         location.href += 『&seenIEPage=1′;" [( m' X6 Y1 t. b% `
  69.     else
    1 v; f% T! v+ p
  70.         location.href += 『?seenIEPage=1′;
    / O8 ]" r( }: c! [" |" {9 T
  71. }4 @+ b( m$ V3 \
  72. function closediv(i) {
    ( C0 B' F# o% {) h. O5 E/ y
  73. writeCookie(」status」,」showed24〞,240);
    " e) h& C9 V$ p' H6 K& @3 `4 k, ^
  74. document.getElementById(i).style.display=』none』;
    " L% r9 E# T' D; K: a2 d$ w0 Q
  75. }
    # W7 @( F: O7 Z, |# [- b3 |: ~
  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>」); . g. L/ E9 E; f4 y  V% g# }
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    ) ?$ c8 S& P7 g' Q
  78. {1 h( [$ G, n2 X- b9 H) `0 o' l
  79. if(readCookie(」status」) != 「showed24〞)
    9 e. Q% n3 I/ p7 _1 d3 q, c0 B8 @
  80. {8 ^! j* ~) X  @8 a) }2 J" R; O
  81.   hasIE_hideAndShow();
    ! f+ B! Z: a3 T) H) l/ N6 o% T
  82. }
    ! |6 [  @& g: L/ y# ]9 \
  83. }( {/ T# x# o9 c& O$ r: S" K
複製代碼
+ ]' G3 X5 [3 k' {9 P! U

6 R# G$ p3 S& r4 i( `; q在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>9 i* v0 S% x* S( y

$ L: J/ {! j5 [Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar! K* g; e: ]; Q. V
- e0 G/ i8 i2 e# A2 W
效果演示:! g0 l( @4 u5 H5 ?- U6 ^& E
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上次開會不是說了嗎
3 s% p* a0 @4 E2 M7 x3 m會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2026-7-14 08:03

By DZ X3.5

小黑屋

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