过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:  O7 K7 W0 q- v! J: z/ i
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!- f3 D, X0 p5 C) i  o/ k' P

7 e! c$ l5 c$ E1 {! q; }打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。  h) G7 m( f1 U9 V* w  ]
點過以後就不會再出現了,除非客戶端刪除cookie。

/ M6 ~# {: m9 }# a1 E9 p- S
6 q" M6 k7 U4 [% w! p! DAfter 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.
) y/ k. p- r3 v1 h. b3 Q& j
+ l+ R5 g  W9 O4 I以下是FIREFOX.JS的代碼
& P; t2 k, K! J  P. }9 v0 _! e/ Q, t+ d* ?+ Q

  1. ) J- E1 Q) @7 o% S' q. u
  2. // This function does the actual browser detection5 g5 U1 m5 A3 }" F" v" o8 {
  3. function writeCookie(name, value, hours)
    # O% {5 G6 X' l# a# z3 K# N
  4. {
    0 g: H( ~, M# E! Z$ `0 D+ @
  5. var expire = 「」;
    9 H$ l: C; e! a/ Q6 }$ Z2 q
  6. if(hours != null)
    + L! U3 o) n" l, O, e% @
  7. {
    5 `/ u5 J* z  T2 u1 C  D
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);
    6 @% O) c8 _& D
  9.   expire = 「; expires=」 + expire.toGMTString();
    2 i4 \* C6 ]( W' j5 I' `
  10. }3 s* ?) l& B. u9 {, {
  11. document.cookie = name + 「=」 + escape(value) + expire;
    0 ~/ z( Q0 W# X/ r
  12. }/ P& R' z. M6 J1 \9 V, x; A
  13. // Example:1 o& M! I! M/ u3 m; \3 c9 w
  14. // alert( readCookie(」myCookie」) );
    # h* W' T; r7 H& L, l
  15. function readCookie(name)
    # f2 u% @+ x, d* w6 [
  16. {: f. M4 q, m$ b, y
  17. var cookieValue = 「」;
    * m4 O) T, h% I4 W( }0 G3 {
  18. var search = name + 「=」;8 ?/ B( j$ ~# L8 j" h. e. v
  19. if(document.cookie.length > 0)4 F  I) n( S- J2 k
  20. {
    " z* n- M9 T* P( l% _# s
  21.   offset = document.cookie.indexOf(search);, ]1 F9 d/ R3 u3 x$ M% h; i1 j
  22.   if (offset != -1)1 P- z+ u! E# ^
  23.   {
    & X1 h7 Q; ]8 a( N
  24.    offset += search.length;
    $ G3 z7 h" s! v/ |6 v
  25.    end = document.cookie.indexOf(」;」, offset);# \7 h/ b: r( n; T* X6 I$ s
  26.    if (end == -1) end = document.cookie.length;# k" H) }% h4 K: ?0 g( G; }
  27.    cookieValue = unescape(document.cookie.substring(offset, end))) m2 @" n$ o, H" \0 L' B) L9 H& ~
  28.   }% q1 N+ M( I2 h. T
  29. }" ], `4 T6 C5 E- M
  30. return cookieValue;  P; S; f$ E! O/ s7 |
  31. }' U( C$ N8 Y; j4 \
  32. function hasIE_hasIE() {' c+ g1 i! h* a# D7 Z
  33.   var ua = navigator.userAgent.toLowerCase();
    # J. v/ W5 d. y' |4 }1 ^7 g2 u
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&9 b2 g5 t' d$ U# C# U+ _
  35.           (ua.indexOf(』webtv』) == -1) &&
    8 B7 J1 \1 o" _
  36.           (location.href.indexOf(』seenIEPage』) == -1));" k5 W! |; E0 u  {' Q( L* t
  37. }9 g0 r' b2 I! [
  38. function hasIE_showLayer(whichLayer)
    # v: }4 R5 x$ i/ J! q& p) `
  39. {1 ~; `1 M( V0 L( g, ^0 j; L
  40.   if (document.getElementById)
    9 d* h$ U9 T7 G( s# `2 t! Y8 O
  41.     {; `% }" q& ?% [, o
  42.       var style2 = document.getElementById(whichLayer).style;% q  |. P7 D3 ^2 G3 m; L4 p$ L
  43.       style2.display = 「block」;
    % r/ f+ K+ R9 c) o) j9 m" {; ^* o
  44.     }
    8 V' }; y1 k( n% m4 q5 p$ A
  45.   else if (document.all)
    ) F- h9 b5 z! M% v
  46.     {
    / X' j# V# S+ z" k+ y: i5 d
  47.       var style2 = document.all[whichLayer].style;
    & M6 S, z6 i) N& q1 q8 X4 S
  48.       style2.display = 「block」;1 L6 J( Q2 H$ {; B9 h* z' R
  49.     }
    9 x! q/ P9 G: U) Z. Y
  50.   else if (document.layers)
    ' T8 k( a* @7 C/ R+ c- @
  51.     {* q' b; {3 x8 p3 w
  52.       var style2 = document.layers[whichLayer].style;
    % F  r. }) O3 S
  53.       style2.display = 「block」;
    : d* M3 g6 f$ C
  54.     }
    " O+ r; t. \. f! l. h  W
  55. }) y& A( n2 d7 o2 t8 y- H+ h, L
  56. // Hides and shows sections of the page based on whether or not it』s
    8 k6 Q! ^6 z; M. w; X
  57. // running in IE
    + r% A' ~; g5 T! [! r
  58. function hasIE_hideAndShow()) v+ W, u  h& k3 D  a
  59. {8 S' `& T3 H$ @( J8 J7 i- N* y
  60.   if (hasIE_hasIE())
    9 [" L/ H/ S  z
  61.   {
    % E* l' @$ k4 Y. }
  62.     hasIE_showLayer(」hasIE_level1〞); - v- z  c# v0 d7 ?: `5 Y
  63.   }
    & h0 p3 V/ B6 T+ \- y3 ]2 A1 Y
  64.   else{}; q0 g, b, u* S6 y
  65. }7 p/ W- s) z% E4 S+ z$ ^% B
  66. function hasIE_ContinueWithoutFF() {( F# a  Y% `" u% h) k7 ^
  67.     if (location.href.indexOf(』?') != -1)8 t' l7 S2 x- M  W
  68.         location.href += 『&seenIEPage=1′;
    ; e6 A0 M, Q" r+ A/ _$ B4 _9 T. f
  69.     else* s+ m& j$ {4 Y
  70.         location.href += 『?seenIEPage=1′;1 p. a; x$ E( z$ e
  71. }- q* f( e# o" i! I8 M
  72. function closediv(i) {, B6 A- f* p3 w9 M9 R- @
  73. writeCookie(」status」,」showed24〞,240);8 x4 u" ]9 V, U% M9 P0 v: d1 k/ N
  74. document.getElementById(i).style.display=』none』;5 X# b! C& O" z$ {
  75. }
    / }2 [; B5 ^$ b; W
  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>」); ; f8 G3 y1 U8 R5 K) Z: j1 o" W
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    3 r+ L! b0 a" N" W6 D6 e
  78. {  f9 k1 ^3 C2 K* v. U
  79. if(readCookie(」status」) != 「showed24〞)3 U& V/ S4 n2 l: {  j1 N9 x. \
  80. {) U( }1 a2 ?; K+ L
  81.   hasIE_hideAndShow();' Q& N- {$ H. b0 Y+ I) V
  82. }- W2 M0 [# O# P' `' ^- X/ e3 f! V
  83. }
    5 N- l7 r$ r8 L  N. p5 R
複製代碼
" I! U  |" [) T1 q

# |3 R$ O- w9 U$ K6 z$ X$ Z在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
: c6 u- V+ A. }9 E1 I7 a . h6 h2 k/ Q- N7 i/ V
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
( ]) Y3 V/ @; }5 @2 U- x/ U. n! \+ r0 k! O/ _
效果演示:
9 _+ @# t# y. s7 Z- b% S+ s0 T+ I
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上次開會不是說了嗎
/ k" D+ z) M+ m. p& `) B: `( d+ z會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

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

GMT+8, 2025-9-19 02:50

By DZ X3.5

小黑屋

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