过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
; a/ G0 g' _* t2 n8 m
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
* J' h# e8 u  V" U; `/ a
9 z" v4 m% Z" z, s3 j打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
2 D+ p9 o5 o* b9 @/ N6 A- k2 O# Y; s點過以後就不會再出現了,除非客戶端刪除cookie。
/ j: H4 w( `' m% x, a- h5 h0 Q
% @+ x! U1 C3 z7 }% Y* W& n" x
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.
2 `9 L; r1 h9 \: d7 h1 c$ |; c: b7 O
  V9 t* b' A4 W以下是FIREFOX.JS的代碼1 v- l/ \, h% T( P- Y$ l! M
) g) q4 ^8 P. d6 p
  1. - ~2 T$ e& ^! v; B2 r4 p5 d
  2. // This function does the actual browser detection. T) O6 C. n9 W# C0 |
  3. function writeCookie(name, value, hours)
    " t! S3 k1 I6 `3 u, y
  4. {4 n2 o- F% M) z5 n
  5. var expire = 「」;
    " j& v0 l& _# T
  6. if(hours != null)! q2 ], |5 P4 w' z
  7. {8 \+ X+ N* A$ m( E
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);0 S. x! z! @. C0 c7 T2 @* I; P# k
  9.   expire = 「; expires=」 + expire.toGMTString();* M+ L5 }3 z- n5 z  b: g% R+ \+ B
  10. }( @# u" p1 }$ v
  11. document.cookie = name + 「=」 + escape(value) + expire;
    - P& E/ ~; i- g( p# p# S# F
  12. }
    & ]0 E* d" T, y6 j3 u
  13. // Example:
    $ q& b% W2 k" d% r3 D
  14. // alert( readCookie(」myCookie」) );$ ~  x; r& O$ b* ^
  15. function readCookie(name)- Z- f) F  I: f8 ^7 w+ a/ r. N
  16. {
    . s. e: u9 e$ V. h8 N* u. `  f
  17. var cookieValue = 「」;) K8 j4 l! P- u% B- x) K4 k
  18. var search = name + 「=」;
    / Z* y6 e# F. R, ~; L6 i' Q% G
  19. if(document.cookie.length > 0)
    5 M$ t- ]; h5 }( y
  20. {% q2 ?* _/ O: e7 M$ K
  21.   offset = document.cookie.indexOf(search);) ]2 r# N7 j  H
  22.   if (offset != -1)8 `0 W5 C- Z3 {' ~/ x& ~' \/ p
  23.   {$ F7 Y: `/ @' v- H% i
  24.    offset += search.length;
    , e1 a# n% |: j# N/ s
  25.    end = document.cookie.indexOf(」;」, offset);
    & c6 p2 v3 W$ ?* X
  26.    if (end == -1) end = document.cookie.length;
    ) g  N& r( p' J% J' Y+ Q1 r5 @
  27.    cookieValue = unescape(document.cookie.substring(offset, end))- V' y$ P, S- u: ~/ y
  28.   }6 J0 U3 L0 R. m
  29. }- W8 V- Y4 p2 d: G2 R
  30. return cookieValue;( V3 e7 D. n/ m! _0 B/ Y: B' x
  31. }
      j5 w1 p7 I/ K+ ?
  32. function hasIE_hasIE() {3 w# |# N- L3 B! O. ~5 ~
  33.   var ua = navigator.userAgent.toLowerCase();; Q3 w. v$ c1 f# L
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&: f' F' W; j+ q- u& W0 b: D! H" ~
  35.           (ua.indexOf(』webtv』) == -1) &&
    3 m" K5 a& Q& d5 F2 |# z
  36.           (location.href.indexOf(』seenIEPage』) == -1));3 D+ x, Q. r& d( J) N
  37. }
    7 j; \& G$ p- h; t# m0 f
  38. function hasIE_showLayer(whichLayer): q8 T; i: @& {4 r; t/ O
  39. {# g1 w8 P: U* s: O* S4 ?
  40.   if (document.getElementById)
    % a! J  e, a5 M$ I" `
  41.     {
    $ F# \" `! p8 [3 U1 z) u
  42.       var style2 = document.getElementById(whichLayer).style;' P, X3 z& O$ ~! ?
  43.       style2.display = 「block」;- y8 T: t- j7 ?; c
  44.     }
    * d( g: S  \* Q
  45.   else if (document.all)& d. u6 O3 Q( A( M! M: M2 ^
  46.     {4 D; j- e% `9 L' ~, q/ i5 p
  47.       var style2 = document.all[whichLayer].style;
    ( B: x( l6 `1 B' D7 q: r- I3 |1 W
  48.       style2.display = 「block」;
    - {5 b1 ^1 c! l! {
  49.     }
    $ T' A( A1 q: A9 q4 P9 ^% I6 m; N" B
  50.   else if (document.layers)
    $ F6 K6 Z  [2 `' t
  51.     {
    1 x% Z! e4 r" q# @: U. l: ]1 \% F
  52.       var style2 = document.layers[whichLayer].style;
    7 a5 i2 `2 U9 u
  53.       style2.display = 「block」;
    ( T9 h; D! a7 ~, b8 b
  54.     }" Z# z6 r7 I) h% K" a6 V- ~* s
  55. }2 c8 _/ D) E& w; N
  56. // Hides and shows sections of the page based on whether or not it』s
    2 u8 ~& L, L4 n# s
  57. // running in IE) Y( g5 u* H7 M1 B1 |8 I% n. Q! R
  58. function hasIE_hideAndShow()
    ) |) W$ z. K' J5 @4 y3 Y
  59. {
    $ J% c% `" O. _: H
  60.   if (hasIE_hasIE())
    3 }2 x* s" Q, a
  61.   {
    1 K& U1 M# I9 X
  62.     hasIE_showLayer(」hasIE_level1〞); - t3 C6 W6 q  A& r6 C; N7 D# d% d
  63.   }) L9 d; M* L2 O1 e6 M  \6 f! D& Y. \0 e
  64.   else{}# L) N( p$ S+ \# Z7 _
  65. }
      S0 s; D" W/ f8 ~4 y1 G* n0 z
  66. function hasIE_ContinueWithoutFF() {
    & R5 c1 M& z: J; k' @
  67.     if (location.href.indexOf(』?') != -1)2 K) _' y5 n( e* N& o+ ^) e
  68.         location.href += 『&seenIEPage=1′;: K) v- T" @6 |, i
  69.     else
    8 {4 o* C8 a8 h# x$ J. ^0 o
  70.         location.href += 『?seenIEPage=1′;
    1 y3 E* _) h) t# [7 t% {
  71. }
    $ {+ v. u& K: q8 ~
  72. function closediv(i) {
    ( k! y* [, P; G  }/ l1 {  a9 @( j
  73. writeCookie(」status」,」showed24〞,240);
    8 ]# k: n5 b0 R% E- C& T9 I- i
  74. document.getElementById(i).style.display=』none』;
    ; m. G6 W( Q' j5 G6 q
  75. }9 W' h; L$ @; }1 x9 l) c- q
  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>」);
    ; N: M1 R! }* n, Q8 {0 a# Z$ a9 n
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    1 V$ Q; M) i$ p; N
  78. {( T/ c* O  ?. Y0 u8 C8 I
  79. if(readCookie(」status」) != 「showed24〞)1 O' n5 ?6 u+ K& x) I0 L
  80. {
    ) V9 v, _% l+ m% h: K$ u/ T$ ?
  81.   hasIE_hideAndShow();
    : W. k& _4 b' @& A/ i- k
  82. }3 @. {0 n6 W/ x; r* L# I
  83. }
      _1 c+ S- t/ J' J! [( }/ S
複製代碼
( l# Q: K5 j$ u  ^! y$ ^, O
# ~  K8 |# }) x# W
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>+ g) C' j. L, u  P. P! @
) y  F& F9 [& x2 `9 t0 B' D; a
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar+ A4 Z. I' v3 }* l6 |+ G
/ Z% r- v$ @& o
效果演示:1 F3 V) |+ w3 v
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上次開會不是說了嗎
; u) ]2 p. x# U3 K會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基跨境 數位編輯創業論壇

GMT+8, 2025-4-16 08:01

By DZ X3.5

小黑屋

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