An interesting 3D ball label cloud compatible with IE8 and 3d ball label ie8
See a very interesting Tag Cloud, 3D ball, compatible with IE 8, test available! Other versions are not tested. If you find it interesting, record it and learn it. below this article, we will release the address of the article I have read. Let's take a look at the effect:
The following is the code, html + css + js, which is not based on jQuery, so you do not need to introduce it. Copy the code to see the effect:
<Div id = "div1"> <a href = "http://www.cnblogs.com/ntt1219/" rel = "external nofollow" rel = "external nofollow"> forget the taste </a> <a href = "http://www.cnblogs.com/ntt1219/" rel = "external nofollow" rel = "external nofollow"> forget taste </a> <a href = "http://www.cnblogs.com/ntt1219/" rel = "external nofollow"> forgot taste </a> <a href = "http://www.cnblogs.com/ntt1219/" rel = "external nofollow"> forgot taste </a> </div>
body {background: #000 url(index.png) no-repeat center 230px;}#div1 {position:relative; width:450px; height:450px; margin: 20px auto 0; }#div1 a {position:absolute; top:0px; left:0px; font-family: Microsoft YaHei; color:#fff; font-weight:bold; text-decoration:none; padding: 3px 6px; }#div1 a:hover {border: 1px solid #eee; background: #000; }#div1 .blue {color:blue;}#div1 .red {color:red;}#div1 .yellow {color:yellow;}
Var radius = 120; var dtr = Math. PI/180; var d = 300; var mcList = []; var active = false; var lasta = 1; var lastb = 1; var distr = true; var tspeed = 10; var size = 250; var mouseX = 0; var mouseY = 0; var howElliptical = 1; var aA = null; var oDiv = null; window. onload = function () {var I = 0; var oTag = null; oDiv = document. getElementById ('div1 '); aA = oDiv. getElementsByTagName ('A'); for (I = 0; I <aA. length; I ++) {oTag ={}; oTag. offsetWidth = aA [I ]. OffsetWidth; oTag. offsetHeight = aA [I]. offsetHeight; mcList. push (oTag);} sineCosine (0, 0); positionAll (); oDiv. onmouseover = function () {active = true ;}; oDiv. onmouseout = function () {active = false;}; oDiv. onmousemove = function (ev) {var oEvent = window. event | ev; mouseX = oEvent. clientX-(oDiv. offsetLeft + oDiv. offsetWidth/2); mouseY = oEvent. clientY-(oDiv. offsetTop + oDiv. offsetHeight/2); mouseX/= 5; mouseY/= 5;}; setInterv Al (update, 30) ;}; function update () {var a; var B; if (active) {a = (-Math. min (Math. max (-mouseY,-size), size)/radius) * tspeed; B = (Math. min (Math. max (-mouseX,-size), size)/radius) * tspeed;} else {a = lasta * 0.98; B = lastb * 0.98;} lasta =; lastb = B; if (Math. abs (a) <= 0.01 & Math. abs (B) <= 0.01) {return;} var c = 0; sineCosine (a, B, c); for (var j = 0; j <mcList. length; j ++) {var rx1 = mcList [j]. cx; var ry1 = mcLis T [j]. cy * ca + mcList [j]. cz * (-sa); var rz1 = mcList [j]. cy * sa + mcList [j]. cz * ca; var rx2 = rx1 * cb + rz1 * sb; var ry2 = ry1; var rz2 = rx1 * (-sb) + rz1 * cb; var rx3 = rx2 * cc + ry2 * (-SC); var ry3 = rx2 * SC + ry2 * cc; var rz3 = rz2; mcList [j]. cx = rx3; mcList [j]. cy = ry3; mcList [j]. cz = rz3; per = d/(d + rz3); mcList [j]. x = (howElliptical * rx3 * per)-(howElliptical * 2); mcList [j]. y = ry3 * per; mcList [j]. scale = per; mcList [j]. alpha = per; mcList [j]. alpha = (mcList [j]. alpha- 0.6) * (10/6);} doPosition (); depthSort ();} function depthSort () {var I = 0; var aTmp = []; for (I = 0; I <aA. length; I ++) {aTmp. push (aA [I]);} aTmp. sort (function (vItem1, vItem2) {if (vItem1.cz> vItem2.cz) {return-1;} else if (vItem1.cz <vItem2.cz) {return 1 ;} else {return 0 ;}}); for (I = 0; I <aTmp. length; I ++) {aTmp [I]. style. zIndex = I ;}} function positionAll () {var phi = 0; var theta = 0; var max = mcList. length; var I = 0; var aTmp = []; var oFragm Ent = document. createDocumentFragment (); // random sorting for (I = 0; I <aA. length; I ++) {aTmp. push (aA [I]);} aTmp. sort (function () {return Math. random () <0.5? 1:-1 ;}); for (I = 0; I <aTmp. length; I ++) {oFragment. appendChild (aTmp [I]);} oDiv. appendChild (oFragment); for (var I = 1; I <max + 1; I ++) {if (distr) {phi = Math. acos (-1 + (2 * i-1)/max); theta = Math. sqrt (max * Math. PI) * phi;} else {phi = Math. random () * (Math. PI); theta = Math. random () * (2 * Math. PI);} // Coordinate Transformation mcList [I-1]. cx = radius * Math. cos (theta) * Math. sin (phi); mcList [I-1]. cy = radius * Math. sin (theta) * Math. sin (phi); mcList [I-1]. cz = radius * Math. cos (phi); aA [I-1]. style. left = mcList [I-1]. cx + oDiv. offsetWidth/2-mcList [I-1]. offsetWidth/2 + 'px '; aA [I-1]. style. top = mcList [I-1]. cy + oDiv. offsetHeight/2-mcList [I-1]. offsetHeight/2 + 'px ';} function doPosition () {var l = oDiv. offsetWidth/2; var t = oDiv. offsetHeight/2; for (var I = 0; I <mcList. length; I ++) {aA [I]. style. left = mcList [I]. cx + l-mcList [I]. offsetWidth/2 + 'px '; aA [I]. style. top = mcList [I]. cy + t-mcList [I]. offsetHeight/2 + 'px '; aA [I]. style. fontSize = Math. ceil (12 * mcList [I]. scale/2) + 8 + 'px '; aA [I]. style. filter = "alpha (opacity =" + 100 * mcList [I]. alpha + ")"; aA [I]. style. opacity = mcList [I]. alpha ;}} function sineCosine (a, B, c) {sa = Math. sin (a * dtr); ca = Math. cos (a * dtr); sb = Math. sin (B * dtr); cb = Math. cos (B * dtr); SC = Math. sin (c * dtr); cc = Math. cos (c * dtr );}
Wordpress Tag Cloud plugin
You are looking for the WP Cumulus plug-in. The official download does not support Chinese!
WP Cumulus is a Wordpress plug-in that can generate a visual Flash tag cloud with 3D spherical effects. All the tags are continuously rotated in a 3D space to deliver powerful visual impact to users. This should be the most beautiful tag cloud effect I have ever seen. This effect is the superb Wordpress tag cloud effect implemented by Flash + JS.
You can view 927la.com/thread-144-1-1.html
Chinese display is supported!