Add a Page to the Website, take a Image Control on it

  1. <html>  
  2.   
  3. <head>  
  4.     <script type="text/javascript" src="jquery.js"></script>  
  5.     <script type="text/javascript">  
  6.         $(document).ready(function()  
  7.                     {  
  8.                     var Images = ['Images/Desert.jpg''Images/LightHouse.jpg''Images/penguins.jpg''Images/Tulips.jpg'];  
  9.                     var count = Images.length;  
  10.                     var Image = $('img[id$ = Image1]')  
  11.                     Image.attr('src', Images[count - 1]);  
  12.                     setInternal(slideshow, 3000);  
  13.   
  14.                     function slideshow()   
  15.                     {  
  16.                         Image.fade_out('slow', function()  
  17.                             {  
  18.                                 Image.attr('src', Images[(Images.length++) % count]).fadeIn('slow');  
  19.                             }  
  20.                         });  
  21.     </script>  
  22. </head>  
  23.   
  24. </html>