过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:. i. W2 \. P4 ^+ h- Q% ^
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!6 C, W1 \3 {1 V- Z' c; [

  ]) y+ r6 m( F0 [' A* G1 y打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
$ |& k$ N0 g4 z' F0 l) Q9 T點過以後就不會再出現了,除非客戶端刪除cookie。
+ U, D3 Q* o' H

) z5 M+ P: r5 W8 x" s" c6 j' Y, R. sAfter 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.  G" f: u8 j3 P0 n7 |
- ?2 t+ Q+ O& }$ w4 w8 G
以下是FIREFOX.JS的代碼
* o" y* C8 Y) F: c! F" e; r: ]8 V, b3 n4 m- s( W
  1. ! m. G4 F: y/ l0 j. `- ^
  2. // This function does the actual browser detection1 ]/ h# {  ?7 P; n' p7 d+ ^% h
  3. function writeCookie(name, value, hours)$ }3 {2 I- v: B
  4. {' D; u3 Q; @# w4 |9 f+ r$ j  M% ^1 f" b( q+ i
  5. var expire = 「」;
    & m% p/ i7 n) k' G# B" i* T
  6. if(hours != null)
    7 H  g1 C. m! D
  7. {! n' \( g; a, Z# N5 g/ K
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);, z8 s0 n7 L. }9 V6 F
  9.   expire = 「; expires=」 + expire.toGMTString();
    , s* o: T# f# y
  10. }# W* h# i* ~5 ?# n0 a
  11. document.cookie = name + 「=」 + escape(value) + expire;" D5 m/ s, J( m2 ^- C( A  `3 f
  12. }* A" m) P9 i& v6 p6 G$ T
  13. // Example:1 `# c  F4 Q5 [4 M. u) e2 B- s8 N% N
  14. // alert( readCookie(」myCookie」) );' ]7 O! H" P" A9 y" w
  15. function readCookie(name)
    * y6 O; ~# o' F4 Y' ?* r
  16. {
    . K+ m3 v2 |2 |. H  F6 ]- C1 O- `
  17. var cookieValue = 「」;% P4 s, B6 r! X3 q$ D) r
  18. var search = name + 「=」;4 e1 f8 k) z9 v6 T' e; Q
  19. if(document.cookie.length > 0)3 }: p; \) e& m) ]6 j3 E. U
  20. {
    1 }' i9 \3 _: T! q- ]; q. }
  21.   offset = document.cookie.indexOf(search);7 W- ?/ R: L4 p
  22.   if (offset != -1)) |4 y! |$ @& ~0 v
  23.   {
    ' L9 E3 C$ o# v0 r& j
  24.    offset += search.length;
    3 y; a2 s2 y9 M3 z
  25.    end = document.cookie.indexOf(」;」, offset);) j  i+ C$ m; U/ J, e
  26.    if (end == -1) end = document.cookie.length;
    7 w) b* W, z. ^1 |3 \7 T) U4 U) }- u; V
  27.    cookieValue = unescape(document.cookie.substring(offset, end))& ~% ^  P6 z7 A3 g5 ?/ K( U
  28.   }5 H! L: y/ D: F) j7 I* C% E
  29. }
    / c/ z  [6 f5 u8 y# i! ~0 \  t  E
  30. return cookieValue;9 M. D0 V9 S% L) ^! D( F
  31. }
    / {" R) n$ b) Z1 s7 d9 X8 X
  32. function hasIE_hasIE() {
    9 h/ u8 \8 c0 u  ?6 J% Q; u$ m, }% b
  33.   var ua = navigator.userAgent.toLowerCase();+ s* d9 K, @+ R# H, E" H; v% {
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    7 G0 w, N& q* {
  35.           (ua.indexOf(』webtv』) == -1) &&
    4 Z2 L; z. w" A9 B7 F- ~; X( }
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    - J5 e; |; A+ |$ E
  37. }* s6 Q; N( p  K/ }" p! `! p: Y  R
  38. function hasIE_showLayer(whichLayer)" U/ }: s9 a- N. }  l' R5 X; f4 z4 h
  39. {
    ! |1 i& o! B8 [, Z
  40.   if (document.getElementById)0 R8 @4 a/ ^' F4 J$ L' y
  41.     {2 O( Y2 q$ d# y4 Z' t, p% v8 v
  42.       var style2 = document.getElementById(whichLayer).style;) p2 g0 ~7 ^) {$ K9 g9 X
  43.       style2.display = 「block」;( v0 p9 p3 L1 A* ~( Q
  44.     }$ Y5 V5 w3 W1 O
  45.   else if (document.all)) H  s: M5 s& Q3 A  c6 A; c* K
  46.     {  i; y* {: n& l$ ~( p
  47.       var style2 = document.all[whichLayer].style;
    . h0 a* Y( r/ r& O
  48.       style2.display = 「block」;! b% d5 i# ^! C& w3 D0 R
  49.     }* e' y! w9 n0 m/ z# z/ x9 L
  50.   else if (document.layers)
    * @) _$ N! k, W
  51.     {( ~) W4 c% \$ z* w3 C7 B! `' N
  52.       var style2 = document.layers[whichLayer].style;2 m6 u+ q# {, f3 }' G, T
  53.       style2.display = 「block」;
    - d' P, z7 ^2 T
  54.     }
    6 m% }2 e. {8 F) a
  55. }
    * V5 N, p: z4 G8 |1 n( h
  56. // Hides and shows sections of the page based on whether or not it』s
    , I3 G, E% r4 L* {. k* Z& x$ e4 g. C
  57. // running in IE1 o. J. g8 n4 V3 Z
  58. function hasIE_hideAndShow()1 ~8 R+ o( U5 `, R* [6 j6 [" H
  59. {2 y+ x* F4 S; J8 U! H/ P  ~3 E
  60.   if (hasIE_hasIE())" T7 I' K  v9 A7 ]/ E! Q9 w% }6 `
  61.   {) Q0 _- U: G3 ^
  62.     hasIE_showLayer(」hasIE_level1〞);
    & t6 c3 y+ w/ d+ ~8 T: ^3 c) t
  63.   }
    ! p2 j) V! I8 d, I: Y; J" S: P
  64.   else{}
    + K/ u( Z( |* I' v+ }( Z: p4 E
  65. }
    8 g+ @  p( B9 |  w- h7 e$ S, [
  66. function hasIE_ContinueWithoutFF() {4 E8 K8 [3 ^1 p* G! y( w6 v
  67.     if (location.href.indexOf(』?') != -1)+ g4 Q8 ~! r# Z+ c
  68.         location.href += 『&seenIEPage=1′;1 v2 F5 _& t& j
  69.     else& \, q2 q/ C1 x5 N; g
  70.         location.href += 『?seenIEPage=1′;
    ; ~) S) L7 U9 T
  71. }' r/ E' q+ l9 r! N( G6 W% p7 B
  72. function closediv(i) {6 S0 ?4 m* Z3 |% q5 n
  73. writeCookie(」status」,」showed24〞,240);/ g" }9 r, |! T0 H
  74. document.getElementById(i).style.display=』none』;
    4 `+ @1 r2 W* [+ l7 W& x9 w* _( I
  75. }
    5 {/ a9 d$ n) X6 K8 t
  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>」);
    8 a. T. G9 l2 ~/ I/ [
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    ' C& d+ H) ]. g& e1 Y
  78. {4 {2 G9 T- k$ d8 M# H# V. `
  79. if(readCookie(」status」) != 「showed24〞)
    $ C6 K' M; z" T8 ]* ?6 K. Y
  80. {% l+ Y6 j. I! K: a; s8 i6 t
  81.   hasIE_hideAndShow();) u7 y4 s/ h# ^* \! |- s3 J
  82. }3 ~7 P/ F: F" i- d7 F
  83. }$ z. q5 O' d' k) x  f1 T7 C8 e
複製代碼
, P) i; L0 M# }. N

3 a1 J8 j) p+ l. q; e7 M4 n在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>$ g- o$ P5 \0 E$ @: [$ T) Y0 |. {7 I
0 k' u5 x* R7 h9 n
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar9 D( \( ~, C+ P9 j

0 [  _- H% @3 \# \: J8 W+ |效果演示:( x# F" a3 }$ _' x: a
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 z3 m" V. z' i; B% t會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

GMT+8, 2025-7-16 05:32

By DZ X3.5

小黑屋

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