过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:; c# Q7 {8 q) J. k% a. x9 J
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!) ]' o. J8 T7 z& x# p: Z

. W6 d: v* k: U! ~( g打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。% O# x' D3 a: K" o4 {; s. X
點過以後就不會再出現了,除非客戶端刪除cookie。

8 Y# Q7 ~# }1 o
* ^* @2 L& z( }+ m2 x; TAfter 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.. Y! W4 H* B8 a6 h. _7 \! W* W
% Q- w5 R+ ]% ?% m
以下是FIREFOX.JS的代碼4 {! }5 N- t4 ]3 }" j" p
( D  n5 k/ M7 g. P' Y/ }! W- Y
  1. 0 D' l$ v+ M- s: O
  2. // This function does the actual browser detection- e' W% Q: u4 q. O/ j1 K1 O& F) [
  3. function writeCookie(name, value, hours)
    , G: @- F' T' S' L! q  `
  4. {3 \9 n/ u& p8 Q  l& `5 D; \, a0 D
  5. var expire = 「」;
    $ P- e8 i( B- V
  6. if(hours != null)- ]( B9 m4 e) l3 S* W# f
  7. {0 Y$ v2 t; y. t4 A
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    & _  w! j2 K' @0 {9 |2 q. E& g
  9.   expire = 「; expires=」 + expire.toGMTString();" b% M3 o# l1 Q; j
  10. }. t3 `+ l& j6 ], a) Q  j5 W* o  W7 N' U
  11. document.cookie = name + 「=」 + escape(value) + expire;
    9 @3 B6 ]% c7 \3 }. k: J
  12. }
    & f& C3 s1 U5 R( j
  13. // Example:
    # Z* g0 j$ k3 O: R. X
  14. // alert( readCookie(」myCookie」) );( V/ A  j- w7 K/ s
  15. function readCookie(name), r& U- E' s1 F2 U! v
  16. {
    9 r8 f$ f5 B/ X" f
  17. var cookieValue = 「」;
    ! p8 D  z; [5 {  a; j" R( X' h& r
  18. var search = name + 「=」;& r3 S% _% k$ @2 B: N' C
  19. if(document.cookie.length > 0)
    * E, L8 c  A. P
  20. {
    ' H0 J( v* I- Q( K! \/ Q
  21.   offset = document.cookie.indexOf(search);. v0 D3 M% i. p% }: \8 Y; x0 }
  22.   if (offset != -1)
    1 e3 W; g9 J: N  f4 G
  23.   {
    % j3 M: n( X  S' r7 G6 I7 K
  24.    offset += search.length;
    # V2 F( w) a3 @4 L. A! h) L
  25.    end = document.cookie.indexOf(」;」, offset);  ^8 ~( c3 M3 e4 s* Q/ g
  26.    if (end == -1) end = document.cookie.length;
    + i$ N- {/ M4 ~" c- z- r# N: H
  27.    cookieValue = unescape(document.cookie.substring(offset, end)): e6 `6 d4 E4 q
  28.   }* M; m% k* `% l
  29. }$ A: }6 n/ L: w: l& u) |
  30. return cookieValue;
    5 q9 x/ O' w) _+ L3 t8 A
  31. }8 K. y# h0 R  U8 h7 z; ]
  32. function hasIE_hasIE() {8 `8 p7 F3 A9 b% S. M# o
  33.   var ua = navigator.userAgent.toLowerCase();
    " W/ @) ?3 c& {5 B9 j
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&7 |8 X, l8 {9 \/ A, d
  35.           (ua.indexOf(』webtv』) == -1) &&) e2 i8 ^, q- a/ @% w0 u
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    * X) y% l( |  v" d  u# w4 G' v: G
  37. }! `& K2 s; s4 `/ }) z- i
  38. function hasIE_showLayer(whichLayer)( W. B; e9 j0 {4 e- h
  39. {! ?9 `" K0 o7 M- w8 B
  40.   if (document.getElementById)
    # M) F; h4 \4 w8 C4 t
  41.     {# G! ?/ E; c& g9 {8 ~' r. J' E5 H4 \
  42.       var style2 = document.getElementById(whichLayer).style;) [9 x# i* L9 Y2 U6 y
  43.       style2.display = 「block」;* F; N2 n2 P# ?( h5 ]
  44.     }
    6 ~- R; O6 Y8 ]5 a  t- \
  45.   else if (document.all)3 g4 Z8 Z$ _9 N( O' P+ k% h* B
  46.     {2 `# [; s% s3 y" k/ O7 G
  47.       var style2 = document.all[whichLayer].style;9 ]! l8 W+ `4 p# C+ {
  48.       style2.display = 「block」;8 X# M/ t5 _/ F" q* |/ g! x! R
  49.     }  D0 ~6 i, D/ |" r+ ^6 {
  50.   else if (document.layers)0 W, j2 W! N. ~& B# E2 i
  51.     {
    7 a5 @3 T0 y: A; l- P
  52.       var style2 = document.layers[whichLayer].style;8 L1 }, w  v1 s
  53.       style2.display = 「block」;
    + b# c$ \1 ?: E% N- F
  54.     }
    * x" m4 ^4 D! O; I0 ~3 |+ Q7 W
  55. }
    2 Z: t" c/ L1 H
  56. // Hides and shows sections of the page based on whether or not it』s( f) G( d4 ^+ J: w$ ^4 T' n
  57. // running in IE6 V* L' l: X" x1 i9 f
  58. function hasIE_hideAndShow()5 J; {  X; s: h0 F8 x9 N1 @
  59. {
    ; g# y0 H; m9 W, _, j4 A* J
  60.   if (hasIE_hasIE())' L8 t, M0 a6 Q7 @1 q! n& |5 W
  61.   {! d* N1 R. c; ~) p
  62.     hasIE_showLayer(」hasIE_level1〞);
    ' d" f. G& T5 {
  63.   }
    - ?( m/ }, n% ]/ O1 @& [8 G- A
  64.   else{}- |2 Q0 }( O% t, i0 A5 g! h
  65. }
    # D; w1 [( ]+ a
  66. function hasIE_ContinueWithoutFF() {
      f% c8 h% ]0 F
  67.     if (location.href.indexOf(』?') != -1)
    . u+ ?* z9 E, R
  68.         location.href += 『&seenIEPage=1′;# `  e# W, }( }" Z
  69.     else
    7 E5 C8 t& x2 E0 L. ?
  70.         location.href += 『?seenIEPage=1′;8 W/ B7 W% E/ t$ T7 b
  71. }
      \1 v% ^8 Q' [9 \9 n
  72. function closediv(i) {
    & ~6 g/ ?0 }% I( [' }0 S
  73. writeCookie(」status」,」showed24〞,240);* m* l. U1 T, l2 g- s' w0 p
  74. document.getElementById(i).style.display=』none』;
    + t6 K- V* j" C. H$ U
  75. }: Z1 G3 g( A: D1 F# K. o, a
  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>」); ) m" x0 }: l' c2 x2 t4 @% G
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)8 {3 `4 F2 F8 c' [
  78. {
      e" ]3 v) t/ R6 w
  79. if(readCookie(」status」) != 「showed24〞)! M, |# O; e& B# y( v$ I
  80. {
    8 f& x/ z9 O6 ^. r( _3 S  c9 h
  81.   hasIE_hideAndShow();  q( ~9 B; o! p* }9 {  G+ J2 R3 l
  82. }* N0 P+ O9 `, @' B9 b- k  c( U
  83. }& u) E9 `. g# U& M+ z
複製代碼
* N# F# E( [& ^, ^1 s

( O: i9 D: e0 L, N" i5 R  D4 }在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>5 c7 C1 ]) s6 y5 A; _  I
  B. i! {% Y$ W9 z, m( O
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar5 N! V9 i* w, k3 A. X' K

9 d0 }  e4 \6 e" Y" j/ y效果演示:& t8 v' L+ C! U9 l7 b5 W
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上次開會不是說了嗎" x- f3 q5 _0 z. U8 v6 v
會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2026-5-16 19:30

By DZ X3.5

小黑屋

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