MediaZeal Web Design: Tips & Tricks
Home
Services
Pricing
Portfolio
Worksheet
Contact


Tips & Tricks for the Web
Lorem Ipsum Text Generator
MediaZeal Web Design

Feel free to link to this article. If you copy it to post on your site in full or in part,
please include a credit and link to MediaZeal Web Design.

MediaZeal will gladly help you with JavaScript problems. Learn more about our JavaScript Solutions.

Designers often need text filler to use when formatting a new design layout. Here's a simple lorem ipsum text generator to provide text in 1 - 6 paragraphs. How to code this generator is available below.

Click a button to generate how many paragraphs you want. Then highlight the text and paste it into your page.

           
Here's How to Use It

Paste this code into the head section
<script language="JavaScript">
<!--//hide script
<!-- This script is available free online at MediaZeal Web Design --->
<!-- http://mediazeal.com --->

<!--Begin

var msg1 = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut odio. Nam sed est. Nam a risus et est iaculis adipiscing. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer ut justo. In tincidunt viverra nisl. Donec dictum malesuada magna. Curabitur id nibh auctor tellus adipiscing pharetra. Fusce vel justo non orci semper feugiat. Cras eu leo at purus ultrices tristique.\n\n";

var msg2 = "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.\n\n";

var msg3 = "Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.\n\n";

var msg4 = "Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.\n\n";

var msg5 = "Cras consequat magna ac tellus. Duis sed metus sit amet nunc faucibus blandit. Fusce tempus cursus urna. Sed bibendum, dolor et volutpat nonummy, wisi justo convallis neque, eu feugiat leo ligula nec quam. Nulla in mi. Integer ac mauris vel ligula laoreet tristique. Nunc eget tortor in diam rhoncus vehicula. Nulla quis mi. Fusce porta fringilla mauris. Vestibulum sed dolor. Aliquam tincidunt interdum arcu. Vestibulum eget lacus. Curabitur pellentesque egestas lectus. Duis dolor. Aliquam erat volutpat. Aliquam erat volutpat. Duis egestas rhoncus dui. Sed iaculis, metus et mollis tincidunt, mauris dolor ornare odio, in cursus justo felis sit amet arcu. Aenean sollicitudin. Duis lectus leo, eleifend mollis, consequat ut, venenatis at, ante.\n\n";

var msg6 = "Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\n\n";

function get() {
document.form.lorem.value = msg1;
}
function get2() {
document.form.lorem.value = msg1 + msg2;
}
function get3() {
document.form.lorem.value = msg1 + msg2 + msg3;
}
function get4() {
document.form.lorem.value = msg1 + msg2 + msg3 + msg4;
}
function get5() {
document.form.lorem.value = msg1 + msg2 + msg3 + msg4 + msg5;
}
function get6() {
document.form.lorem.value = msg1 + msg2 + msg3 + msg4 + msg5 + msg6;
}
// --->
</script>


Paste this code into the body section
<form name="form">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="text11dk" align="center">
<input type="button" name="btn1" onClick="get();" value="one">
<input type="button" name="btn2" onClick="get2();" value="two">
<input type="button" name="btn3" onClick="get3();" value="three">
<input type="button" name="btn4" onClick="get4();" value="four">
<input type="button" name="btn5" onClick="get5();" value="five">
<input type="button" name="btn6" onClick="get6();" value="six">
<input type="reset" name="reset" value="clear">
<img src="images/spacer.gif" alt="" width="1" height="3" border="0">
</td>
</tr>
<tr>
<td class="text11dk" align="center"><textarea name="lorem" cols="60" rows="15" wrap></textarea></td>
</tr>
</table>
</form>



Feel free to link to this article. If you copy it to post on your site in full or in part, please include a credit and link to MediaZeal Web Design.

link to MediaZeal home page

© 2000- MediaZeal Web Design Sacramento :: Site map