过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
  @2 K, k- e3 o' L8 z. Q
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
( f8 W: C, j: `! ?& D% G4 r6 c' B8 k) U3 @% Y
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
. ?  X$ Z/ e' y8 \+ x" c, B% ~點過以後就不會再出現了,除非客戶端刪除cookie。
% x" Y% _  X8 L$ ]% }- U

& a3 @9 O3 ?1 P8 p7 H9 z8 cAfter 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.( f+ o! ~& s3 P  E
% i& m8 q$ U/ y/ s; g/ W
以下是FIREFOX.JS的代碼9 g# R. l5 C; x
7 h6 W7 J0 g3 [7 o
  1. . o. J" @" c9 X0 l" y: ^
  2. // This function does the actual browser detection( G/ x1 q8 ^$ T% }5 i& L; n
  3. function writeCookie(name, value, hours)
    ' j% T+ r( ^% Y$ R* X6 z4 T
  4. {$ m, y/ B8 {! {0 T! F- o
  5. var expire = 「」;
    . K  O( I( d% B6 A
  6. if(hours != null)0 W( z/ F% ]5 u9 [7 m8 H( o/ a
  7. {
    8 U5 ]0 V) k4 z; _4 S& ]
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);- ^2 Y9 U+ z/ Z! N% b$ s2 @
  9.   expire = 「; expires=」 + expire.toGMTString();% P) B- P: T+ R3 U+ A1 m  F) |
  10. }2 L/ s0 ^8 L6 y
  11. document.cookie = name + 「=」 + escape(value) + expire;
    8 s% E( o4 h+ |% E) C2 k6 ?/ w
  12. }
    + R4 }$ H' a% ~) P4 I, _
  13. // Example:. h. e  b! L5 L4 I6 ~
  14. // alert( readCookie(」myCookie」) );) \6 e* a6 \6 _8 `. W
  15. function readCookie(name)
    0 ]8 q) g% v  j
  16. {
    . n! Z( |; B: [; x  o9 x) S4 W, [
  17. var cookieValue = 「」;
      S0 D( V1 y* ~- r4 G2 d( N
  18. var search = name + 「=」;% `: Z: M+ M9 A3 i9 n2 q
  19. if(document.cookie.length > 0)% `5 x" A/ R6 [9 \
  20. {
    3 y8 I$ F9 Q' u: L
  21.   offset = document.cookie.indexOf(search);
    ) c! i# x9 @6 N, p
  22.   if (offset != -1)
    + B" Y$ r& c* ^. V8 |6 k2 P& g: f
  23.   {
    9 I* g# S% X& Q7 n
  24.    offset += search.length;; K8 ^, Y* x  d% J2 E
  25.    end = document.cookie.indexOf(」;」, offset);
    4 j8 f* k, I5 L1 }! L
  26.    if (end == -1) end = document.cookie.length;
    8 G4 s2 Q: X7 u+ [/ D% i8 |
  27.    cookieValue = unescape(document.cookie.substring(offset, end))9 p* h& U6 k% [, @% Y0 e
  28.   }, l( Y6 V! l* A1 _+ y9 Q! g
  29. }
    & F% h" a- W7 P, L4 {
  30. return cookieValue;
    $ d1 `8 G3 E& J
  31. }# A/ q0 Q$ S& Y' d
  32. function hasIE_hasIE() {" U5 e" ~$ q* S; R" P# t" |
  33.   var ua = navigator.userAgent.toLowerCase();5 q5 Z$ _' i2 ?/ i4 V' K' Z) I
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&# s- k$ |" H, s, T
  35.           (ua.indexOf(』webtv』) == -1) &&
    0 W% l( J) ~9 N/ E5 `
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    ) H- h) ~3 [4 {  b" K
  37. }
    / K% ~1 X% Q1 C* X+ Y  |
  38. function hasIE_showLayer(whichLayer)
    ! X0 m: @* k; S
  39. {1 f# o" P' k1 W) z1 w
  40.   if (document.getElementById)
    4 S6 l$ R" Y5 _! n/ D
  41.     {0 q8 R5 V1 v( D
  42.       var style2 = document.getElementById(whichLayer).style;
    0 I6 S. p* @$ c7 L" |1 i
  43.       style2.display = 「block」;
    , G! d9 T1 ?7 B1 c1 \
  44.     }3 `" W8 V; D8 L: l: C
  45.   else if (document.all)
    ! J1 l2 f4 Y) B: B* ?" Q
  46.     {
    1 P; ^( j5 i' k6 V3 t' F# @
  47.       var style2 = document.all[whichLayer].style;& I$ O( B( r3 h5 C2 b* P9 }7 }. y% q
  48.       style2.display = 「block」;, R% _- k# Z) _# t
  49.     }
    # A; }) w- ?# n9 u& G4 Z8 {
  50.   else if (document.layers)% p1 n& u4 ~& w# V' T& o
  51.     {' ~+ C$ S- f1 |
  52.       var style2 = document.layers[whichLayer].style;" j$ ?3 t2 z. l0 M' T9 |! b
  53.       style2.display = 「block」;
    4 P# _' A, A' ?
  54.     }3 q2 V+ G- [9 a3 z' ?% T6 D0 e" u
  55. }' w( X6 H8 u. _
  56. // Hides and shows sections of the page based on whether or not it』s* a( x  q+ ~0 n- f$ X1 p
  57. // running in IE
    ; \* w, Q' f9 l2 g
  58. function hasIE_hideAndShow()
    " J$ V: M# t. l6 x- m1 r4 G
  59. {
    % i; e) j) U* Z- H9 Q6 f
  60.   if (hasIE_hasIE())
    1 R! o, n. s' c4 q' |" r
  61.   {" E( f3 n/ F$ t
  62.     hasIE_showLayer(」hasIE_level1〞); 1 |5 O, D( Y+ b& G8 w
  63.   }
    $ @: |6 Z; e3 w$ M9 Y) h4 R+ r
  64.   else{}; M9 x& s, r6 V- O# H; t0 _
  65. }
    7 A. \. r6 Y6 w8 I7 |
  66. function hasIE_ContinueWithoutFF() {" }$ s8 E: d8 W! [3 [9 f
  67.     if (location.href.indexOf(』?') != -1)" u9 N; @0 G7 U3 X/ n9 O
  68.         location.href += 『&seenIEPage=1′;
    5 ~" k% x+ U0 M& C, w7 x# C/ B+ l
  69.     else! B" ]$ k) a) H# @' W, }
  70.         location.href += 『?seenIEPage=1′;
    8 c; w  ~, {% u8 T5 M
  71. }
    8 g9 c4 `6 }* n+ V+ D  k
  72. function closediv(i) {
    / {4 I# Y/ f, F% ?. y
  73. writeCookie(」status」,」showed24〞,240);* A, G+ z& h8 Q, t% ~
  74. document.getElementById(i).style.display=』none』;
    9 ~3 j" D8 k* [1 _. Y: ~/ b6 M
  75. }" q$ X. ~0 [5 `- \8 r0 f
  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>」);
    ( I. F8 S/ V' k9 N6 p* o
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1); e: W. G) h1 G) n1 J
  78. {
    & L5 j5 Q7 m) h$ x# k
  79. if(readCookie(」status」) != 「showed24〞)7 W) Q0 `+ x. K5 h5 s4 m
  80. {! M6 c# H1 z+ r$ j2 x" p8 @
  81.   hasIE_hideAndShow();
    5 t$ q, O* `$ i
  82. }( j2 K# ^3 J# r3 ]" D
  83. }+ @1 W0 p$ Y! O; ]. M$ Y. p
複製代碼

0 A2 g& _0 |& _0 ~! z! d0 A0 c" L8 J$ F, N( p
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>8 }% ^5 _5 ]8 {  F3 ?  x; D8 f

( p4 H, G6 _4 w7 r# APackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
" z1 i' a, @$ \" _1 H, A7 ?1 F
6 f6 c; @! t; b2 {5 t/ V效果演示:: U+ b9 x) d# h4 H8 X1 `7 G4 F
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上次開會不是說了嗎
( F$ ~% [  }- x  o% ~. N1 M會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

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

GMT+8, 2025-7-1 07:18

By DZ X3.5

小黑屋

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