围绕鼠标的立体旋转文字_键盘鼠标特效

模板酷站
  •       3/5
  •       1
  •       2
  •       3
  •       4
  •       5
查看演示效果

      织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!

      围绕鼠标的立体旋转文字,您可以先修改部分代码再运行.

      <html></html> <head></head> <title>围绕鼠标的立体旋转文字</title> <head></head> <body><div language="JavaScript" _ue_div_script="1" _ue_script_data="%0A%3C!--%20Begin%0Aif%20(document.all)%20%7B%0A%0AyourLogo%20%3D%20%22%E5%BE%88%E7%AE%80%E5%8D%95%E5%93%A6%20%E8%B0%81%E9%83%BD%E7%9C%8B%E5%BE%97%E6%87%82%22%3B%20%20%2F%2FNot%20less%20than%202%20letters!%0AlogoFont%20%3D%20%22Arial%22%3B%0AlogoColor%20%3D%20%22ff0000%22%3B%0A%2F%2FNothing%20needs%20altering%20below!%0AyourLogo%20%3D%20yourLogo.split('')%3B%0AL%20%3D%20yourLogo.length%3B%20%0ATrigSplit%20%3D%20360%20%2F%20L%3B%0ASz%20%3D%20new%20Array()%0AlogoWidth%20%3D%20100%3B%0AlogoHeight%20%3D%20-30%3B%0Aypos%20%3D%200%3B%0Axpos%20%3D%200%3B%0Astep%20%3D%200.09%3B%0AcurrStep%20%3D%200%3B%0Adocument.write('%3Cdiv%20id%3D%22outer%22%20style%3D%22position%3Aabsolute%3Btop%3A0px%3Bleft%3A0px%22%3E%3Cdiv%20style%3D%22position%3Arelative%22%3E')%3B%0Afor%20(i%20%3D%200%3B%20i%20%3C%20L%3B%20i%2B%2B)%20%7B%0Adocument.write('%3Cdiv%20id%3D%22ie%22%20style%3D%22position%3Aabsolute%3Btop%3A0px%3Bleft%3A0px%3B'%0A%2B'width%3A10px%3Bheight%3A10px%3Bfont-family%3A'%2BlogoFont%2B'%3Bfont-size%3A12px%3B'%0A%2B'color%3A'%2BlogoColor%2B'%3Btext-align%3Acenter%22%3E'%2ByourLogo%5Bi%5D%2B'%3C%2Fdiv%3E')%3B%0A%7D%0Adocument.write('%3C%2Fdiv%3E%3C%2Fdiv%3E')%3B%0Afunction%20Mouse()%20%7B%0Aypos%20%3D%20event.y%3B%0Axpos%20%3D%20event.x%20-%205%3B%0A%7D%0Adocument.onmousemove%3DMouse%3B%0Afunction%20animateLogo()%20%7B%0Aouter.style.pixelTop%20%3D%20document.body.scrollTop%3B%20%0Afor%20(i%20%3D%200%3B%20i%20%3C%20L%3B%20i%2B%2B)%20%7B%0Aie%5Bi%5D.style.top%20%3D%20ypos%20%2B%20logoHeight%20*%20Math.sin(currStep%20%2B%20i%20*%20TrigSplit%20*%20Math.PI%20%2F%20180)%3B%0Aie%5Bi%5D.style.left%20%3D%20xpos%20%2B%20logoWidth%20*%20Math.cos(currStep%20%2B%20i%20*%20TrigSplit%20*%20Math.PI%20%2F%20180)%3B%0ASz%5Bi%5D%20%3D%20ie%5Bi%5D.style.pixelTop%20-%20ypos%3B%0Aif%20(Sz%5Bi%5D%20%3C%205)%20Sz%5Bi%5D%20%3D%205%3B%0Aie%5Bi%5D.style.fontSize%20%3D%20Sz%5Bi%5D%20%2F%201.7%3B%0A%7D%0AcurrStep%20-%3D%20step%3B%0AsetTimeout('animateLogo()'%2C%2020)%3B%0A%7D%0Awindow.onload%20%3D%20animateLogo%3B%0A%7D%0A%2F%2F%20%20End%20--%3E%0A" _ue_custom_node_="1"></div></body> <html></html>