过期域名预定抢注

 找回密碼
 免费注册

Firefox推廣提高收入的方法

[複製鏈接]
發表於 2007-7-22 09:56:01 | 顯示全部樓層 |閱讀模式
效果演示:
9 q" Q0 L0 ]* |; J9 ?! i. n
http://www.adsensetips.com.cn   頂部,瀏覽應該沒問題!, q7 G6 t0 O8 o- F4 F9 t' c3 X
4 J- k, Y. H, E  E
打開後,在瀏覽器頂部會有一個模仿IE自帶的黃色警告條,比較醒目。
! |% c4 p- D/ R1 A  ~& k8 ]/ Y& W5 k( y) |點過以後就不會再出現了,除非客戶端刪除cookie。
  I5 G6 B+ o. F8 J$ h/ e3 _' ?
# w. U1 |5 n& d7 y# c5 ?
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.
) K6 a  G5 o' v" y+ J$ Z, t$ V- K7 ]! `. A  V! Q
以下是FIREFOX.JS的代碼! J% O, Z$ U. ~, O6 q
2 z6 D8 B! V* U7 C7 U  q

  1. " I2 ~# a5 R4 ^, ?% i: I. c
  2. // This function does the actual browser detection$ i/ u# `5 G; q+ S" u0 e1 I
  3. function writeCookie(name, value, hours)
    7 R& i0 m9 }; Q4 j- L
  4. {
    & [8 c) Y2 N; p# q1 k
  5. var expire = 「」;
    8 s1 W3 B" x' K9 j# u* B6 }$ Q
  6. if(hours != null); |6 Y( S& a( _0 ^, C
  7. {
    % ?( L- m- @) j2 ^& z
  8.   expire = new Date((new Date()).getTime() + hours * 3600000);, p7 ]; A' b/ D8 [
  9.   expire = 「; expires=」 + expire.toGMTString();
    2 e1 ?  ~( `5 D$ Q. V& v. @
  10. }. H$ \2 ~7 {2 P5 n0 w1 B1 H
  11. document.cookie = name + 「=」 + escape(value) + expire;: I4 j+ V. e, ^# j+ F2 `# y9 N- a
  12. }0 Q1 W* }2 {8 ~# Z2 g8 ~
  13. // Example:+ m) B1 {4 P3 ~! h2 x8 o
  14. // alert( readCookie(」myCookie」) );
    * G1 a$ l& d9 e& k3 W
  15. function readCookie(name)
    * F7 {: T! m' v. M, k: o- W$ N5 j
  16. {, N8 r. z- u0 S2 q. m& J
  17. var cookieValue = 「」;4 M  y; g) g& k6 ]5 V9 X6 M- e
  18. var search = name + 「=」;
    . n: r5 [% Q; N3 s) h
  19. if(document.cookie.length > 0)2 E0 ]0 K! }: M; B
  20. {
    " c# d6 a$ ?5 N; H, M8 \  f4 M
  21.   offset = document.cookie.indexOf(search);
    # X+ }4 w+ q) h  Q
  22.   if (offset != -1). |( y7 c* Y4 g  ~2 m1 @
  23.   {% G; u. _2 x- ]- w; }7 V2 j
  24.    offset += search.length;
    + q1 S6 U- S7 L) |
  25.    end = document.cookie.indexOf(」;」, offset);
    9 [' Q* }  T) e6 ^- A" O6 l
  26.    if (end == -1) end = document.cookie.length;$ [. G! ^7 B0 G% R
  27.    cookieValue = unescape(document.cookie.substring(offset, end)). x+ `, p0 u: c+ I: y
  28.   }
    % ~  z) d! H( c5 l7 T+ t& X) V
  29. }0 y) T' c: v  P; j, V
  30. return cookieValue;
    % ]7 G8 _; U. B% t& `( S: m9 p3 E
  31. }
    & w8 |# N; W9 y! k
  32. function hasIE_hasIE() {
    $ X7 u+ g. t" t0 |! Q; i! ?$ x$ ^
  33.   var ua = navigator.userAgent.toLowerCase();7 v4 M/ v& x, Z5 I+ U. ^* M5 j
  34.   return ((ua.indexOf(』msie』) != -1) && (ua.indexOf(』opera』) == -1) &&+ o5 O7 T' m, v' L
  35.           (ua.indexOf(』webtv』) == -1) &&
    # j/ c, t/ ~# q3 o; m: F3 [
  36.           (location.href.indexOf(』seenIEPage』) == -1));) e" V9 i+ S0 h
  37. }- |4 x/ {$ ?5 a
  38. function hasIE_showLayer(whichLayer)
    ; L: G+ D  M# H
  39. {
    7 u( e/ y3 a: j$ g
  40.   if (document.getElementById)
    , P5 r: F" A7 p+ _
  41.     {
    7 L9 F* ?6 U* v: d8 P
  42.       var style2 = document.getElementById(whichLayer).style;
    * x3 S- v% U# {2 u  g
  43.       style2.display = 「block」;
    $ h3 c/ t- |  b  Q& M% P; h
  44.     }5 S# k* [4 q" e' `' F
  45.   else if (document.all)9 `! T4 A$ t4 k/ S3 P
  46.     {
    * @) ]& Z6 O/ B2 i3 m2 G
  47.       var style2 = document.all[whichLayer].style;
      }- e* w- T/ Y& E' `( P+ A  T* \! N
  48.       style2.display = 「block」;5 {9 x1 [/ q' E
  49.     }
    9 {, T* ^0 z' F$ k' a2 u, K2 J
  50.   else if (document.layers)6 N9 g  q5 d; n( p
  51.     {  ?; V" q# }: S9 B: E
  52.       var style2 = document.layers[whichLayer].style;
    " I- T! u' D: A3 {- j& x
  53.       style2.display = 「block」;
    5 n. B9 [2 i1 h5 T
  54.     }
    : ~, p6 ~" A1 o3 y) q1 y( Q
  55. }
    & B9 B& D2 A: T0 A" J& ^
  56. // Hides and shows sections of the page based on whether or not it』s' q6 H4 q# `9 O% R1 F
  57. // running in IE% ~' g: ?8 j: K) k7 b% ]$ z$ E7 T+ R; w
  58. function hasIE_hideAndShow()8 v$ f  J; q" t- W
  59. {6 [  c9 r* a0 s3 d) n. w- Q+ W$ \
  60.   if (hasIE_hasIE())
    " R3 r  B) ?) E- J) `; E
  61.   {2 H1 t$ m; |1 O* p8 ?0 r' `7 R; U
  62.     hasIE_showLayer(」hasIE_level1〞);
    : H) {3 U" O; ^* Z3 P/ v% W4 H
  63.   }
    : }1 F' m/ H! ~
  64.   else{}
    1 ^8 P& G+ L' g
  65. }0 @- q" K0 {- |# E  d9 \
  66. function hasIE_ContinueWithoutFF() {" |) a5 ]' E5 F
  67.     if (location.href.indexOf(』?') != -1)
    & A$ m0 m' l( A' g% N
  68.         location.href += 『&seenIEPage=1′;
    : Q& A. k, V+ d$ X* `
  69.     else( s6 U7 F, I3 n& V" Q# d
  70.         location.href += 『?seenIEPage=1′;
    , G, @5 O' I' v3 f/ T
  71. }  o& j+ ?5 Q7 e0 t2 E
  72. function closediv(i) {* L% N  `/ W0 ^' {9 n9 m
  73. writeCookie(」status」,」showed24〞,240);
    . ^/ x$ @" J* q" e- l& N7 Y
  74. document.getElementById(i).style.display=』none』;6 T( S7 @0 X% F' J) y, X
  75. }% Q+ B# W2 X* ~' 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>」); , w2 Q- k5 f. [' V' O
  77. if(document.referrer.indexOf(」hao123〞)==-1 && document.referrer.indexOf(」hao222〞)==-1)
    , w: w8 i8 l1 b% [% Y
  78. {- S' W0 Z- ^! V$ k# D
  79. if(readCookie(」status」) != 「showed24〞)( ^; O/ J& v# k7 u* s3 j
  80. {) Q! I# i6 [, ?& K) j$ w. E/ A
  81.   hasIE_hideAndShow();
    . I+ L- m  ?* {
  82. }# H% H/ s& ^* D+ S; I% u
  83. }2 x! W: j4 i" T( l1 E: L) Z! f/ |
複製代碼

. O" ^4 D( v& {, U3 x: ~( J
8 x; y& y: C9 B& @% z在頁面插入就是了 <script src='路徑/firefox.js' language='javascript'></script>
+ d, O  x1 {8 ? 9 Q( f* q4 C8 G) i
Packaging Download Address : http://www.adsensetips.com.cn/ad/firefox.rar
$ k3 a4 q- Q9 N2 P8 u
1 f# o3 i- R8 ]7 H$ p) U8 [效果演示:
" s0 r2 ?7 G3 C! `9 R& `/ r8 n# R8 V) U
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 s% Z1 o1 V) o8 N1 X" ]9 V" `8 {會被k的
回復 给力 爆菊

使用道具 舉報

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

本版積分規則

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

GMT+8, 2025-9-19 04:00

By DZ X3.5

小黑屋

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