Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7795631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:07:30+00:00 2026-06-01T23:07:30+00:00

im using a jQuery plugin called Textualizer and i would like to add data

  • 0

im using a jQuery plugin called Textualizer and i would like to add data to it via an HTML
form.

heres the code:

<html>
 <head>

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="textualizer.min.js"></script>
</head>

<style type="text/css">

#txtlzr{color:#585856; font-size:50px; width:1200px; height:100px;
margin-left:10%;
margin-top:80px;
font-family:"futura";
position: fixed;
}
</style>

<body>

<div id="txtlzr"></div>
<form action="#" method="post"/>

            <input class="kwote" type="text" maxlength="40" id="kwote" placeholder="Enter a something here."/>
            <input class="name"  type="text" maxlength="17" id="name" placeholder="Enter your name."/>
            <input class="post" type="submit" value="Post"/>

 </form>


 </body>




<script>



 var stuff1 = ['"random comment-person1', '"random comment"- person2'];  // list of blurbs

 var txt = $('#txtlzr');  // The container in which to render the list

 var options = {
 duration: 5,          // Time (ms) each blurb will remain on screen
rearrangeDuration: 5, // Time (ms) a character takes to reach its position
effect: 'random',        // Animation effect the characters use to appear
centered: true           // Centers the text relative to its container
 }

   txt.textualizer(stuff1); // textualize it!
   txt.textualizer('start'); // start


  </script>


 </html>

This is the complete code and will work as long as you have the jquery and textualizer files linked or in the directory with the html.

textualizer: http://kiro.me/textualizer/javascript/textualizer.min.js

jquery: http://code.jquery.com/jquery-1.7.2.min.js

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:07:32+00:00Added an answer on June 1, 2026 at 11:07 pm

    the following HTML code allows to update a JavaScript Array named COMMENTS_FOR_DISPLAY with comment, name pairs from the <form>.

    The following also code allows to persistently store comments in a cookie (provided the user allows that).

    If uses jquery-cookie which is available from here: https://github.com/carhartl/jquery-cookie

    Have fun 🙂

    <html>
      <head>
        <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
        <script src="https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js"></script>
        <script type="text/javascript"
          src="http://kiro.me/textualizer/javascript/textualizer.js"></script>
        <style type="text/css">
        #txtlzr {
          color:#585856; font-size:50px; width:1200px; height:100px;
          margin-left:10%; margin-top:20px; font-family:"futura";
          position: fixed;
        }
        </style>
      </head>
      <body>
        <form action="#" method="post"/>
          <fieldset>
           <label for="kwote">Comment:</label>
           <input class="kwote" type="text" maxlength="40" id="kwote"
             placeholder="Enter a something here."/>
           <lable for="name">Name:</label>
           <input class="name" type="text" maxlength="17" id="name"
             placeholder="Enter your name."/>
           <input class="post" type="button" value="Add comment"
             onclick="add_comment();" />
         </fieldset>
       </form>
    
        <div id="bodMain"><div id="txtlzr">foo</div></div>
    
        <script language="javascript">
        // Adds a new comment, name pair to the Array feeding textualizer.
        function add_comment() {
          // Retrieve values and add them to Array.
          var new_comment = $('#kwote').val();
          var new_name = $('#name').val();
          var new_value = new_comment + ': ' + new_name;
          COMMENTS_FOR_DISPLAY.push(new_value);
    
          // Update cookie with current data in COMMENTS_FOR_DISPLAY.
          $.cookie("COMMENTS_FOR_DISPLAY", COMMENTS_FOR_DISPLAY.join(";"));
    
          // Reset <input> fields.
          $('#kwote').val('');
          $('#name').val('');
        }
    
        $(document).ready(function() {
          var txt = $('#txtlzr');  // The container in which to render the list
    
          var options = {
            duration: 5,          // Time (ms) each blurb will remain on screen
            rearrangeDuration: 5, // Time a character takes to reach its position
            effect: 'random',     // Animation effect the characters use to appear
            centered: true        // Centers the text relative to its container
          }
    
          var _cookie = $.cookie("COMMENTS_FOR_DISPLAY");
          if (_cookie != null) {
            // Load data from cookie.
            var COMMENTS_FOR_DISPLAY = _cookie.split(";");
          }
          else {
            // If no cookie exists, fallback to default value...
            var COMMENTS_FOR_DISPLAY = new Array('Have fun again: Chris');
          }
    
          txt.textualizer(COMMENTS_FOR_DISPLAY); // textualize it!
          txt.textualizer('start'); // start
        });
        </script>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this new jQuery plugin called jsTree www.jstree.com and using the HTML
I'm using a jQuery plugin called Colorbox (http://colorpowered.com/colorbox/) and loading content via Ajax. This
I am using jQuery plugin called jsPlumb - http://jsplumb.org/jquery/demo.html and I want to connect
I am using a jquery plugin from [ FilamentGroup ] called DateRangePicker. I have
I am using the jquery validation plugin from: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ How can I add a
I am using the jQuery plugin to add support for SwfUpload by steven sanderson
I am using jquery validation plugin for form validation. I have added a custom
I'm using a jQuery plugin called Tablesorter to do client-side sorting of a log
I am using a jquery plugin called masonry. In IE & firefox, the site
I have been using a jquery plugin called uploadify for handling file uploads as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.