草根站长论坛's Archiver

daojian_2005 发表于 2008-8-17 14:31

这是个很靓的导航

<head><style>
Fgs1f1`f/FM naxt <!--
S2@6?v%S v #tickertape{6ZU;F8rTmm
position:relative;
NY\Tr5W} layer-background-color:black;
y,l6\(l.rN:VZ width:400;
:W c+E.?Z8TB(~@M height:12;
L~'L#bA/Q%l8}7Iw ; font-family: "宋体"; font-size: 9pt}q\9A?/as+d9X l
#subtickertape{8i6`Ti#u,g:j
background-color:black;lK5]N#h d'r9N*`
position:absolute;
iU.k~~W border: 1px solid black;L:dkO9p|'F
width:400; H.JpZB? V
height:12;TY%g V3f,@
; font-family: "宋体"; font-size: 9pt
1Z2zK#P$]6j$Rpy }l+` F#Hc$C!`$YD
o SJ5F#Z dZI
.subtickertapefont{,CS!y|X7N8P&H^Hd
font:bold 9pt "宋体";
o*Z+r4f/P-~/a8lu text-decoration:none;
#Z ]K\mK color:white;{.L%lJw\8y`#~
}
RzQVYqh5o2F .subtickertapefont a{'y(QD:{y%l.\ {,\XS!a
color:white;/oW/N(N(y?Rb
text-decoration:none;.b2d5QMoR;kV
; font-family: "宋体"; font-size: 9pt}
qDa5X6B a2RI -->
_;wTlAL;T-FU </style>
"j`}&Ll:@Q </head>0m&RSv\a
<body><div id="tickertape">
;h1D,};fe <div id="subtickertape" class="subtickertapefont">初始化...</div>6V)p:r&w%i4S7caO
</div>
8PkT-h|?$O <script language="JavaScript1.2">#O G[-Ov
//默认速度4.5秒,自己修改速度快慢。
D0esnU3M U var speed=1000
zJ.K9LA4P4^ \.`W var news=new Array()
)]Q+dX*a-w1fs,K/| news[0]="<a href='index1.htm'>1</a>"G4m J$Z3c|'uOl0fG
news[1]="<a href='index2.htm'>2</a>" |o!dv-V3o,U
news[2]="<a href='index3.htm'>3</a>"/M4OM|'DpzcDg
news[3]="<a href='index4.htm'>4</a>"vPj jP"X*n Z
news[4]="<a href='index5.htm'>5</a>"
/A1aFm/U E(c VDky news[5]="<a href='index6.htm'>6</a>"
`2I G:b2MdU news[6]="<a href='index7.htm'>7</a>"
QXOE9xJ,{ //显示的信息内容可以任意按照格式添加。
j/Wx,P,s PVe i=0+TZ2x(O%f/i4Q
if (document.all)n}:r\Z
tickerobject=document.all.subtickertape.style%J+dE.mt&fS0t [&y
elseDR E im`}
tickerobject=document.tickertape.document
&t4zD q2o3B*F#X$@ function regenerate(){
,\X:BkWC window.location.reload()
v M&e.]ie ~ e }/d{A.Y.A'y)o9}$x
function regenerate2(){
/yMK)D;Y(H if (document.layers)Xt"?G8JObP$I6t A"s
setTimeout("window.onresize=regenerate",450)
t%} d&{vV }c0zeRXJwy;L-x^
function update(){
:~ }-_d;\M BgFade(0xff,0xff,0xff, 0x00,0x00,0x00,10);
*^.egWa-F&z if (document.layers){
HK)Y;@I%^G document.tickertape.document.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')
p8?$O{C7a|&@ document.tickertape.document.subtickertape.document.close()!^1w5Ol:fQc&V#G h
}0n!nt6J$F!p@(}
else
}*zn2]lPvW%F document.all.subtickertape.innerHTML=news[i]0u](w6l}1ENH6qz
if (i<news.length-1)
KW8gy X i++
uaR)V!@J7^ elseGMv3t\)S-P9E)hd
i=0
CH(md2V_t setTimeout("update()",speed)
#iW#Sc'R4s}M1l })U#n*Ea&|*u7P
function BgFade(red1, grn1, blu1, red2,e:X*Ev3rYS:NQ
grn2, blu2, steps) {u3O-Rx*W-Z \'Q
sred = red1; sgrn = grn1; sblu = blu1; x:r'Xt\+zN
ered = red2; egrn = grn2; eblu = blu2; "m:o:t0eY._8A
inc = steps;
Y#Ta"]+WP,S1u step = 0;
xe0E;\9I RunFader();Y^0D_"K$b|:~
}_9M&lx1_5IV
function RunFader() {
!u"i-H5?}.LLI var epct = step/inc; (l Z#up d4z3A2n
var spct = 1 - epct;
#f,}Yh3Or b1|U:R if (document.layers)
eyT_3K6Yce)Xy tickerobject.bgColor =
;`,p1@r kUeh3Dm'e Math.floor(sred * spct + ered *r L m7e:pJJb6E{
epct)*256*256 +
OgWm9M&iWC$^ Math.floor(sgrn * spct + egrn * epct)*256 +rrK e6?
Math.floor(sblu * spct + eblu * epct);
^Q6[2yt%k[y else
0R&zxp!S}H(s1y$q tickerobject.backgroundColor=1WSlKC/^ e5t7{
Math.floor(sred * spct + ered *
EnQ&j j nc epct)*256*256 +
/AI-Fr]L0D Math.floor(sgrn * spct + egrn * epct)*256 +
4K5oG#|{;zZ$g Math.floor(sblu * spct + eblu * epct);
Bv%i%fD?5xT if ( step < inc ) {;o#p\"Pm-|!J
setTimeout('RunFader()',50); I:G }(@.m[(HT
}
;P'tW[k!A0O.q p step++;jLc4l Te
}
`6fC N@qX)o P </script>
9p;hp8vFkI7p4o;q </body>
t [z!e5_ <body><body bgcolor="#000000">

dayu898 发表于 2008-8-22 12:14

学习了,谢谢

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.