过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
0 }" w5 f- \3 l
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!4 s! M3 r+ `( l

5 }) o! @% B1 ?: d, X打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
- @4 o# W2 W! U點過以後就不會再出現了,除非客戶端刪除cookie。

  G+ v, X1 Q1 Q8 g* T' L
, Y! I$ n2 @0 K9 ^9 v; ?2 J* zAfter 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.9 ~7 L3 t/ y: l5 n/ ^+ O7 Z5 G  z" ~

: ]. y$ p  b* e' E以下是FIREFOX.JS的代碼
1 |% K3 e; V! y' g- i" x
, ^5 e$ w& I1 T! m( V0 g

  1. . L2 b1 C6 N* t9 Q4 E
  2. // This function does the actual browser detection" s3 y; q+ {- Q. N4 e
  3. function writeCookie(name, value, hours)
    % Q/ e9 e3 z: _4 E" a
  4. {
    7 u7 W6 b/ m/ L& f: J, J
  5. var expire = 「」;
      a+ c+ m+ f3 c  L* ?. M9 J' K
  6. if(hours != null)8 y1 i- e3 e' N6 A' i
  7. {
    ) S  C/ B2 C# Z% @( X: U6 ]: W* K
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    5 H, o! D( g3 a% X/ x8 O) [
  9.   expire = 「; expires=」 + expire.toGMTString();: _6 z1 w" c+ z0 @7 a
  10. }# N% _( b" g4 r( v) s2 x3 A4 m! a# G
  11. document.cookie = name + 「=」 + escape(value) + expire;3 u6 P7 ]" r3 p9 b4 A
  12. }
      T2 W! w2 o: c: |7 m  K
  13. // Example:
    / Z; e/ n4 a  c! H
  14. // alert( readCookie(」myCookie」) );7 @. Y9 U! n0 C+ K4 X# N6 K
  15. function readCookie(name)/ s$ M! h7 Z: g6 {0 E
  16. {1 G; V$ I) `+ r2 Z3 X, [
  17. var cookieValue = 「」;2 O" G# k& @# ?4 A) q$ e5 W/ ?; R
  18. var search = name + 「=」;" o' U2 H9 f3 @4 P4 a
  19. if(document.cookie.length > 0)
    8 U9 W8 L. U/ E/ n+ }
  20. {7 a# Z6 k3 ?$ _2 t4 `' M' P  ~
  21.   offset = document.cookie.indexOf(search);
    # K  R. P# c6 B6 G  B
  22.   if (offset != -1)
    7 O& t, K" m+ |) Y7 L) Z
  23.   {
    0 k( j* H6 [) N- h
  24.    offset += search.length;* z8 T( [) {- N" [! g6 F
  25.    end = document.cookie.indexOf(」;」, offset);
    ( O, p0 l0 j1 }5 S
  26.    if (end == -1) end = document.cookie.length;$ R( X0 W# d" l8 @
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    ) n- h: g. i  w
  28.   }
    8 ^" O; b3 v  K* M% L
  29. }. R; V! N( w& b* [, s$ r% G. \
  30. return cookieValue;# N3 p* A% O" @
  31. }
    3 F$ ?5 [: G+ h/ g
  32. function hasIE_hasIE() {
    # D( }+ E  b9 `  @1 D5 e
  33.   var ua = navigator.userAgent.toLowerCase();
    0 a# L" u, a, t6 ?8 D" ^
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    9 Y/ t% _9 M9 G" p6 G# v( M
  35.           (ua.indexOf(』webtv』) == -1) &&
    ; M0 A7 J. ]8 E: I! Q7 E7 B
  36.           (location.href.indexOf(』seenIEPage』) == -1));9 j5 t; H( n. x! G2 c; B
  37. }
    & P0 T, ^' U7 a  O* _( F# Q, C# q
  38. function hasIE_showLayer(whichLayer)! j3 D) M4 Y5 d4 y
  39. {# V0 c) ?3 l9 A3 s+ q
  40.   if (document.getElementById)5 V- h) C8 F% o, F# |) t; f
  41.     {
    ( g6 z: u8 u) J9 E* @4 H; d$ C: B
  42.       var style2 = document.getElementById(whichLayer).style;9 f8 Q; ~/ o( x9 O$ }, K9 L% j( \
  43.       style2.display = 「block」;4 R* S0 @  y; L" C
  44.     }$ p& U1 q  d2 H5 j5 ?* C$ V, F  g* Y( g
  45.   else if (document.all)/ V! f; b% u% b/ f& y
  46.     {4 H( t2 e) ]8 G. M
  47.       var style2 = document.all[whichLayer].style;
    4 [2 a  w4 p8 R7 t1 a
  48.       style2.display = 「block」;, X, Q. u& c! v( Q( A4 c  d/ n
  49.     }0 a' J' C, T/ m) G
  50.   else if (document.layers)
    ) r/ Z* Q  E9 f6 y) J2 R( k
  51.     {. t: V+ D6 i" z4 h3 U9 L' L" A
  52.       var style2 = document.layers[whichLayer].style;0 G$ Y  h4 O8 s5 N6 c- ]
  53.       style2.display = 「block」;1 O" \% \( m- S& i8 }4 C* R$ a- ~
  54.     }# _- f+ H. ^3 @
  55. }
    4 b# U: \3 Y0 O+ S! s
  56. // Hides and shows sections of the page based on whether or not it』s, m) {' l4 |4 P( B7 r3 F( e. ]
  57. // running in IE
    3 ?+ ^; z+ |! B4 m
  58. function hasIE_hideAndShow()# b* h% o8 P8 u2 X5 Y5 l
  59. {
    ) k# l& f+ G( c( R" K. [
  60.   if (hasIE_hasIE())$ H6 O- l3 |% g
  61.   {) Z: }/ X( k9 c' E* m  R
  62.     hasIE_showLayer(」hasIE_level1〞);
    ( E6 G7 l1 n6 P5 ]% A
  63.   }
    % t2 R! U- F1 T( L% y* E* n
  64.   else{}7 Z9 F+ X+ s. O$ ~  m
  65. }/ t: V9 r9 m) @3 ^: q6 S
  66. function hasIE_ContinueWithoutFF() {
    : K# C7 S- b6 e' M& D- f, Z1 [2 v% I
  67.     if (location.href.indexOf(』?') != -1)# I2 k3 n( z7 c1 S7 j8 }. |
  68.         location.href += 『&seenIEPage=1′;8 F! n' u7 z2 Q9 U. p4 l
  69.     else
    . C4 q' \2 b0 O& _2 R5 ?2 m3 A& k
  70.         location.href += 『?seenIEPage=1′;
    , M" ]. d; G! E' F- K/ X6 K
  71. }
    % [+ Y0 t* h+ `1 z0 G+ ~. P/ D
  72. function closediv(i) {
    5 e6 w2 j1 g* l: K5 ?; K/ M
  73. writeCookie(」status」,」showed24〞,240);9 m+ i- {3 m5 f$ H  @
  74. document.getElementById(i).style.display=』none』;
    , n6 c! X7 _7 }; ?$ _* Y
  75. }
    ! ?$ Z3 x8 |) s2 \* p
  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>」); ; l1 X& O6 X- L) N
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    8 h4 ?$ Q. [7 v) ~, W
  78. {
    7 W9 `. j9 X6 U: S) w
  79. if(readCookie(」status」) != 「showed24〞)
    ' N7 B! j$ n6 S  u! V* d
  80. {
    , }# [- d! R& ?3 B1 _
  81.   hasIE_hideAndShow();) C: q7 R; U0 [* E& O: R
  82. }
    ) H7 O) q5 c9 F* _
  83. }
      c' l" D" i# Z
複製代碼

2 \8 C& d7 @, |+ W, d
9 H7 |8 h+ N" p1 q) R在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
+ F  i% t% T' l/ Y. ^5 s8 k2 O) P0 D
  b( g4 |; E% i9 \3 U0 }1 ]3 VPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar% ^2 U( _2 D: _, d$ W( ?2 h1 G# U

7 q8 H" w4 Y. e1 r效果演示:
" D2 J! g  n! v! ~- h! E- o3 v
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上次開會不是說了嗎
# o2 A( Q# p- L: R1 f會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

GMT+8, 2025-2-19 07:07

By DZ X3.5

小黑屋

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