Loading ...
Sorry, an error occurred while loading the content.

Below code not working

Expand Messages
  • toreachdeepak
    Message 1 of 2 , May 31 3:44 AM
    • 0 Attachment
      <html>
      <head>

      <!-- Dependencies -->
      <script src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>

      <!-- Source file -->
      <script src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js" type="text/javascript"></script>

      <script>
      function test123()
      {
      var element = document.getElementById('test');
      var myAnim = new YAHOO.util.ColorAnim(element, {backgroundColor: { to: '#dcdcdc' } });
      myAnim.animate();
      }
      </script>



      </head>
      <body>

      <input type="submit" value="Submit" onclick="test123()"/>

      <div id="test"></div>
      </body>
      </html>
    • theblargoner
      I suspect it is working but you re just not seeing the results because the div has no height. Try testing with John
      Message 2 of 2 , May 31 11:30 AM
      • 0 Attachment
        I suspect it is working but you're just not seeing the results because the div has no height. Try testing with

        <div id="test" style="height:200px;"></div>

        John

        --- In ydn-javascript@yahoogroups.com, "toreachdeepak" <toreachdeepak@...> wrote:
        >
        >
        > <html>
        > <head>
        >
        > <!-- Dependencies -->
        > <script src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
        >
        > <!-- Source file -->
        > <script src="http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js" type="text/javascript"></script>
        >
        > <script>
        > function test123()
        > {
        > var element = document.getElementById('test');
        > var myAnim = new YAHOO.util.ColorAnim(element, {backgroundColor: { to: '#dcdcdc' } });
        > myAnim.animate();
        > }
        > </script>
        >
        >
        >
        > </head>
        > <body>
        >
        > <input type="submit" value="Submit" onclick="test123()"/>
        >
        > <div id="test"></div>
        > </body>
        > </html>
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.