网页特效-小荧火

Kiver 发布于2003-11-9 10:23 665 次浏览 1 位用户参与讨论   [复制分享主题]
) G! j. m; X. c5 h+ _
<script language="JavaScript">
( R, j* K; r1 b: z2 l9 f% _if (!document.layers&&!document.all)) }- ~3 k6 D" C+ L1 |
event="test"
& I, w+ _# ]9 M/ ]$ x0 z( _function showtip2(current,e,text){$ b' `7 D5 q& Z
if (document.all&&document.readyState=="complete"){% P. v: E" H; t5 }7 k
document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'! o9 O) E8 k4 w
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10
9 J0 J, l5 f  h+ I. wdocument.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10
' ]' o0 H9 T. E3 {document.all.tooltip2.style.visibility="visible"}& W# }8 i5 J9 V; P' i2 ^) V1 U9 @2 z& p
else if (document.layers){/ K) h1 ^, }1 B( g5 I( O
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
4 h* U+ I' Q2 I0 b. l  Pdocument.tooltip2.document.nstip.document.close()
) J. \) t, ]* R1 Edocument.tooltip2.document.nstip.left=0
$ D0 M( E) b, Scurrentscroll=setInterval("scrolltip()",100)* G! Y# i, s; @& O2 o
document.tooltip2.left=e.pageX+10# c3 E- y  e6 C0 E
document.tooltip2.top=e.pageY+10
; m4 g5 v! O# q' r" v7 gdocument.tooltip2.visibility="show"}}
8 B0 G0 ]' ^7 `function hidetip2(){7 T9 f5 ~( |: [1 A; ^: l. ?
if (document.all)' w! I  W  @. a" U2 k& O
document.all.tooltip2.style.visibility="hidden"/ d' T0 D! U- F; K
else if (document.layers){
, h8 v: F8 ]0 z# x3 z0 d, IclearInterval(currentscroll)
5 o) |: s5 f- k. K  H% Z6 ydocument.tooltip2.visibility="hidden"}}# l% {! V' V8 g
function scrolltip(){
" E' n2 h" H  k" u( Zif (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)% y  ^* d: j  M) S
document.tooltip2.document.nstip.left-=5
% b5 k1 f' }4 S6 p7 T- Delse
1 ?; U$ {" Q6 Y1 Ldocument.tooltip2.document.nstip.left=150}) n, P) O/ t: s: q0 Q* Q8 G: s, `, I
</script>
6 S: S* w8 ^0 \& @! t& Z<script language="JavaScript">7 B+ A% `- m0 Y# R
function YY_Layerfx(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep) { //v1.2
/ c& y" @6 `) |0 T4 o' |$ b6 v if ((document.layers)||(document.all)){/ Y( m# B7 w; Z5 j% H4 \+ `; z
  with (Math) {yynextx= eval(yyfnx)}. T* H/ ]- b# y. W
  with (Math) {yynexty= eval(yyfny)}: g/ m' C7 [6 P4 h! O* h( Z5 T& N' ~
  yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep;
2 j6 d& u; Q+ t; a5 {  if (document.layers){
9 X4 E! _; E$ [% m$ y' y+ L! h    eval(yydiv+".top="+(yynexty+yytop))4 `9 V6 f% ^5 y: @" P1 V
    eval(yydiv+".left="+(yynextx+yyleft))  }; M. ]# D) B8 I1 @- N
  if (document.all){
3 L" v9 G% `7 ~% k; Q" p* E    eval("yydiv=yydiv.replace(/.layers/gi, '.all')");3 v' ], C( ?) \2 d; L$ e4 S2 j
    eval(yydiv+".style.pixelTop="+(yynexty+yytop));4 v) G% v9 X6 _; T; B7 v. @5 {
    eval(yydiv+".style.pixelLeft="+(yynextx+yyleft));  }6 ]$ P+ m+ U8 @
  argStr='YY_Layerfx('+yyleft+','+yytop+',"'+yyfnx+'","'+yyfny+'","'+yydiv+'",'+yybilder+','+yyloop+','+yyto+','+yycnt+','+yystep+')';# e/ r5 n5 J4 \5 j  a
  if (yycnt<=yystep*yybilder){eval(yydiv+".yyto=setTimeout(argStr,yyto)");} }}( r5 f$ r4 p/ K# G, X/ I5 [/ \
function YY_Mousetrace(evnt) { 1 B/ F: T6 O5 N0 ]
if (yyns4)' y' d  f  o* z, p4 t) E" }
  {if (evnt.pageX) {yy_ml=evnt.pageX;  yy_mt=evnt.pageY;}  }7 Z+ K( h* E8 }2 B( Q4 t, ]. Y$ ^
else{
3 }- z+ l4 U, J  M& o$ y) t   yy_ml=(event.clientX + document.body.scrollLeft);
9 Q' i# H- B* l   yy_mt=(event.clientY + document.body.scrollTop);}
. z, M5 U9 K1 ~0 b8 F6 M8 e if (yy_tracescript)eval(yy_tracescript)}! X! }5 ], H" Y/ `
</script>
) [) I5 d6 `. C" W9 G; c; i( X6 R8 F<script language="JavaScript">
0 s: d% @) `9 }* e2 |2 `function PopWin()
  k' V+ L# Y1 a& L  X5 s{) o. a. ^6 R: {+ O
        var PopWin = window.open("new.htm","PopWin","toolbar=no,directries=no,scrollBars=yes,height=350,width=400");
" {2 k9 B% @, H8 x5 y" h3 P}9 y! H% p3 i6 M0 B+ q
</script>- u" s; N1 i  F# p: h3 L% u
<body>
* z0 F) x) V6 b7 M% Y$ z. R<div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow">
8 Z+ _; E+ {8 i% G8 V<layer name="nstip" width="1000px" bgColor="lightyellow">
9 A; i$ s4 d( z4 J</layer>9 `/ I' Y3 a6 [1 |2 N
</div>
1 ~) Y% ~) E) T( }' c1 h) X# u<div id="yyd0"5 B+ V% L+ P& A0 t; ^2 C# ~
style="position:absolute; left:10px; top:50px; width:3px; height:3px; z-index:1; background-color: #19636c; layer-background-color: #19636c; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div, v; Q, A" v2 Q
id="yyd1"' P1 [/ o+ [2 y! z1 J
style="position:absolute; left:20px; top:50px; width:3px; height:3px; z-index:1; background-color: #708574; layer-background-color: #708574; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div
6 v7 A0 W$ m. p7 O% iid="yyd2"' |5 c( p( j0 n: R" p+ @
style="position:absolute; left:30px; top:50px; width:3px; height:3px; z-index:1; background-color: #379bbf; layer-background-color: #379bbf; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div
% G6 U( ~: d, A4 {2 did="yyd3"4 X' W' R* `7 p5 K5 |5 k' D4 W
style="position:absolute; left:40px; top:50px; width:3px; height:3px; z-index:1; background-color: #25184c; layer-background-color: #25184c; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div
5 H4 N/ q1 G+ E# oid="yyd4"
% I! X1 U* Q/ F; W' J% T4 dstyle="position:absolute; left:50px; top:50px; width:3px; height:3px; z-index:1; background-color: #31bd3c; layer-background-color: #31bd3c; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div
$ P' E0 p) s! t2 tid="yyd5"
, r: c) M- q/ E, gstyle="position:absolute; left:60px; top:50px; width:3px; height:3px; z-index:1; background-color: #c11efd; layer-background-color: #c11efd; border: 1px none #000000; clip: rect(0 3 3 0)"></div><script>
: w8 \# J3 I2 h' ovar yyns4=window.Event?true:false; var yy_mt = 0; var yy_ml = 0;) Y: Q2 b5 w! x) L4 A
document.onmousemove = YY_Mousetrace;
! B2 G4 B: d- N2 B2 @2 g" Iyy_tracescript = '';
3 _4 B- X# |0 S6 C* j% L* Zif (yyns4){ document.captureEvents(Event.mousemove);
: M# |) K& S+ B/ o, R7 I  l  YY_Mousetrace('',',document.YY_Mousetrace1')}3 t; i4 P' ]. W' Z, G$ h6 H+ _
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/39.83007847812662))+0)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/34.224861639800686))+0)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd0\']',2000,true,80,0,1);
  T0 `+ K$ @& E5 ~YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/27.66510707209673))+30)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/9.240632767417667))+30)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd1\']',2000,true,80,0,1);4 D& ~4 i5 ^5 i% r& x
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/16.45318944579641))+60)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/16.0564452288292))+60)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd2\']',2000,true,80,0,1);4 w! b5 E$ r/ L' x) a6 F
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/6.95348954836835))+90)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/44.13697049887155))+90)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd3\']',2000,true,80,0,1);* G% d/ Q) ]' n% ]% p
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/33.90077294583733))+120)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/2.2378828869411587))+120)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd4\']',2000,true,80,0,1);" l: D3 r" a( h7 P6 h1 x
YY_Layerfx(0,0,'yy_ml+cos((15*sin(yycnt/37.858312521039835))+150)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','yy_mt+sin((15*sin(yycnt/18.083839795990098))+150)*150*(sin(10+yycnt/20)+0.2)*cos(yycnt/20)','document.layers[\'yyd5\']',2000,true,80,0,1);, `' x) e' F2 r+ o
</script>
' s" a5 z& S$ Y) w0 a% Y</body>& S0 u7 R* i3 P# q; S# }

已有(1)人评论

ufree 发表于 2004-11-8 08:20:11 | 显示全部楼层
效果很不错的
您需要登录后才可以回帖 登录 | 註冊

本版积分规则

快速
回复
返回
列表
返回
顶部