跟隨鼠標(biāo)的螢火蟲(chóng)[無(wú)須修改][]共1步]
====1、將以下代碼加入HEML的之間:
if (!document.layers&&!document.all)event="test"function showtip2(current,e,text){if (document.all&&document.readyState=="complete"){document.all.tooltip2.innerHTML=+text+document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10document.all.tooltip2.style.visibility="visible"}else if (document.layers){document.tooltip2.document.nstip.document.write(+text+)document.tooltip2.document.nstip.document.close()document.tooltip2.document.nstip.left=0currentscroll=setInterval("scrolltip()",100)document.tooltip2.left=e.pageX+10document.tooltip2.top=e.pageY+10document.tooltip2.visibility="show"}}function hidetip2(){if (document.all)document.all.tooltip2.style.visibility="hidden"else if (document.layers){clearInterval(currentscroll)document.tooltip2.visibility="hidden"}}function scrolltip(){if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)document.tooltip2.document.nstip.left-=5elsedocument.tooltip2.document.nstip.left=150}function YY_Layerfx(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep) { //v1.2if ((document.layers)||(document.all)){with (Math) {yynextx= eval(yyfnx)}with (Math) {yynexty= eval(yyfny)}yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep;if (document.layers){eval(yydiv+".top="+(yynexty+yytop))eval(yydiv+".left="+(yynextx+yyleft)) }if (document.all){eval("yydiv=yydiv.replace(/.layers/gi, .all)");eval(yydiv+".style.pixelTop="+(yynexty+yytop));eval(yydiv+".style.pixelLeft="+(yynextx+yyleft)); }argStr=YY_Layerfx(+yyleft+,+yytop+,"+yyfnx+","+yyfny+","+yydiv+",+yybilder+,+yyloop+,+yyto+,+yycnt+,+yystep+);if (yycnt