Ellipsis widget demo
Show part of an article and give the user the option to view more. This keeps your page short and tidy and doesn't distract the user.
Demo
Some text here that's longer than 10 characters.
Code usage
<script type="text/javascript">
$(document).ready(function () {
$(".ellipsis_10").Ellipsis({
numberOfCharacters: 10,
showLessText: "less",
showMoreText: "more"
});
});
</script>
<div class="ellipsis_10">
Some text here that's longer than 10 characters.
</div>
Please leave your comments on this widget.