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

  • Home
  • SEARCH
  • 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 8716849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:10:58+00:00 2026-06-13T06:10:58+00:00

I am having trouble loading multiple javascripts in HTML page. Here is the code

  • 0

I am having trouble loading multiple javascripts in HTML page. Here is the code it is for the txtlzr and spin effect. . The spinner function name is “rotation” and the txtlzr function name is “rr”

 <html>
 <head>
   <title></title>
   <script src="http://code.jquery.com/jquery.min.js"></script>
   <script src="http://raw.github.com/krisk/textualizer/master/textualizer.min.js"></script>
   <style type="text/css">
     #txtlzr { font-size: 150px; width: 960px; height:250px; }
    </style>
 </head>
 <body onload: "rr(); rotation()";><div id="txtlzr"> </div> </body>

    <script>
    $(function rr() {
             var list = ['Text 1', 'Hello World', 'Screencasts'];
        var options = {
            duration: 1000,          // Time (ms) each blurb will remain on screen
            rearrangeDuration: 1000, // 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
        }
        var txt = $('#txtlzr');
        txt.textualizer(list, options); // textualize it!
        txt.textualizer('start'); // start
    });

    </script>
    <img src="https://www.google.com/images/srpr/logo3w.png" id="image">​
    <script  type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
    </script>
    <script type="text/javascript"        src="http://jqueryrotate.googlecode.com/svn/trunk/jQueryRotate.js"></script>
    <script type="text/javascript">
    function rotation() {
        $("#image").rotate({
            angle: 0,
            animateTo: 360,
            callback: rotation,
            easing: function (x, t, b, c, d) { // t: current time, b: begInnIng value, c:      change In value, d: duration
                return c * (t / d) + b;
            }
        });
    };
    $(document).ready(function () {
        rotation();
    })
</script>
</html>
  • 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-13T06:10:59+00:00Added an answer on June 13, 2026 at 6:10 am

    Huge mess

    1. put the scripts in the head
    2. load jQuery once
    3. rr was not a function but a mix of jQuery and plain JS
    4. the HTML would never validate
    5. do not use body onload when you have document.ready (and even then use window.onload instead if you do not have jQuery

    try this DEMO

    <html>
      <head>
        <title></title>
          <script src="http://code.jquery.com/jquery.min.js"></script>
          <script src="http://raw.github.com/krisk/textualizer/master/textualizer.min.js"></script>
          <script type="text/javascript" src="http://jqueryrotate.googlecode.com/svn/trunk/jQueryRotate.js"></script>
          <script>
            function rotation() {
              $("#image").rotate({
                angle: 0,
                animateTo: 360,
                callback: rotation,
                easing: function (x, t, b, c, d) { // t: current time, b: begInnIng value, c:      change In value, d: duration
                    return c * (t / d) + b;
                }
              });
            };
    
            function rr() {
              var list = ['Text 1', 'Hello World', 'Screencasts'];
              var options = {
                duration: 1000,          // Time (ms) each blurb will remain on screen
                rearrangeDuration: 1000, // 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
              }
              var txt = $('#txtlzr');
              txt.textualizer(list, options); // textualize it!
              txt.textualizer('start'); // start
            };
            $(document).ready(function () {
              rr();
              rotation();
            });
    
          </script>
          <style type="text/css">
           #txtlzr { font-size: 150px; width: 960px; height:250px; }
          </style>
        </head>
        <body>
          <div id="txtlzr"> </div> 
          <img src="https://www.google.com/images/srpr/logo3w.png" id="image">​
       </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope someone can help me here. I'm having trouble loading this variable. Right
I'm having a bit of trouble loading an html file in a WebView control
Having trouble with each function... Will try to explain by example... In my code,
I'm having trouble loading the mysql data to the option box using php. Here's
I am using the jQuery qTip plugin and am having trouble loading html content
I'm using Model-View-Presenter framework. When Loading a page, I'm having trouble setting the selected
I'm having trouble loading custom HTML into my UIWebView without breaking its goBack method.
I am having trouble with loading JSON into an app that im creating $(#load_basic).click(function(){
I'm having trouble loading a local French / Spanish HTML within Windows Phone 7.
I'm having trouble efficiently loading data into a sparse matrix format in R. Here

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.