过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:' f+ \" K5 y3 y3 z4 L% Z7 R/ @
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
) T4 _7 }2 G3 K
1 y7 {) P; f$ e4 p+ K: l打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。* X" N' K8 b  F" i9 @7 }
點過以後就不會再出現了,除非客戶端刪除cookie。
+ f' t$ w% |2 ~( }

. ~9 b) g5 K" }# r4 I) v5 z- bAfter 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.
6 l; D; o# j5 N3 F# I/ @- G4 Q9 V# o% j
, Y" k  o$ Q0 ?以下是FIREFOX.JS的代碼
% S6 y( _! a8 e4 F2 S2 T) G# |# J2 T) I" q
  1. 4 i# s2 `* t% [3 Y4 Q0 U" Z
  2. // This function does the actual browser detection
    / \, w( _: d: M2 H  A
  3. function writeCookie(name, value, hours)3 \3 G# b- _9 e- [. n9 o6 V* [
  4. {
    3 k4 _  X, Q$ k
  5. var expire = 「」;! M* I9 y! C4 Y9 o1 W4 l0 u3 F, u
  6. if(hours != null)2 [. j( @# G) l4 u; {8 w
  7. {: q4 O6 |1 |" F# M$ m2 H0 G
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);2 Y/ B# o+ A3 |
  9.   expire = 「; expires=」 + expire.toGMTString();
    & R( R! g' q7 M
  10. }5 \) L2 W5 W/ ]: j1 X5 o) o
  11. document.cookie = name + 「=」 + escape(value) + expire;# y2 m2 S" J* E5 m
  12. }
      z) v1 k0 ^, ?
  13. // Example:1 b0 A$ d' B& f7 T. z1 |
  14. // alert( readCookie(」myCookie」) );0 t0 N. Z/ V$ V% Q
  15. function readCookie(name)
      J: @$ h; n9 }. g0 |& `
  16. {
    0 X. m( [! I/ f9 f6 `
  17. var cookieValue = 「」;2 E" _: T4 Q; y# ]& z7 d( H6 w
  18. var search = name + 「=」;. k1 q7 J- ?* W
  19. if(document.cookie.length > 0)% {- k7 i9 R. P
  20. {# x; F, I% a5 `" \9 [. |
  21.   offset = document.cookie.indexOf(search);
    , V! a* Z4 P3 y2 x$ y% o" ]
  22.   if (offset != -1): r: Z) H2 c8 Z$ s1 x' Q
  23.   {# Q& k2 h/ P. t0 m+ E* u
  24.    offset += search.length;. A9 I. B+ \( x- ~. j
  25.    end = document.cookie.indexOf(」;」, offset);
    : s# A1 I1 N2 \+ ~
  26.    if (end == -1) end = document.cookie.length;, Z0 o4 H2 n) p  ~
  27.    cookieValue = unescape(document.cookie.substring(offset, end))7 I/ K. ~. v5 ]" R, Z
  28.   }& \! o" _$ j: W( V6 v
  29. }
    ' Q! T7 _5 P& b$ d0 i! r
  30. return cookieValue;
    9 m0 Q4 t, h( C9 I2 P
  31. }# n8 }8 `! w6 R' n
  32. function hasIE_hasIE() {6 x" |) a4 K* [4 D! i8 Z; [* I8 ~0 ]
  33.   var ua = navigator.userAgent.toLowerCase();
    + Z: O# h3 F4 ?/ U
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    * m" I/ f/ G: \7 Y; z
  35.           (ua.indexOf(』webtv』) == -1) &&
    9 R' u( X* c+ X( i
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    $ L2 p: I7 T2 E. |
  37. }8 E( [( t5 A" z
  38. function hasIE_showLayer(whichLayer)
    ! ^0 j) g: T! ]2 d$ @5 g
  39. {- \2 e! [. @: m
  40.   if (document.getElementById)) |* F, T0 T+ f
  41.     {, u+ C! `0 `3 Y
  42.       var style2 = document.getElementById(whichLayer).style;$ i8 g+ z: h% v3 R6 A8 h2 z4 y; ~
  43.       style2.display = 「block」;
    9 f) b/ Y8 n2 _+ W8 h/ D) [
  44.     }
    ! o  M% x- u+ ^5 H0 s
  45.   else if (document.all)
    , B+ S0 h. U5 {9 [% m; B, \
  46.     {
    3 \# W& `6 r6 q  v
  47.       var style2 = document.all[whichLayer].style;
    1 ~8 B4 R( h" G( D2 d* K" B: w
  48.       style2.display = 「block」;
    ; S# `$ G, p" r8 B
  49.     }
    7 n! `7 A- W6 a
  50.   else if (document.layers)8 s$ y5 {" s0 W! a# e
  51.     {* E) X6 Z/ a& ]. u+ y" j
  52.       var style2 = document.layers[whichLayer].style;
    6 T3 ?9 h8 m: s
  53.       style2.display = 「block」;
    , n' D2 C2 J+ d3 `1 ]" n# N4 {
  54.     }+ Q9 X/ C: o! E1 f" M; z
  55. }
    # ^& Q) x' F8 q; S
  56. // Hides and shows sections of the page based on whether or not it』s
    $ r) R2 R& F6 c
  57. // running in IE% b  j% B# k* a3 g3 h. e
  58. function hasIE_hideAndShow()- }0 K% f6 |3 Q# k6 R
  59. {& V0 ?, F) p: H* D
  60.   if (hasIE_hasIE())
    2 i5 ~2 W$ o- v) G
  61.   {. g! j5 m7 \4 A7 X- [9 r2 u
  62.     hasIE_showLayer(」hasIE_level1〞); + U$ Y' G4 C3 T! g$ J
  63.   }
    ; [9 g; S/ s7 V" b. c  ^$ t
  64.   else{}% }& r  n: J0 B( l3 U6 A
  65. }
    * K& ~) a+ N* ]5 p0 l4 f$ q
  66. function hasIE_ContinueWithoutFF() {0 [$ E; E$ K- @
  67.     if (location.href.indexOf(』?') != -1)
    * @0 @; y* D2 [) q% S
  68.         location.href += 『&seenIEPage=1′;
    * B5 i2 F! ?: W' a
  69.     else* [6 p9 k" F4 e* I# i7 b
  70.         location.href += 『?seenIEPage=1′;
    9 g/ ^) j7 a  O: X
  71. }( L5 Q& A; f9 R/ a" q3 i+ i7 f3 q
  72. function closediv(i) {. a+ r# Z7 ?1 a
  73. writeCookie(」status」,」showed24〞,240);# O& O5 R# P0 G4 v, B' R# x( \
  74. document.getElementById(i).style.display=』none』;
    " Q: S! v" J5 }. H
  75. }9 u! H) J: D4 l$ ?+ B
  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 U# ~0 e5 U% ^  T
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)( j9 y/ N) w7 S; C) N4 E5 L
  78. {
    1 c* W9 ]6 p3 l. U/ A
  79. if(readCookie(」status」) != 「showed24〞)
    & |6 k- |6 B- I! |2 w1 W3 U
  80. {& A  v: c' o  }  ^) z
  81.   hasIE_hideAndShow();
    . n$ x% I8 k% t) x/ t! t) M( T) t
  82. }, ]& [$ h; k2 l1 Y4 B8 F
  83. }" j$ _3 m0 _. n, E, v- k
複製代碼

" B' e( F0 }% J4 _
4 c, k1 C  P# W( G: f( T6 `6 J在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
, n# j+ o: ~# w& D  u* ]: U) P
$ A. ~% u4 k' w# m( zPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
( F. n/ C' [/ R- G3 }2 l% p2 a3 s6 x+ l. j: {: b$ w+ u7 e
效果演示:, i2 C, K* [, }0 t- n* q
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上次開會不是說了嗎5 ]9 G( C" C. u# k3 W' @% T
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

GMT+8, 2025-4-16 02:16

By DZ X3.5

小黑屋

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