Category: >> ASP/VB Code >> Random Text in ASP Bookmark and Share

<< lastnext >>

Snippet Name: Random Text in ASP

Description: Simple random text picker. Selects a line from the RTEXT array and displays it on your page. Use for quotes, jokes, etc. Replace the 'X" parameter in the RTEXT(X) array statement with the number of lines you have in the array.

Also see:
» Auto-link text with a given set of
» Remove empty lines from text files
» Convert text to image in php
» Reading and Writing to text files ...
» Select text in a DIV, SPAN, or tab...
» Create an array from words in an H...
» Randomize an array
» Removing duplicate array items whi...
» Get every 2nd (or 3rd, 4th, ...) e...
» Grab the last element of an array
» Create an array from the contents ...
» Create an array from the lines of ...
» Create an array from comma separat...
» Create an array from a range of le...
» Reversing text command
» Easy Numeric Array Sorting
» Handy In_Array() Just Like In PHP
» Create Filler Text
» Easily Change Text To Lowercase
» Read GET URL Variables Into An Ass...
» Truncate text while preserving HTM...
» Array of all US states
» Search array elements for a substr...
» Create a drop down menu from an ar...
» Limit Text Area Characters
» Flip Text Upside Down
» Unset unkown array element
» Convert text to soundex
» Show info on current context

Comment: (none)

Language: ASP
Highlight Mode: ASP
Last Modified: December 04th, 2010

function RandomText()
redim RTEXT(X) ' Replace 'X' with the number of lines below
RTEXT(0) = "Lorem ipsum dolor...."
RTEXT(1) = "Lorem ipsum dolor...."
RTEXT(2) = "Lorem ipsum dolor...."
RTEXT(3) = "Lorem ipsum dolor...."
End FunctionRa
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© | users online: 8