|
2010-02-12
, 22:25
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#232
|
didn't test this one.
name_tag is declined as a string.
so i thought replacing the variable with a string containing your name should do it.
but you should only replace the node_tags[i] with "yourname" in the block where your items are fetched.
if (id == ("MessageSenderName" + type_name)) name_tag = "Emil";
|
2010-02-12
, 22:28
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#233
|
|
2010-02-12
, 22:39
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#234
|
why do you use it for IM-conversation?
you can set your display-name (/nick) in your account settings?!
it's only meant for sms-conversation. ^^
|
2010-02-12
, 22:57
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#235
|
if (item.name_str != "" && name_tag) { name_tag.innerHTML = item.name_str; }
if (item.name_str != "" && name_tag) { name_tag.innerHTML = item.name_str; } if (item.name_str != "" && name_tag && item.self) { name_tag.innerHTML = "yourname"; }
|
2010-02-13
, 00:18
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#236
|
try to change:
to:Code:if (item.name_str != "" && name_tag) { name_tag.innerHTML = item.name_str; }
and please change the node_tag[i] back *G*Code:if (item.name_str != "" && name_tag) { name_tag.innerHTML = item.name_str; } if (item.name_str != "" && name_tag && item.self) { name_tag.innerHTML = "yourname"; }
EDIT: have forgotten to paste over the second if-block, sorry. now that's my suggestion on how to do this. (haven't tested it ^^)
|
2010-02-13
, 01:30
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#237
|
|
2010-02-13
, 02:35
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#238
|
|
2010-02-13
, 03:07
|
|
Posts: 387 |
Thanked: 566 times |
Joined on Dec 2009
@ Dublin
|
#239
|
|
2010-02-13
, 05:29
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#240
|
sounds like having 1 pixel thick line with it set to repeat as background for a non fixed width/height container. i used to do that instead of making a large image, just have a small one repeat. saved time in loading the page and made sure the background displayed the same for window stretching/resizing.
<div class="TopLeft"><div class="TopRight"><div class="BottomLeft"><div class="BottomRight"> <span class="Message"> (here's everything: Name, Text, Timestamp) </span> </div></div></div></div>
.TopLeft { background: url(tl.png) top left no-repeat; } .TopRight { background: url(tr.png) top right no-repeat; } .BottomLeft { background: url(bl.png) bottom left no-repeat; } .BottomRight { background: url(br.png) bottom right no-repeat; }
display: block; height: 20px; width: 15px; background: url(bubble.png); background-position: -24px -14px;
Tags |
bada rox, his lunchbox |
Thread Tools | |
|
http://www.gamexe.net/css/fluid-css-speech-bubbles/
and my next thought is to combine that technique with the following one:
http://trentrichardson.com/examples/csstooltips/
not to do this as hover but to strech the bubble dynamicly with help of images and not just filling the background with color. ^^
Last edited by b666m; 2010-02-12 at 22:23.