过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:: D) A, Z; |$ E
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!
6 G1 l- h" _: @2 c
; x( L# u- b. N5 U打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
( u# ?9 K9 h$ U8 a/ K; J" H點過以後就不會再出現了,除非客戶端刪除cookie。

" Z' W& e& h4 @8 X/ {9 m% Z % _' x: A/ ?" V# I& C2 F
After 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.
0 @7 @' @4 ]5 p, J: U6 z3 f8 U* P/ ^) C. ]+ f/ s5 R
以下是FIREFOX.JS的代碼
9 i9 h1 }7 d0 x) u* Z: |& y: n* i# a4 t, X* `; M
  1. & H1 C! l  H8 N. [; |4 p
  2. // This function does the actual browser detection3 ^  y& Y$ p- H/ y! W& j$ D! A
  3. function writeCookie(name, value, hours)' U5 D3 }9 Z! h
  4. {! ]" a- @6 u* e; z6 U
  5. var expire = 「」;9 Q4 n: H$ A% W1 r. j6 c0 O
  6. if(hours != null)& u+ V5 V7 S# I8 j- Q1 C- s; ~
  7. {
    $ ?7 Y+ C1 E& G+ J0 I8 R
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);& U8 I( |, D6 x% c
  9.   expire = 「; expires=」 + expire.toGMTString();
    ( |' O7 w0 z) [, X3 ~" M" A, g9 P
  10. }- I( h0 |" a& e6 Z  x8 n& o
  11. document.cookie = name + 「=」 + escape(value) + expire;( l7 K, D9 ]5 w* l2 s( R
  12. }, ^& ~4 [  i2 f9 F( n0 t- e
  13. // Example:; X# V* D) D+ o, Z# `
  14. // alert( readCookie(」myCookie」) );* U* X6 \/ |. H" k
  15. function readCookie(name)
    5 @/ W3 O3 s' D: |4 y9 Y( n
  16. {
    : q" ^7 x- e) }, a9 G+ ^
  17. var cookieValue = 「」;
    : _9 A5 I* ]$ X1 W- l
  18. var search = name + 「=」;9 S7 r6 L$ b" Z: p  m
  19. if(document.cookie.length > 0)% d. G/ D# _3 u
  20. {
    ; c. v. Y1 v: h
  21.   offset = document.cookie.indexOf(search);
    ! W" z: O/ g" g6 _' ]& k* e
  22.   if (offset != -1)
    7 N2 C# l. {, P( L2 T; n
  23.   {5 ~9 {+ w6 |. j# h1 N* t' I
  24.    offset += search.length;9 O; \' I1 g  }$ a9 R! U
  25.    end = document.cookie.indexOf(」;」, offset);5 T) }) G. Z) r' ]% @
  26.    if (end == -1) end = document.cookie.length;
    + Y) R' Z' ^; ~' H! b5 W; T! U/ G& B
  27.    cookieValue = unescape(document.cookie.substring(offset, end)): k  M+ O, w  d  t. e* a
  28.   }
    3 ^2 [$ f) ]' ~7 r
  29. }
    * E4 l1 I' U. D! x: ^! U1 U- s
  30. return cookieValue;
    ! @. B# v3 K% D& m. [
  31. }
    / B! C# M7 \9 ?' Y3 @
  32. function hasIE_hasIE() {3 m) T& o/ G9 m) p3 U
  33.   var ua = navigator.userAgent.toLowerCase();. w$ a% V$ h, n  ]! M
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
      j' _) B: \! w( N$ J
  35.           (ua.indexOf(』webtv』) == -1) &&" x" a8 m, J1 s( \0 v9 M# G0 l' j
  36.           (location.href.indexOf(』seenIEPage』) == -1));3 V& m; {; h+ W" d1 r
  37. }
    ( b, Z& {5 q: v2 W& S
  38. function hasIE_showLayer(whichLayer)
    4 J  |7 ?  c1 r1 I" ^( D, h
  39. {
    : N5 M' H' N; I7 e. [% T, B
  40.   if (document.getElementById)* {$ E' L% {, m: W0 j1 O
  41.     {
    : ^2 d5 [+ D2 N# r" G/ O) S
  42.       var style2 = document.getElementById(whichLayer).style;
    " e  e1 F; l/ ]8 o  |" \) k0 ]
  43.       style2.display = 「block」;& s; t3 T% u) V
  44.     }
    5 b7 v+ |& Y" n. O
  45.   else if (document.all)7 k+ O7 [3 P. W7 H9 w& P
  46.     {& k8 }7 [; Y* i& s+ G4 R
  47.       var style2 = document.all[whichLayer].style;
    . ^8 K5 ^' @; P
  48.       style2.display = 「block」;
    * ^  A6 a" j3 s- v- i/ R
  49.     }
    : T( l8 c* w) i' o  I# E
  50.   else if (document.layers)
    ( I6 b& b) X7 [6 n+ h
  51.     {( J+ Z7 @% |# l
  52.       var style2 = document.layers[whichLayer].style;
    ( ]* w: b4 P- r/ s% \6 j3 C
  53.       style2.display = 「block」;) e* ~- x  ], v# s, x4 D
  54.     }
    ' k) d* r" t1 C
  55. }3 O* o- z4 a: |
  56. // Hides and shows sections of the page based on whether or not it』s# w# u6 _4 T. y
  57. // running in IE- \$ h) e0 T' k) P' x" s
  58. function hasIE_hideAndShow()
    ( b; [# C& O$ D4 }( x
  59. {
    9 H  A' [6 A3 S. U$ C$ I
  60.   if (hasIE_hasIE())
    4 N2 @& r/ A9 V) A0 O2 H
  61.   {
    # A& v$ [6 c* k1 w
  62.     hasIE_showLayer(」hasIE_level1〞); " X  U% H1 [9 |+ N
  63.   }  ]" ^8 V) v  Z- a, }8 M, `
  64.   else{}
    3 f8 u0 O: ^3 B! [: y
  65. }
    7 J6 U4 `% h& c
  66. function hasIE_ContinueWithoutFF() {
    , W0 w: w' o; O
  67.     if (location.href.indexOf(』?') != -1)( f7 j! d1 \% V) O9 f
  68.         location.href += 『&seenIEPage=1′;: ]( U& y+ O+ a3 N
  69.     else
    $ A/ I) m7 b7 l8 K
  70.         location.href += 『?seenIEPage=1′;
    & A' Q3 }, ]7 G$ E6 s' v
  71. }8 s) Y: t0 g7 R8 b, q8 H/ h  H' _8 Q
  72. function closediv(i) {
    ) N5 |# U( g6 e( I: M5 x
  73. writeCookie(」status」,」showed24〞,240);( M1 b! D% v# x& w0 c5 i+ I
  74. document.getElementById(i).style.display=』none』;
    , w/ a9 Y+ T& u8 X. h" ?  k& _1 \* K9 z
  75. }
    6 O1 m0 C( ?3 b3 s) x. }
  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>」); * F% k9 \1 ^9 b, ?0 T7 @' P) ~
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)) x/ z# D6 T6 q& h% E
  78. {
    8 r5 b; [. m2 ^& L- m# x$ J8 D+ `9 M3 u
  79. if(readCookie(」status」) != 「showed24〞)8 a( n6 m& ^5 @  I- y: o, Z
  80. {/ S6 W* l; G" x$ \  H3 |$ Q' B' R
  81.   hasIE_hideAndShow();
    , [6 F! x9 |- p5 z* j# P
  82. }
    ; u" k# x' T+ S- w7 F
  83. }
    , C! \4 _0 X1 K7 M; ]/ M$ K# Z
複製代碼
# M+ z9 v- V! c# ~& C) H
9 g0 L& N% H) L* [% t+ b2 Y
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
' f7 I2 Z) ~- E1 b% i
# Z! Z  L# a, L1 r. o/ nPackaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar+ j2 D. H2 x0 U; t2 m: N. j' x, |

  x4 W! I$ c1 V: r4 E效果演示:" S7 I8 ^: `7 M
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上次開會不是說了嗎
4 `% L, R( T  [8 p$ U會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2025-11-27 20:22

By DZ X3.5

小黑屋

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