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

Re: Below code not working

Expand Messages
  • 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 1 of 2 , May 31, 2009
    • 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.