Deutsch
<!--把下列代码放到<body>区域中--> <body> <STYLE> .disableHscroll{ width:100%;overflow-x:hidden;overflow-y:scroll; } v:* { VERHALTEN: 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">') } function initialanimation(){ marginbottom=document.body.clientHeight marginright=document.body.clientWidth margincenterx=Math.floor(marginright/2) margincentery=Math.floor(marginbottom/2) rechteckigtopleft .to=marginleft+","+margintopsquaretopright.to=marginright+","+margintopsquarebottomleft.to=marginleft+","+marginbottomsquarebottomright.to=marginright+","+marginbottomsquaretop.to=margincenterx+","+margintop RECHTECKIG .to=marginright+","+margincenteryRechteckigerBottom.to=MarginCenterx+","+MarginBottomRechteckLinkerLinks.to=MarginLinks+","+MarginCentery RechteckigesTopLinks.Strokecolor=Standardfarbe Rechtecktoprechts.Strokecolor=Standardfarbe RechteckbottomLinks.Strokecolor=Standardfarbe Rechteckbottomrechts.Strokecolor=Standardfarbe Rechtecktop .Strokecolor=Standardfarbe rechteckigrechts.Strokecolor=Standardfarbe rechteckigbottom.Strokecolor=Standardfarbe rechteckiglinks.Strokecolor=Standardfarbe} Funktion msover(thiscolorhighlight){ if(document.all&&window.print){ rechteckigtopleft.Strokecolor=diesesFarbhighlight rechteckigtopright.Strokecolor=diesesFarbhighlight rechteckigbottomlinks.Strokecolor=dieseFarbeHighlight RECHTECKIGBOTTOMRight.Strokecolor=ThisColorHighlight Rechtecktop.StrokeColor=ThisColorHighlight RechteckRight.StrokeColor=ThisColorHighlight RechteckLinks.StrokeColor=ThisColorHighlight RechteckLinks.StrokeColor=ThisColorHighlight RechteckTopLinks.Strokeweight=LiniengewichtHighlight Rechtecktopright.Strokeweight=LiniengewichtHighlight RechteckigerBottomleft.Strokeweight=LiniengewichtHighlight RechteckigerBottomRight.Strokeweight=LiniengewichtHighlight RechteckigesTop.Strokeweight=LiniengewichtHighlight Rechteckigrechts.Strokeweight=LiniengewichtHighlightRechteckbottom.Strokeweight=LiniengewichtHighlightRechtecklinks.Strokeweight=LiniengewichtHighlight } } Funktion msout(){ if(document.all&&window.print){squaretopleft.Strokecolor=defaultcolorsquaretopright.Strokecolor=defaultColorsquarebottomleft.Strokecolor=defaultColorsquarebottomright.Strokecolor= defaultcolorRechtecktop.Strokecolor=StandardfarbeRechteckigrechts.Strokecolor=StandardfarbeRechteckigbottom.Strokecolor=StandardfarbeRechtecklinks.Strokecolor=StandardfarbeRechtecklinksTopLinks.Strokeweight=LiniengewichtNormal Rechtecktopright.Strokeweight=LiniengewichtNormal Rechteckbottomleft.Strokeweight=LiniengewichtNormal Rechteckbottomright.Strokeweight=LiniengewichtNormal Rechtecktop.Strokeweight=LiniengewichtNormal Rechteckrechts.Strokeweight= lineweightnormal RECHTECKIGBOTTOM.STRokeweight=Liniengewichtnormal Rectangleleft.Strokeweight=LiniengewichtNormal } } Funktion Momouse(){ if(document.all&&window.print){ Mousepos_x=Document.body.scrollLeft+event.clientX Mousepos_y=Document.body.scrollTop+event.clientY RECHTECKIGETOPLEFT .from=mousepos_x+","+mousepos_y rechteckigtopright.from=mousepos_x+","+mousepos_y rechteckigbottomleft.from=mousepos_x+","+mousepos_y rechteckigbottomright.from=mousepos_x+","+mousepos_y rechteckigtop.from=mousepos_x+","+mousepos_y rechteckigrechts .from=mousepos_x+","+mousepos_y rechteckigen Boden.from=mousepos_x+","+mousepos_y rechteckigen linken.from=mousepos_x+","+mousepos_y } } if(document.all&&window.print){ document.body.className="disableHscroll" Code ="<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>