3
I have a function that places the famous 3 dots ...
after x characters. But I am in doubt of how to make the reticence enter exactly at the end of the word where is the limit of characters. Follow the code I’m using:
$(function(){
$(".limit").each(function(i){
len=$(this).text().length;
if(len>60)
{
$(this).text($(this).text().substr(0,80)+'...');
}
});
});
I suggest that when the person hovers the mouse over, open a box with the full caption. In that case you could solve the problem do something interesting, could create a small overflow-auto, with a bearing on the right with a similar cool facebook style...
– Ivan Ferrer