The special beautiful JS picture arranges the rotation effect code _ the image effect

Source: Internet
Author: User
The next code, feeling with the array simulation some stiff, I wrote a new one, please come to pp!
<style type= "Text/css" > body{background:black} point{position:absolute;height:75px;border:1px silver Solid} # round{position:absolute;background:red;width:200px;height:200px;} </style> <script> var r=200,dv=0.01,w=100,x=400;y=100,pn=8 var pi=3.1415926575,d=pi/2; var pd=math.asin (w/2/r); Ed=pi*2/pn;smove=true function window.onload () {var O=document.getelementbyid ("Imgro und "); var arrimg=o.getelementsbytagname ("img"); for (n=0;n<arrimg.length;n++) {arrimg[n].onmouseout=function () {smove=true;} Arrimg[n].onmouseover=function () {smove=false;} Arrimg[n].onmousedown=function () {dv=dv*2}} setinterval (roundmove,20); function Roundmove () {for (n=1;n<=8;n++) {var O=document.getelementbyid ("P" +n) var ta=math.sin (d+ed*n); var strfilter; if (ta<0) O.style.left=math.cos (D+ED*N-PD) *r+x; else O.style.left=math.cos (D+ED*N+PD) *r+x; O.style.top=ta*10+10+y; O.style.width=math.abs (Math.Cos (D+ED*N+PD)-math.cos (D+ED*N-PD)) *r; o.style.zindex=ta*10; if (o.style.zindex<0) strfilter= "Fliph (enabled:true)" Else strfilter= "Fliph (Enabled:false)"; if (ta<0) ta= (ta+1) *80+20; else ta=100; strfilter=strfilter+ "Alpha (opacity=" +ta+ ")"; o.style.opacity=ta/100; O.style.filter=strfilter; } if (Smove) D=D+DV; } </script> <div id= "Imground" > </div>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.