Show
Ignore:
Timestamp:
02/20/07 17:56:45 (23 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) References #2366. Converting more tests to use dojo.addOnLoad()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/widget/test_AnimatedPng.html

    r6215 r7388  
    1818        //dojo.hostenv.writeIncludes(); 
    1919 
     20        dojo.addOnLoad(function(){ 
     21                var params = {src: "images/animatedpng_static.gif", aniSrc: "images/animatedpng_frames.gif", width: 20, height: 20, interval: 50}; 
     22                var widget = dojo.widget.createWidget("AnimatedPng", params, document.getElementById("pngContainer"));   
     23        }); 
    2024</script> 
    2125<style> 
     
    4044<h3>Instantiation from Script:</h3> 
    4145<div id="pngContainer"></div> 
    42 <script type="text/javascript"> 
    43         var params = {src: "images/animatedpng_static.gif", aniSrc: "images/animatedpng_frames.gif", width: 20, height: 20, interval: 50}; 
    44         var widget = dojo.widget.createWidget("AnimatedPng", params, document.getElementById("pngContainer")); 
    45 </script> 
    46          
    4746</body> 
    4847</html>