$(document).ready(function(){
var p2Height;
var p;
$(".p2").each(function(){
$(this).find("a").attr("title",$(this).text());
p2Height = $(this).height();
p = $(this).children("a");
while(p.outerHeight() > p2Height) {
p.text(p.text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/,"..."));
};
});
});
-->
</script>
<style type="text/css">
.p1{
display: block;
overflow: hidden;
word-break: break-all;
white-space: nowrap;
text-overflow: ellipsis;
width: 100px;
}
.p2{
height: 34px;
}