过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
1 g  X* L6 R% \$ `2 Q' b3 _" u
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!; n$ c- C2 c! h$ b; z
$ X* F/ ^1 o" N2 B
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。8 u6 j, R. {! h. U+ {, H- @3 S
點過以後就不會再出現了,除非客戶端刪除cookie。
) [. x- M( V1 P% I% [7 x4 e* C

( W6 N5 _& X& m" r  Q2 z) KAfter 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.' f: k- I  u% l! h! K

/ H. T1 s+ W' Q, j5 R" H- B2 l以下是FIREFOX.JS的代碼- g3 x; C9 N  p' h3 u

  u  G& w/ E0 @: R

  1. 6 V" G& \& c2 ^; N2 J( A
  2. // This function does the actual browser detection( x: m/ J; L4 z. v7 n
  3. function writeCookie(name, value, hours)
    & D' l) S6 [5 h
  4. {4 l" ?+ _" a' F& _0 @! {- @
  5. var expire = 「」;5 A) Q8 _. R7 t
  6. if(hours != null)
    # y! R6 d: P! h
  7. {
    1 S9 @# [) H6 }. _0 N
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    ! @7 P1 `3 M- {# ]( S" }- h
  9.   expire = 「; expires=」 + expire.toGMTString();
    / [; A& o6 H* O2 M1 Z
  10. }% O) s0 G4 K  h
  11. document.cookie = name + 「=」 + escape(value) + expire;
    & r  [; n! `5 w* M( d( r: U+ v
  12. }
    * X& ^: X' g5 B2 b
  13. // Example:: p/ O" N2 f+ t( P" a8 I
  14. // alert( readCookie(」myCookie」) );3 {' @( k) l6 P0 e. O
  15. function readCookie(name)
    . i1 O3 q) N' u! `: |3 |
  16. {
    4 ]2 U  c! _3 C5 q  ]; j
  17. var cookieValue = 「」;4 u% o( i1 J; s7 Z! E3 ]
  18. var search = name + 「=」;- v: E! s. X+ r9 |1 L$ v! \- e/ {5 s6 N
  19. if(document.cookie.length > 0)' i* R7 r: ?8 j( J
  20. {
    0 F& |" D; ]* g# J( L- L
  21.   offset = document.cookie.indexOf(search);
    - h4 v1 x* |) n7 K8 m: a  F
  22.   if (offset != -1)
    7 {3 u2 R8 \2 R- y" c3 }; Z. z8 k
  23.   {
    + e7 T; d8 N; q+ [
  24.    offset += search.length;
    3 B, ~& x# E1 o
  25.    end = document.cookie.indexOf(」;」, offset);! u- R0 j  t; t7 x7 I% p* U
  26.    if (end == -1) end = document.cookie.length;0 S( k' I$ g1 r* I9 ^6 `" m1 s( b- q
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
      \, n$ A- ]* K
  28.   }
    $ K. k; N2 b9 g& V4 Y+ X  n
  29. }: k# z4 _9 e4 I
  30. return cookieValue;
    + Q6 ?+ _4 V5 |: `' z( P; W3 X" J
  31. }2 E0 \: M& @* P( k7 d9 P0 I
  32. function hasIE_hasIE() {4 _& ~8 \3 Q( J  X. a7 t1 s- X! e. M
  33.   var ua = navigator.userAgent.toLowerCase();" y  ]0 d+ ]: B+ Q# i- v
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&  N0 c' f' `! o
  35.           (ua.indexOf(』webtv』) == -1) &&% F8 {, P0 a1 R- W% n4 D) o5 G
  36.           (location.href.indexOf(』seenIEPage』) == -1));
    $ h( P% q) D8 o0 u& v
  37. }
    3 R& l4 I$ x6 ]
  38. function hasIE_showLayer(whichLayer)
    ! J+ \8 L/ `0 L+ {2 M1 Q
  39. {
      }$ o3 X  V, I- K! w( c! p
  40.   if (document.getElementById)0 W8 P- Y* d0 G0 [. K; x7 I" [) t1 _" w
  41.     {" j' P( s0 Q( C; |6 e! b1 E
  42.       var style2 = document.getElementById(whichLayer).style;2 J+ j( e3 T, b
  43.       style2.display = 「block」;% V; c! }  I- G# Q. V( j/ {
  44.     }
    1 ]2 z! R7 {; k, Z2 _
  45.   else if (document.all)* C5 C2 r+ N0 ?- w: T
  46.     {
    + j' C0 h5 S2 l$ L' K
  47.       var style2 = document.all[whichLayer].style;
    8 [, t* F; u5 N
  48.       style2.display = 「block」;
    * v0 v# I# _4 i- Q
  49.     }" A- J1 l$ R$ \. a% b, E1 l
  50.   else if (document.layers), h2 b0 Z1 e8 L' U8 Y4 W
  51.     {$ B$ P7 B. d* L: b( T, C5 {
  52.       var style2 = document.layers[whichLayer].style;
    9 q  v: i$ a8 r) \
  53.       style2.display = 「block」;
    , N, ^9 \5 J. T; }  c0 a" z: A* U
  54.     }
    $ b- ^4 \$ o: e& E
  55. }9 b: `- Y, x; Y' R
  56. // Hides and shows sections of the page based on whether or not it』s
    " P3 ?, s, \; X. V9 ]/ B
  57. // running in IE
    ; ~6 z3 f$ T2 n
  58. function hasIE_hideAndShow()- z7 n5 O+ u( l# E$ S8 y4 H
  59. {
    : E* A7 h+ i6 Q+ f
  60.   if (hasIE_hasIE())
    ; h/ ]5 W& l# l( a) f
  61.   {. F& {" M0 f/ }/ }! M
  62.     hasIE_showLayer(」hasIE_level1〞);   F) @1 L* O! h; h8 c
  63.   }+ P4 Y7 u; V- P" I/ h: i/ u+ ]
  64.   else{}; \; b( j9 m% L7 l* B& ^2 B
  65. }
    $ [3 U2 ]0 A* K. M
  66. function hasIE_ContinueWithoutFF() {( ?  R7 c$ _1 F& Z0 X8 n: y
  67.     if (location.href.indexOf(』?') != -1)& I( t, N) j- i0 z$ r
  68.         location.href += 『&seenIEPage=1′;, W6 S. J! G" }( E) b
  69.     else
    ' G2 j6 [8 M- |* l3 I
  70.         location.href += 『?seenIEPage=1′;, ?9 F) H! Z5 U  k+ L2 j5 U$ m0 b
  71. }
    8 i* D. k9 V! s$ |
  72. function closediv(i) {6 T. O1 V, u8 q5 g$ ^
  73. writeCookie(」status」,」showed24〞,240);6 f" \; j# u7 h$ ^$ o' W
  74. document.getElementById(i).style.display=』none』;
    0 Q  c( U* s% g7 t1 R9 x/ S
  75. }
    5 G) z: c# u! r7 J9 r: d
  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>」); 0 h, }8 Y) F' W" f- e
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)7 Q1 l# ]# v' E1 q9 U) a
  78. {  O% g, T0 ?! c) v3 U5 \: o
  79. if(readCookie(」status」) != 「showed24〞)
    $ [# j  ]) P% R. ]; k' {
  80. {
    . X: Z$ S1 V' n0 E5 E
  81.   hasIE_hideAndShow();
    9 J7 k9 {) B0 D; m
  82. }
    3 Q$ h7 ^+ E; I
  83. }* i8 l% A0 h/ s; v! y
複製代碼

3 Y  G5 d1 `: @; D7 s( K' m
$ K! _# w. y- t9 c0 {在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
3 U& ]" l. i' k( B: N% G- d 4 K0 k  \  X  _! q: B' Z5 y
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar8 Q& ~- Y! o- [3 y7 J4 c" b, l
: B8 U) k( V8 M0 C
效果演示:
4 P4 Y: D+ y3 n9 Y2 u* e1 `
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上次開會不是說了嗎
9 b* S& i7 {/ z* J會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

點基

GMT+8, 2026-6-30 04:42

By DZ X3.5

小黑屋

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