过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
8 C) z1 n2 g) J) ~$ H9 K
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!2 z1 R  u  f7 D- \& z" m8 W: e) h
2 S; _& h" ?, y2 |
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
8 Q) S) G; l9 }; Y) L7 c: ^  E$ d點過以後就不會再出現了,除非客戶端刪除cookie。

5 h6 J# w$ O: [8 e
3 m( D& C& l* B& F+ b$ T* VAfter 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.
+ N. d  c; a: j% c' E& r9 ^+ k; _( W* X5 r% O! n
以下是FIREFOX.JS的代碼) _% |% E" f/ R( X/ ^6 {5 }5 C3 ~5 U

3 b+ g/ I/ f  C' w
  1. $ {7 R+ c- s0 b: a- V! e
  2. // This function does the actual browser detection8 z+ \. A3 [1 y' H) }- J% j
  3. function writeCookie(name, value, hours)
    / x' S, E7 O7 u2 ?- X/ a; q# y
  4. {0 @. S; R3 `/ k& E6 Z( N
  5. var expire = 「」;
    2 V9 R, a0 r) P; t$ e
  6. if(hours != null)
    - R9 Z; l* ?* V8 [2 i$ A
  7. {
    4 [1 Y5 B: w9 I: V
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    ) Y9 g. b9 n; d( f2 U( ~' s! K
  9.   expire = 「; expires=」 + expire.toGMTString();$ F6 q* f2 F1 t: I) q6 l
  10. }" _9 c# C& \1 H5 h2 x/ h0 ~1 s( [
  11. document.cookie = name + 「=」 + escape(value) + expire;' Z4 {, `/ E, J. s* B
  12. }
    ( M. \, G9 P" P
  13. // Example:( T9 J& |8 o: f! c
  14. // alert( readCookie(」myCookie」) );6 l. L6 z9 v0 r+ F. k
  15. function readCookie(name)
      d2 j2 m% k' ?2 b0 w+ O9 G+ P
  16. {
    ) \1 S+ [' `  ]' d9 y6 M* o" f
  17. var cookieValue = 「」;
    ( H7 z7 v% K, @( D, I" }' [2 i
  18. var search = name + 「=」;) m3 X$ c" P3 n3 f8 @
  19. if(document.cookie.length > 0)
    . a3 c/ G2 ]! r) o, g0 R
  20. {" D) v5 o3 Z1 o) ~! @1 G  `5 T8 ?8 x
  21.   offset = document.cookie.indexOf(search);
    & m# j' h. Z  k+ N: R) Z' ~% r
  22.   if (offset != -1)/ k( \. C* B# O+ E7 @3 Y7 v
  23.   {# D. t( G/ e, f: p4 J" i
  24.    offset += search.length;' k" Y; W, o0 w' ~4 B
  25.    end = document.cookie.indexOf(」;」, offset);
    / C! K. P& ?9 Q: S
  26.    if (end == -1) end = document.cookie.length;  B) S4 H. M; b2 q
  27.    cookieValue = unescape(document.cookie.substring(offset, end))4 Q* T4 B% ^' `  z  S& i) \
  28.   }/ m! Q' k/ H* l% H% X4 g! }
  29. }
    " T. k9 G/ g! S: f
  30. return cookieValue;
    7 B5 `( ^  L# s# I
  31. }2 f  O, T) J/ o5 x: W- [3 _
  32. function hasIE_hasIE() {
    6 o! g0 u. s9 S" o1 Z" o
  33.   var ua = navigator.userAgent.toLowerCase();0 K. ]. v; q: y1 u
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    ) b  \/ p5 d9 d1 R
  35.           (ua.indexOf(』webtv』) == -1) &&4 z& w8 y  f8 v+ n+ B4 H
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    ; ~9 Z2 \; i1 J% B. F* v
  37. }
    & F) z& H6 U7 x+ {0 r( K& Q% E; b
  38. function hasIE_showLayer(whichLayer)6 t( v1 T: x$ j
  39. {
      q8 H% L! E- y( f8 E, q  q; h
  40.   if (document.getElementById); n' u2 [3 D# k0 O* M
  41.     {& q* P( q. x0 z0 Y
  42.       var style2 = document.getElementById(whichLayer).style;
    8 V$ t# A9 F' v
  43.       style2.display = 「block」;* u8 }& @: z# `  }
  44.     }
    ' [, k/ N* c" K8 s7 k3 W1 R
  45.   else if (document.all). z( B1 L: I. T7 N5 h. \
  46.     {" T! ?/ H( }' y
  47.       var style2 = document.all[whichLayer].style;
    : R( `, N- I$ h+ `' a
  48.       style2.display = 「block」;, A8 d' |# q- x1 ~' o
  49.     }$ ]; b# U1 F- t7 u& `- Q
  50.   else if (document.layers)( f# l5 r- T  p4 ]1 l! |  u3 \
  51.     {" o+ H2 K4 ]% D5 K
  52.       var style2 = document.layers[whichLayer].style;
    / x$ O% C# z$ h# F: f( `) N. R: H1 C
  53.       style2.display = 「block」;0 G7 D5 T" B6 u* ~; \6 q4 f
  54.     }
    + g$ M3 I+ d& v7 H5 _
  55. }
    / ?9 l: E9 O. L" Z: i
  56. // Hides and shows sections of the page based on whether or not it』s
    ) d" s/ C! p( e# t+ h4 E% _2 v6 O
  57. // running in IE
    7 u" P& E2 J8 ?8 z
  58. function hasIE_hideAndShow()) Q, f+ h& y4 i# ?' r
  59. {
    " }) ^) Y- L6 R  {. k  ~4 y; `) w
  60.   if (hasIE_hasIE())
    9 O  s! N" s7 s
  61.   {
    3 _( B% [. T$ L- R7 x/ _9 p* A# ]" v
  62.     hasIE_showLayer(」hasIE_level1〞);
    " ?- K4 m1 R2 ^$ w+ t# J. V- |
  63.   }
    6 \4 [. H0 l. w9 }6 i' C4 q
  64.   else{}  o& o0 t1 h0 F$ a; }
  65. }  B( p' d$ P; S: t
  66. function hasIE_ContinueWithoutFF() {7 R8 U1 g# I, u
  67.     if (location.href.indexOf(』?') != -1)/ @- z6 W+ I9 q2 J1 k8 {2 k
  68.         location.href += 『&seenIEPage=1′;: b- V) r( e0 j4 z
  69.     else- h& k9 R1 F! ~0 g/ R/ l
  70.         location.href += 『?seenIEPage=1′;
    # I. P$ k! R1 ^* x& u# \% B! u
  71. }* z. s/ V2 `7 v$ \
  72. function closediv(i) {: Z2 _- s6 Y6 D: g/ E7 n
  73. writeCookie(」status」,」showed24〞,240);3 A5 {2 @1 `/ x; V& A! a* ^( {& j0 O2 w
  74. document.getElementById(i).style.display=』none』;
    4 A! G# i. ^3 M0 z; y3 f$ W
  75. }; P1 f/ a' y+ c) y4 h9 C
  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 ?) L* X/ j) X0 _% \) e
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1): V5 o: r7 u  d/ l
  78. {
    - _5 [  S: K4 r, D/ ^
  79. if(readCookie(」status」) != 「showed24〞)
    0 @4 ]* n7 u/ l6 x" k
  80. {. l4 ]6 }, G7 ?# ?% {. j; c; K
  81.   hasIE_hideAndShow();
    ) p! z' ~6 v# P# v" F
  82. }
    1 L3 d: y6 d# l0 e. M: G
  83. }$ d6 m' {' m* |9 `
複製代碼
' ~; ?% ^1 S% D6 `- u& @
; v7 X/ m3 k% g3 V2 n2 N! Z
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
0 S& N. l2 Z  n; h* H
) V7 O& P; X& u" Q$ ^6 rPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar" Q; H% j& G) ?3 P

7 T9 {4 b/ N" D9 i4 G/ S. {效果演示:" \" h: \9 Z/ L( x& \6 ?5 T
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上次開會不是說了嗎
0 z! B7 t5 p$ P" {2 P8 c4 `會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

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

GMT+8, 2025-9-19 03:58

By DZ X3.5

小黑屋

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