过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
, |8 Y# S: m. r
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!+ r' K( Z2 C' F
( f9 a$ N  q2 y& Q5 d
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
2 y5 S& {+ x2 I* ?點過以後就不會再出現了,除非客戶端刪除cookie。

1 K  ^$ M$ o* A" `% T8 `& l2 b- d 6 j0 {7 z2 q, ?' ?) M; {$ X: U9 _
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.
; ]2 `' ?3 }' K- S, y+ `
8 Z+ P! X2 j5 y1 g' M以下是FIREFOX.JS的代碼
. H) e: [* p+ z7 `* _
( Q9 X% p/ Q. l2 c0 E
  1. 2 ]- T+ M; c/ t4 ?
  2. // This function does the actual browser detection
    % b' c8 f7 r6 k4 T9 D
  3. function writeCookie(name, value, hours)4 v: g1 v2 y  c* E
  4. {
    , k# P+ J/ u' k* l2 j
  5. var expire = 「」;
    2 i0 u! G4 n: Z% Q7 c' o( \, g
  6. if(hours != null)9 g/ Z4 h9 c' W8 M" X/ L7 u4 I
  7. {  {4 K% O! Q. X! J. Y
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);/ z) n8 C. `+ ^2 }0 z
  9.   expire = 「; expires=」 + expire.toGMTString();+ p8 ~& [6 W* V4 Y( x' U
  10. }0 i2 f. }0 J' ]4 y7 q- b" K
  11. document.cookie = name + 「=」 + escape(value) + expire;4 N4 g, H( L! ^" `; `
  12. }2 I3 u& L) w- Q( f# i% c; ~
  13. // Example:& P) s. l1 a2 K. H3 _$ j  X, Y
  14. // alert( readCookie(」myCookie」) );% \( ?5 i0 A; [! S. s# g
  15. function readCookie(name)
    1 d/ b  z+ m$ P, E2 Q
  16. {
    & r& K1 d( g# r( F+ z. N! Z9 g
  17. var cookieValue = 「」;( |$ a% ^- _0 W* M! V
  18. var search = name + 「=」;
    * I1 i) b+ C# V% s/ h3 }
  19. if(document.cookie.length > 0)
      v* @. ~& L  g4 J+ l
  20. {' G5 [  N2 d* X! Z. b. |
  21.   offset = document.cookie.indexOf(search);
    ' q3 P4 d" G2 a
  22.   if (offset != -1)
    / Q! S, \: h0 s1 r! ?- q; z7 ~6 k
  23.   {
    / p6 A/ r% F4 h9 k  f6 Z6 T3 J: l% N
  24.    offset += search.length;2 W  i% s: \) N) ]( |& X1 G2 v
  25.    end = document.cookie.indexOf(」;」, offset);' L4 @3 W# U. _  _6 n% @$ w: l
  26.    if (end == -1) end = document.cookie.length;+ a. g- k7 C5 ?  Y
  27.    cookieValue = unescape(document.cookie.substring(offset, end))
    6 ]9 ]: ^. J$ K4 c+ W- c; k
  28.   }
    ( Q. |7 W% j( N' d: Q
  29. }# m: ^0 P8 \! L/ ^- q
  30. return cookieValue;/ U6 s1 C; D; ?% Y# t! N' P
  31. }/ p8 _8 b! T0 L' k. B% e' H4 b
  32. function hasIE_hasIE() {
    2 Z6 v" y( b/ z9 S7 q9 _
  33.   var ua = navigator.userAgent.toLowerCase();' H: t: H& `9 p# A. a% f
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&8 F5 a  H/ u% R' m3 Z- g: j5 v
  35.           (ua.indexOf(』webtv』) == -1) &&. x, G5 L; \2 @( D3 K$ q
  36.           (location.href.indexOf(』seenIEPage』) == -1));7 V- j* X3 {2 R. j
  37. }
    6 K$ _6 X6 G: g: ^
  38. function hasIE_showLayer(whichLayer)  w# m/ P' F, {0 Q, l  J
  39. {0 X1 t) n' B8 Y8 @, L
  40.   if (document.getElementById)2 {$ L7 j5 M) i6 v" w! ]
  41.     {
    . T6 z. a; V& m; d
  42.       var style2 = document.getElementById(whichLayer).style;
    7 Y7 f* R1 a9 F! u7 e: p
  43.       style2.display = 「block」;
    0 Y8 H$ H5 n  q! @, e  ?
  44.     }; L+ g, H4 K: S
  45.   else if (document.all)5 b) _3 N% h" i1 \$ ^3 |5 K5 z/ f# m
  46.     {( s8 Z6 h* Q3 |0 p
  47.       var style2 = document.all[whichLayer].style;
    % Z) Q& I- \% _3 w$ U2 I
  48.       style2.display = 「block」;
    " W5 V6 z) `) q4 k7 t( \# U6 T
  49.     }
    8 p) Y& U; {3 ^7 O4 F# `5 f& _
  50.   else if (document.layers)( n+ I( E1 e& S; [1 T6 g0 F! U
  51.     {
    ( D3 i' V% P6 ^: [
  52.       var style2 = document.layers[whichLayer].style;; _4 r% c6 `  z- w6 }& y. |: I
  53.       style2.display = 「block」;% N4 B3 g; t7 h
  54.     }: A3 k1 F( X% q! V. d: y% p
  55. }
      N! H) A, G, Y/ M
  56. // Hides and shows sections of the page based on whether or not it』s% Y. A" h7 g( e& w( y! c# X
  57. // running in IE: q& P9 K! I5 v7 E2 p& G, _
  58. function hasIE_hideAndShow()
    : w" A7 N; G2 B7 x* i' n
  59. {
    $ N: {2 N0 m4 o5 \
  60.   if (hasIE_hasIE())" j: d, ?! ^' c) r$ ~# g; ^+ r+ T6 Y
  61.   {3 t6 t0 \; {% E; c6 B: D9 I
  62.     hasIE_showLayer(」hasIE_level1〞); % y" `6 |+ o/ |) D$ ~8 ~, }' J
  63.   }/ q. @& {- s( E4 e5 r1 s8 t  t
  64.   else{}
    ; T6 K4 W' l1 s0 |
  65. }" s/ H* q* R6 D7 p& b7 L7 t
  66. function hasIE_ContinueWithoutFF() {( V8 k+ l- D5 ^  x" b
  67.     if (location.href.indexOf(』?') != -1)
    3 A, E  z/ u5 [1 |0 T; U
  68.         location.href += 『&seenIEPage=1′;) t: }7 n1 p1 L/ g
  69.     else# Z* H+ I& |4 m# o8 E
  70.         location.href += 『?seenIEPage=1′;
    ! m! q) A: Y/ [, b
  71. }1 E+ q0 X5 T3 d, M0 O
  72. function closediv(i) {
    4 O% F- ^: j& i8 `1 T( q
  73. writeCookie(」status」,」showed24〞,240);# @. I/ d( s  L2 p7 l
  74. document.getElementById(i).style.display=』none』;7 C0 y. C& l4 d3 y& s! k
  75. }
    7 R, O9 A' x6 D. 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>」);   M; A0 H9 S+ e7 R$ W
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)1 t, m6 s  R6 z, G- T* B* L3 x
  78. {' ?, e8 a5 }6 Y& D( u& B( X/ d
  79. if(readCookie(」status」) != 「showed24〞)
    ) e7 K" r; X6 Y) R! h6 W2 N
  80. {
    1 i9 Q/ C0 I) g0 y
  81.   hasIE_hideAndShow();
      ^+ w4 P- p) Y" e/ ~4 P1 `. H
  82. }
    2 Z) O' ?, R# e' L. I: ?, e
  83. }/ d3 H' P- b5 s" J% d
複製代碼

# G' o+ |6 q1 {8 c
3 [$ Y$ @9 \+ L/ Y7 d' u在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
- Y# Y" ?1 f  Y6 I % z  i+ f# A( }
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
& E) k4 D5 A) v/ q8 e
- ~7 B0 ]" k. O  B8 {9 {效果演示:# _# |9 ~/ g. d* D& ~9 k% Z" g
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上次開會不是說了嗎
6 h. P+ \( [9 Z" e/ H3 E; T: s# l% m會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

點基

GMT+8, 2026-3-14 22:33

By DZ X3.5

小黑屋

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