Seite 1 von 1

Frage zum Farbgruppen Script.

Verfasst: 09.03.2011, 16:36
von P0K3F?3AK
Hallo!

Ich habe eine Frage und zwar ob man in dem Script (siehe unten ?) es so machen kann,
dass die User in der Onlineliste fett anstatt dünn anzeigen kann?



Code: Alles auswählen

var userList = {}, colorList = {}; 

/* Konfiguration */ 
// Farbenliste 
colorList['Stammy'] = "#00FF00"; 

// Userliste 
userList['Stammy'] = ["Name"];

/*****************/ 

function olColors() { 
  var currentColor, currentEntry; 
  for (var i in colorList) { 
    currentColor = colorList[i]; 
    for (var j = 0; j < userList[i].length; j++) { 
      currentEntry = parent.rightFrame.document.getElementById(userList[i][j]); 
      if (currentEntry) { 
        currentEntry.style.color = currentColor;    
      } 
    } 
  } 
} 
window.setInterval("olColors();", 1000);





LG BlackLugia ;)

Re: Frage zum Farbgruppen Script.

Verfasst: 09.03.2011, 16:55
von Linus

Code: Alles auswählen

var userList = {}, colorList = {}; 

/* Konfiguration */ 
// Farbenliste 
colorList['Stammy'] = "#00FF00"; 

// Userliste 
userList['Stammy'] = ["Name"];

/*****************/ 

function olColors() { 
  var currentColor, currentEntry; 
  for (var i in colorList) { 
    currentColor = colorList[i]; 
    for (var j = 0; j < userList[i].length; j++) { 
      currentEntry = parent.rightFrame.document.getElementById(userList[i][j]); 
      if (currentEntry) { 
        currentEntry.style.color = currentColor;    
        currentEntry.style.fontWeight = "bold";
      } 
    } 
  } 
} 
window.setInterval("olColors();", 1000);

Re: Frage zum Farbgruppen Script.

Verfasst: 09.03.2011, 17:05
von P0K3F?3AK
Danke Linus! ;)








LG BlackLugia