过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:$ M( f" f1 [0 G9 Q3 y+ B
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!3 d9 |6 _% e5 Z5 q8 u4 s

+ \, c& ^! W  n; w4 X* C" a打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。  R- h" f- P* |3 l! u
點過以後就不會再出現了,除非客戶端刪除cookie。
" |% M' p' v6 a* b: P* P2 F

# A! [* ~* B9 Z( \5 \: _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.: x8 |  N: e% _* O

' G$ X* C- N9 A/ X7 q以下是FIREFOX.JS的代碼5 }3 Z0 S7 h& P  j- s; {

( v7 l8 J! b0 i3 c9 B: V3 [

  1. 5 A! U- ^; T8 `( }& Z1 k
  2. // This function does the actual browser detection
    4 o( E( e9 G2 s7 G6 q$ O
  3. function writeCookie(name, value, hours)4 g: p% ~( M# s% P' M
  4. {
    & \. `: N' {% ~7 X0 _$ l
  5. var expire = 「」;
    ; @8 g! y" X5 |* D4 N( H: u4 H
  6. if(hours != null)* Y* l+ B5 I, q/ @$ T
  7. {
    ( {( D% O+ U2 w* f$ ^" i3 g2 c
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    7 a2 L/ N; S5 M; |$ ?- k
  9.   expire = 「; expires=」 + expire.toGMTString();
    ) ^3 I3 m% p" V  ]; J4 B
  10. }
    4 y8 n% G0 A! E( @6 [
  11. document.cookie = name + 「=」 + escape(value) + expire;
    ( F5 l& d: o& Q! n1 L8 }# U
  12. }
    4 [/ L- G$ u* _+ T. X* `
  13. // Example:
    . O* ]3 Y& a( U+ O# P* Y  y- }
  14. // alert( readCookie(」myCookie」) );
    # b* q$ E& T/ ^( u5 L0 I, J, ?+ s
  15. function readCookie(name)+ O* b5 u: z1 g
  16. {
    - l3 o. w. c1 n, ]! z" n
  17. var cookieValue = 「」;
    * x7 D) t8 @0 n9 K$ I; }( X
  18. var search = name + 「=」;
    1 X1 n" A+ X1 W6 |( `. V6 `
  19. if(document.cookie.length > 0)8 P( _9 _  N0 N' z; P" R$ |5 n. I* i
  20. {
    4 I6 p# U8 x: w/ Z, b
  21.   offset = document.cookie.indexOf(search);
    ( ^* k' H$ p. W6 p
  22.   if (offset != -1)
      L$ R9 u- ], @! R4 R; y  J
  23.   {
    7 t! \- h" Q' }# r6 {8 v8 g
  24.    offset += search.length;
    & P% @: s; h3 ?
  25.    end = document.cookie.indexOf(」;」, offset);% L" U: ^6 {! T/ G) h( O1 ~
  26.    if (end == -1) end = document.cookie.length;
    / v9 ?, l- L/ |% D$ _; z
  27.    cookieValue = unescape(document.cookie.substring(offset, end)). T5 s! B" b9 Z$ B7 m
  28.   }- C1 O/ k4 I" \: c# N, N& N
  29. }
    ! }9 p+ _0 J, E" v  d0 v
  30. return cookieValue;
    5 P3 p2 K4 T4 Q% G' X9 s$ o% i
  31. }6 l0 k/ s3 g/ n1 z3 ~
  32. function hasIE_hasIE() {
    / a3 Y6 l* d8 D
  33.   var ua = navigator.userAgent.toLowerCase();
    & S' g& n5 V& i+ ?
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&% ?; M) F. {% a4 j1 Y- D+ K8 g8 f# w
  35.           (ua.indexOf(』webtv』) == -1) &&) A& ^6 i# Z  R; \8 X
  36.           (location.href.indexOf(』seenIEPage』) == -1));: N% I) m0 l, J* ^  H" ?
  37. }
    " s- u- q  J7 a' z6 G0 \, T
  38. function hasIE_showLayer(whichLayer)5 E- B( p- I, z8 `; ]* g2 F
  39. {1 [) j/ M4 q' D% d5 h' D$ [
  40.   if (document.getElementById)8 ^8 Q) b5 M! M1 c
  41.     {% [! u5 p% ]7 U
  42.       var style2 = document.getElementById(whichLayer).style;
    9 W, @: \' a) I4 O7 w, \
  43.       style2.display = 「block」;
    5 t4 I0 \9 Z4 Q# e& S  r& E$ `
  44.     }% w$ S' S' j! m) q) l: n% m
  45.   else if (document.all): ^1 }* Q! @6 z/ H) G3 Z4 C) Z: T
  46.     {
    / J$ ~# u. Z( H5 d3 D: W2 l, ^$ t
  47.       var style2 = document.all[whichLayer].style;2 [) L5 V& Y4 i0 q  L4 A) u& S9 _. r
  48.       style2.display = 「block」;! b# g9 n+ P0 _: L
  49.     }
    " Y5 f6 ?( v& `9 F2 N
  50.   else if (document.layers)
    " Y5 m' _7 E3 x$ e. ?# D
  51.     {
    ) }. C, L+ M- a6 J
  52.       var style2 = document.layers[whichLayer].style;, M2 p( W7 ^8 W
  53.       style2.display = 「block」;
    , @4 q% q/ C/ E; e
  54.     }- {% |% [) X! B( g, |( V
  55. }; w* V; G2 X+ b% W
  56. // Hides and shows sections of the page based on whether or not it』s
    1 D) X9 G2 e3 \/ f" q. e
  57. // running in IE
    0 C+ H: B: {9 i4 j6 p5 ?" W
  58. function hasIE_hideAndShow()
    / e  l, Z  G! j. Q
  59. {
    7 r, f2 H9 G4 m8 M
  60.   if (hasIE_hasIE())1 s: \3 Y- B4 S: q4 d
  61.   {
    # L- ]* b6 _0 Z# Y9 d
  62.     hasIE_showLayer(」hasIE_level1〞); 4 ~- Q) N1 L3 T, E; {8 {6 l5 B
  63.   }
    ' ~3 E& u4 H9 ~0 J0 ?
  64.   else{}
    # b$ s8 k  w. }( E8 {8 E+ I0 o- U& Q
  65. }
    & V2 r6 R; R; G3 N$ F: O
  66. function hasIE_ContinueWithoutFF() {
    # j/ V/ m; n3 w+ b& f  f/ x. z
  67.     if (location.href.indexOf(』?') != -1)9 m3 l4 k1 P$ \4 d
  68.         location.href += 『&seenIEPage=1′;
    3 {, L3 s; F% W
  69.     else3 g3 S6 z8 W' u3 r% d! [9 o
  70.         location.href += 『?seenIEPage=1′;
    ) _1 f) W' K, B+ s( t
  71. }; A) \( D, @) f( I7 A4 l+ e9 _; Y# a
  72. function closediv(i) {# q* M3 P# `' w% `1 q' ]7 M6 o' w5 A
  73. writeCookie(」status」,」showed24〞,240);+ \6 z0 @) _* j7 ^
  74. document.getElementById(i).style.display=』none』;
    ) L3 x+ Z. T( {& v' P0 w; B' a
  75. }5 X; R7 E4 _! Q* o
  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>」);
    1 I: j/ n- n. ~
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1): l4 |$ b, ~# E+ |3 `
  78. {4 J( a- Z0 t0 P- y6 N) _
  79. if(readCookie(」status」) != 「showed24〞)# n/ p5 I# x! q" a! ?: |1 M5 w
  80. {7 `. ?6 o0 P* \0 d' i$ A
  81.   hasIE_hideAndShow();
    & ~( G) h4 i! o" |5 i" z
  82. }: C/ d4 u9 f3 l4 q& B# l
  83. }+ `' E( }/ Y# ?1 l3 d$ O
複製代碼

& }7 m( G% |$ n. t) H0 f4 Z) A4 e8 `3 U* d
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
% W# _+ p/ r- i6 C5 v8 B/ q
0 f3 A8 m  A0 I) t5 gPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
1 y! f5 S1 _$ f7 v  _% r' e% N7 y1 d
效果演示:
* W! K) C/ A- _. q, r
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上次開會不是說了嗎% ~: A( P" q* T) i1 P3 y
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2025-11-27 18:05

By DZ X3.5

小黑屋

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