Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AddMess(ent)
- {
- while (ent.message.indexOf("\n") > -1)
- ent.message = ent.message.replace("\n", "<br />");
- //$("#chat").prepend("<div class=\"userfeedpost\" style=\"display:none; background-color:#"+ent.color+";\"><div class=\"ufinf\"><div class=\"ufname\"><a href=\""+ent.url+"\" style=\"color:#"+ent.color+";\">"+ent.name+"</a></div><div class=\"ufavatar\"><div style=\"position: absolute; top: -15px; left: -9px;\"><img src=\"images/partyhat_tiny.png\"></div><a href=\""+ent.url+"\"><img src=\""+ent.avatar+"\"></a></div></div><div class=\"ufmes\">"+ent.message+"</div></div>");
- $("#chat").prepend("<div class=\"userfeedpost\" style=\"display:none; background-color:#"+ent.color+";\"><div class=\"ufinf\"><div class=\"ufname\"><a href=\""+ent.url+"\" style=\"color:#"+ent.color+";\">"+ent.name+"</a></div><div class=\"ufavatar\"><a href=\""+ent.url+"\"><img src=\""+ent.avatar+"\"></a></div></div><div class=\"ufmes\">"+ent.message+"</div></div>");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement