Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: JavaScript  |  size: 0.31 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function fillEllipse(name, color){
  2. var t=jQuery("a");
  3. for(var i=0; i<t.length; i++){
  4.         if(t[i].attributes[0].nodeValue==name){
  5.         var ellipse_attr=t[i].firstChild.attributes;
  6.                 for(var j=0; j<ellipse_attr.length; j++){
  7.                     if(ellipse_attr[j].nodeName=="fill") ellipse_attr[j].nodeValue=color;
  8.                         }      
  9.                 }
  10.         }
  11. }