Guest User

Untitled

a guest
Jul 24th, 2013
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:var idcolor = new Array();var clrList = new Array("#ffe0ff", "#c8d6ff", "#ffe0e0", "#ffffe0", "#fff0ff", "#fff0e0", "#e0ffff", "#e0fff0", "#fffff0","#e0ffe0", "#e0e0ff", "#f0e0ff", "#f0ffff", "#e0e8ff", "#e1e8ff", "#cafff1", "#e8e1ff", "#e9ffe1");function clrSet(){ for (var i = 0; i < $("#online-participants .participant-list-item").length; i++) { if (!idcolor[$("#online-participants .participant-list-item")[i].id]) { idcolor[$("#online-participants .participant-list-item")[i].id] = clrList[i]; } $('.' + $("#online-participants .participant-list-item")[i].id).css('background-color', idcolor[$("#online-participants .participant-list-item")[i].id]); }}clrSet();socket.on('message', function (message){ Talkio.Variables.socket_notifications.process($.parseJSON(message)); clrSet();});
RAW Paste Data