Indonesia
<!--把下列代码放到<body>区域中--> <body> <STYLE> .disableHscroll{ width:100%;overflow-x:hidden;overflow-y:scroll; } v:* { PERILAKU: url(#default#VML) } </STYLE> <SCRIPT> var defaultcolor="#999999" var lineweighthighlight=1 var lineweightnormal=1 var distancetomouse=0 var mousepos_x=0 var mousepos_x=0 var marginleft=0 var margintop=0 var marginbottom=0 var marginright=0 var margincenterx var margincentery var mousepos_x=0 var mousepos_x=0 if (document.all&&window.print){ document.write('<div id="bodycontent" style ="position:relative">') } fungsi inisiasi animasi(){ marginbottom=document.body.clientHeight marginright=document.body.clientWidth margincenterx=Math.floor(marginright/2) margincentery=Math.floor(marginbottom/2) persegi panjangtopleft .to=marginleft+","+margintop Rectangulartopright.to=marginright+","+margintop Rectangularbottomleft.to=marginleft+","+marginbottom Rectangularbottomright.to=marginright+","+marginbottom Rectangulartop.to=margincenterx+","+margintop Rectangularright .to=marginright+","+margincentery Rectangularbottom.to=margincenterx+","+marginbottom Rectangularleft.to=marginleft+","+margincentery Rectangulartopleft.strokecolor=warna default Rectangulartopright.strokecolor=warna default Rectangularbottomleft.strokecolor=warna default Rectangularbottomright.strokecolor=warna default Rectangletop .strokecolor=warna default Rectangularright.strokecolor=warna default Rectangularbottom.strokecolor=warna default Rectangularleft.strokecolor=defaultcolor} fungsi msover(highlight warna ini){ if(document.all&&window.print){ Rectangulartopleft.strokecolor=highlight warna ini Rectangulartopright.strokecolor=highlight warna ini Rectangularbottomleft.strokecolor=highlight warna ini Rectangularbottomright.strokecolor=highlight warna ini Rectangulartop.strokecolor=highlight warna ini Rectangularright.strokecolor=highlight warna ini Rectangularbottom.strokecolor=highlight warna ini Rectangularleft.strokecolor=highlight warna ini Rectangletopleft.strokeweight=lineweighthighlight Rectangletopright.strokeweight=lineweighthighlight Rectanglebottomleft.strokeweight=lineweighthighlight Rectangularbottomright.strokeweight=lineweighthighlight Rectangulartop.strokeweight=lineweighthighlight Rectangularright.strokeweight=lineweighthighlight Rectangularbottom.strokeweight=lineweighthighlight Rectangularleft.strokeweight=lineweighthighlight } } fungsi msout(){ if(document.all&&window.print){ Rectangulartopleft.strokecolor=warna default Rectangletopright.strokecolor=defaultcolor Rectangularbottomleft.strokecolor=warna default Rectangularbottomright.strokecolor= defaultcolor Rectangulartop.strokecolor=warna default Rectangularright.strokecolor=defaultwarna Rectangularbottom.strokecolor=defaultwarna Rectangularleft.strokecolor=defaultwarna Rectangulartopleft.strokeweight=lineweightnormal Rectangletopright.strokeweight=lineweightnormal Rectangularbottomleft.strokeweight=lineweightnormal Rectangularbottomright.strokeweight=lineweightnormal Rectangletop.strokeweight=lineweightnormal Rectangularright.strokeweight= lineweightnormal Rectangularbottom.strokeweight=lineweightnormal Rectangularleft.strokeweight=lineweightnormal } } fungsi momouse(){ if(document.all&&window.print){ mousepos_x=document.body.scrollLeft+event.clientX mousepos_y=document.body.scrollTop+event.clientY Rectangulartopleft .from=mousepos_x+","+mousepos_y Rectangulartopright.from=mousepos_x+","+mousepos_y Rectangularbottomleft.from=mousepos_x+","+mousepos_y Rectangularbottomright.from=mousepos_x+","+mousepos_y Rectangletop.from=mousepos_x+","+mousepos_y Rectangularright .from=mousepos_x+","+mousepos_y Rectangularbottom.from=mousepos_x+","+mousepos_y Rectangularleft.from=mousepos_x+","+mousepos_y } } if(document.all&&window.print){ document.body.className="disableHscroll" kode ="<v:line id=rectangulartopleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangulartopright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangularbottomleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangularbottomright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangulartop style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangularright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangularbottom style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangularleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>" document.body.insertAdjacentHTML("afterBegin",code) document.onmousemove=momouse window.onload=initiateanimation } </SCRIPT> <center> <a onMouseOver ="msover('#33FF33')" onMouseOut="msout()" target="_blank" href="http://www.downcodes.com">悬停后改变颜色</a> <p>