过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:* ]! U9 M# V5 p1 F8 }2 ~) n
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!# l0 \  N! E+ K: n+ R! o4 n. B4 V
5 D; D% D$ u  k" \
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
* D9 _+ T2 G% n8 i- Z5 P0 J' {3 J( N點過以後就不會再出現了,除非客戶端刪除cookie。
& o+ t# ~, x/ E- O: S# o

) R7 a4 U" L1 V( p# OAfter 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.' B8 z; J3 f4 ~

. ]- B, d7 p' B- O, ^以下是FIREFOX.JS的代碼
8 W7 z4 d; U0 e$ S  ^+ \  Y, M" m" B- N; j. `) Y0 E
  1. $ F0 l% I+ [* l6 [9 N
  2. // This function does the actual browser detection& o( S3 ~3 b, x- {
  3. function writeCookie(name, value, hours)$ J* h& H; Y7 Y& ?, b
  4. {
    5 j( e& y* E0 F; Z# S6 `
  5. var expire = 「」;) u0 P. P9 c/ q0 _3 e( J5 f
  6. if(hours != null)
    4 q3 B7 z" L# T& G* V
  7. {
    . ^7 ^7 a; q3 f4 a3 e) e9 I
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    / _- U4 q! Q6 i1 p
  9.   expire = 「; expires=」 + expire.toGMTString();
    0 o6 n% r+ a/ o" K; F
  10. }4 Z% {6 H; a9 ]! F8 E2 ^+ R
  11. document.cookie = name + 「=」 + escape(value) + expire;
    - ?# g) ^. s1 }( `6 ^* [
  12. }
    ' _# s& f0 U8 V0 a& k% Z
  13. // Example:) b- P. ^( Z: ~7 M: M# ^* ]
  14. // alert( readCookie(」myCookie」) );
    8 A3 g$ ~" b& e! B( S+ n8 U
  15. function readCookie(name)
    $ r4 v$ g9 j9 n  r
  16. {
    - Y0 G+ n8 q2 |
  17. var cookieValue = 「」;0 o- L1 q3 D0 ?% f. \7 Z! f) X; U7 u
  18. var search = name + 「=」;9 @( F( D' z6 @; M& R; d  j
  19. if(document.cookie.length > 0)
    . W$ |8 l5 ~( m! I5 U
  20. {5 F, q4 D- `0 ]& o9 }: t( G
  21.   offset = document.cookie.indexOf(search);2 t0 s# q, S2 j' g+ g$ q
  22.   if (offset != -1)
    3 U8 g. D" C3 x) C" f( O# |
  23.   {6 m! `- a* o" e% l" n& D
  24.    offset += search.length;5 c- C( w, i% a0 ^. k
  25.    end = document.cookie.indexOf(」;」, offset);, m! M& J! h( `% i
  26.    if (end == -1) end = document.cookie.length;) Y. S% ]6 g" I1 A0 Q
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    ! S! g- w, z. d% r! a1 f, T5 I
  28.   }
    - }6 W- g0 n, _
  29. }$ l& u+ n- F* K: D
  30. return cookieValue;
    $ L( k' Q* {/ }, o/ K5 j$ V4 W3 K9 i
  31. }
    7 P  E1 _7 C5 c/ d' |
  32. function hasIE_hasIE() {5 Q2 X" E7 F. q& @9 B& ~  o
  33.   var ua = navigator.userAgent.toLowerCase();1 {' y7 g: M- m6 ^0 u
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&
    : j  e( h3 S( _9 r
  35.           (ua.indexOf(』webtv』) == -1) &&; w& X3 u. V$ Y& v% o- @* E, g0 R9 g
  36.           (location.href.indexOf(』seenIEPage』) == -1));3 V4 v& o. o  G% [- v( q6 M9 k* U
  37. }( n8 T# ^- f9 k4 ]& h
  38. function hasIE_showLayer(whichLayer)' S. {- u; A0 o6 n* z
  39. {; y2 u8 N; N7 e. s5 A( b- }
  40.   if (document.getElementById)6 j. [! i$ p: I, u9 @" |, C
  41.     {
    , f5 w( B. S5 \" t+ I/ K: `
  42.       var style2 = document.getElementById(whichLayer).style;
    7 D6 B! `8 J- `: X
  43.       style2.display = 「block」;# j0 \( Y" }- Q/ y; j" P9 b. ^' c2 n
  44.     }; _" t+ Y2 y4 q7 _/ D6 S2 [. A
  45.   else if (document.all)
    - ?& K2 z0 c9 }* Y$ z! x
  46.     {5 O% z! ?! g2 K6 @
  47.       var style2 = document.all[whichLayer].style;
      W7 C1 ]' Z. w5 y
  48.       style2.display = 「block」;
    2 H. {2 L, V  t5 t* z
  49.     }  z( i( N* N7 \4 ^6 o
  50.   else if (document.layers)
    % R0 P5 b, t  e- o
  51.     {" e0 F2 N$ l! Q- f5 A0 g, W* F
  52.       var style2 = document.layers[whichLayer].style;
    2 j: z/ Q" @8 V! A( \! o. `4 A
  53.       style2.display = 「block」;$ ?6 y; A. ]: |. b% |* D1 p
  54.     }
    ( i# M7 q9 J8 w% W
  55. }
    3 C! i  S$ j# ~& w
  56. // Hides and shows sections of the page based on whether or not it』s8 p# v. Q: b$ G5 W. ], W
  57. // running in IE
    5 m" M9 I. k8 F3 S0 |
  58. function hasIE_hideAndShow(), ?0 \. c+ h6 y$ y/ a; `
  59. {
    1 y! [* a' P9 f" J' Z7 M, @
  60.   if (hasIE_hasIE())5 _$ ?  C; W1 a) }$ @/ F* u' h
  61.   {
    ) P# S( l, S3 d3 S1 J
  62.     hasIE_showLayer(」hasIE_level1〞);
    4 \3 |% R; K) R' w2 B" {- y( q: v
  63.   }
    ' K- e/ n+ H, h7 G( K/ Q
  64.   else{}
    9 w" O$ u. J  f6 \" P1 e" x
  65. }) a: j! S  ]. M* E* D3 o
  66. function hasIE_ContinueWithoutFF() {
    ' p( G. S' ?# Q: c% J% ^
  67.     if (location.href.indexOf(』?') != -1)
    ( V! p: Y2 I' n! M- Y4 l6 W( f* `; n
  68.         location.href += 『&seenIEPage=1′;3 l6 S4 h8 b8 Z9 q) M* o; T- c
  69.     else
    $ e7 {9 s6 A/ b- y
  70.         location.href += 『?seenIEPage=1′;
    - e3 Y1 j6 q0 l9 f5 g& S
  71. }1 G8 h2 R- x, R+ n) ?4 f6 g% Z
  72. function closediv(i) {5 J- K  {! _- O% L, V4 R6 v
  73. writeCookie(」status」,」showed24〞,240);
    9 F5 Q' s8 O* S3 @  u
  74. document.getElementById(i).style.display=』none』;
    . }5 S3 a3 t. z
  75. }/ Q! z6 f8 a: L5 i( L
  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>」);
    . S0 I! D: T; {6 R2 ?
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)1 R: z# u9 r( e+ j. A7 y
  78. {
    $ a* E+ q  F! n  X+ k; T! N
  79. if(readCookie(」status」) != 「showed24〞)7 Z( x! X/ m: ]. W% s
  80. {
    : l# t$ X7 A8 h3 @! x6 g( S
  81.   hasIE_hideAndShow();
    # ~3 h, t/ |1 B2 i9 \6 w* r
  82. }
    9 F' B$ M% P( _* F7 ^
  83. }
    ; d6 V6 k) t& _
複製代碼

, h: `7 N. Z) C" [  b$ U/ ]5 ~1 k6 X
在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>  k3 U: w3 [5 e+ ?
" l. t' I4 L$ h; q5 Z
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar# M" e- E8 F2 K) V% {8 i
; P9 E- X8 L% a* S5 B
效果演示:
# h3 `2 V# R% H# R- k7 n( ?
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上次開會不是說了嗎
: `; K4 `. {# y' ?& @5 N會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

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

GMT+8, 2025-5-5 12:11

By DZ X3.5

小黑屋

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