Truncate Text Snippets


Truncate or limit a text string while still preserving any HTML tags present. The code auto-closes the tags.

If you want to interact with the popular social messaging site, you’ll enjoy this function for sure, which will allow you to truncate your message to 140 characters.

Oracle PL/SQL example for avoiding overlapping months and years

05 January, 2013   

Here shown how to hide text with text indent

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink

23 March, 2011   

When using forms within your web site, there may be times when you will want to include an example of what you'd like your visitors to fill in your form field. Although you could place some default text within your form field, your users would need to delete the default text in order to type in their own information.

When using forms within your web site, there may be times when you will want to include an example of what you'd like your visitors to fill in your form field. Although you could place some default text within your form field, your users would need to delete the default text in order to type in their own information.

Hiding text can be extremely useful to hide company logo.

29 April, 2015   

Advanced "Go to Top" link using JavaScript and HTML anchors

Visual Basic code for inverting text with simple code. Very easy for all beginners. Easy to understand. Compatibility: VB 6 Author of the code: Ben - Ezrah Mansilla Declarations: Add two text box with default name One command with default name

16 January, 2012   

MySQL can perform boolean full-text searches using the IN BOOLEAN MODE modifier with MATCH function

19 January, 2012   

CSS Code example - how to control the letters in a text

An example code to restore MSSQL database from backup

In some circumstances, you use the CreateObject function to create an object from an ActiveX class. The CreateObject function receives the class name as argument, and creates the object for you. In order to create the object, it loads and uses the right library or executable file that contains the interface for that object. For Example: set...

09 July, 2013   

Copy selected text by allowing user to simply click a button

11 February, 2011   

Make the text color transparent but add a shadow.

07 April, 2011   

Make the text color transparent but add a shadow:

13 December, 2012   

A variety of snazzy CSS typography effects.

05 August, 2014   

PHP code example to highlight words in a string.

13 December, 2011   

You can use to find and replace text in a variable. This script created by Bruce Phillips, one of the leading posters at MacScripter.