Rotating javascripte tag cloud

    Recently on a habr there was a topic in which it was told about a cloud on a flash . I looked, liked it, decided to repeat it on javascript-e. Here's what happened: demo mirror archive .
    Creating a cloud happens like this: I don’t know if it’s useful, with a large number of tags it terribly slows. Tested in Mozilla 3, IE7. PS If you like it, it will be possible to improve it somehow, but I don’t see the point :) Here’s the Habra user Kron0S made a plugin for wordpress based on my script.
    var cloud = new Cloud(
       {
            radius:200,
          parent:document.body
       });
       cloud.addTag([
          
          {href:"#",w:"2",text:"нло"},
          {href:"#",w:"2",text:"общение"},
          {href:"#",w:"1",text:"по"},
          {href:"#",w:"1",text:"подкаст"}
       ]
       );










    Judging by the comments, it slows down a lot, I did not do much optimization with tags in the amount of 100 pieces on my machine (ntel Core 2 Duo 2.3 with 2Gb Vista FF3) almost did not wait for your comments. Maybe someone will suggest to somehow optimize the code ( Frames do not offer only algorithms ).

    Also popular now: