中文(简体)
<!-- 将以下代码放到<body>区域中--> <body> <STYLE> .disableHscroll{ width:100%;overflow-x:hidden;overflow-y:scroll; } v:* { 行为: 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">') } functionitiateanimation(){ marginbottom=document.body.clientHeight marginright=document.body.clientWidth margincenterx=Math.floor(marginright/2) margincentery=Math.floor(marginbottom/2)矩形topleft .to=marginleft+","+margintop 矩形topright.to=marginright+","+margintop 矩形bottomleft.to=marginleft+","+marginbottom 矩形bottomright.to=marginright+","+marginbottom 矩形top.to=margincenterx+","+margintop 矩形right .to=marginright+","+margincentery 矩形bottom.to=margincenterx+","+marginbottom 矩形left.to=marginleft+","+margincentery 矩形topleft.行程颜色=默认颜色 矩形上右.行程颜色=默认颜色 矩形下左.行程颜色=默认颜色 矩形下右.行程颜色=默认颜色 矩形顶部.笔画颜色=默认颜色矩形右.笔划颜色=默认颜色矩形底部.笔画颜色=默认颜色矩形左.笔画颜色=默认颜色}函数msover(thiscolorhighlight){if(document.all&&window.print){矩形顶部左.笔画颜色=这个颜色高亮矩形顶部右.笔画颜色=这个颜色高亮矩形底部左.笔划颜色=这个颜色高亮矩形底部右.描边颜色=这个颜色突出显示 矩形顶部.描边颜色=这个颜色突出显示 矩形右.描边颜色=这个颜色突出显示 矩形底部.描边颜色=这个颜色突出显示 矩形左.描边颜色=这个颜色突出显示 矩形上左.描边=线宽高亮 矩形上右.描边=线宽高亮 矩形下左.描边=线宽高亮 矩形下右.描边=线宽高亮 矩形顶部.描边=线宽高亮矩形右.笔划重量=线重高亮 矩形底.笔划重量=线重高亮 矩形左.笔划重量=线重高亮 } } 函数 msout(){ if(document.all&&window.print){ 矩形顶部左.笔画颜色=默认颜色 矩形顶部右.笔画颜色=默认颜色 矩形底部左.笔画颜色=默认颜色 矩形底部右.笔画颜色=默认颜色矩形顶部.描边颜色=默认颜色矩形右.描边颜色=默认颜色矩形底部.描边颜色=默认颜色矩形左.描边颜色=默认颜色矩形上左.描边=线宽正常矩形上右.描边=线宽正常矩形下左.描边=线宽正常矩形下右.描边=线宽正常矩形上.描边=线宽正常矩形右.描边=线宽正常矩形底部.描边=线宽正常矩形左.描边=线宽正常}}函数momouse(){if(document.all&&window.print){mousepos_x=document.body.scrollLeft+event.clientX mousepos_y=document.body.scrollTop+event.clientY矩形topleft .from=mousepos_x+","+mousepos_y 矩形topright.from=mousepos_x+","+mousepos_y 矩形bottomleft.from=mousepos_x+","+mousepos_y 矩形bottomright.from=mousepos_x+","+mousepos_y 矩形top.from=mousepos_x+","+mousepos_y 矩形right .from=mousepos_x+","+mousepos_y 矩形bottom.from=mousepos_x+","+mousepos_y 矩形left.from=mousepos_x+","+mousepos_y } } if(document.all&&window.print){ document.body.className="disableHscroll" 代码="<v:line id=rectangletopleft style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangletopright style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectanglebottomleft style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectanglebottomright style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangletop style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangleright style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectanglebottom style='LEFT:0;POSITION:absolute;TOP:0;'描边='"+lineweightnormal+"pt'></v:line>" code+="<v:line id=rectangleleft 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>