home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Programy / sidebarb67.exe / install.msi / _B22B9B4A2362BC0B8C5367867DF806C7 / _09B0F5515AB7472490E74F0D37A64075 < prev    next >
Extensible Markup Language  |  2004-04-04  |  594b  |  23 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8" ?> 
  2. <root>
  3. <bot name="PowerShot Users: Picture Of The Day">
  4. <![CDATA[
  5.  
  6. var re = new RegExp("<IMG SRC=\"potd/([0-9]+.jpg)\" [^>]+>");               
  7.  
  8. var text=slideshow.DownloadText("http://www.benel.com/powershot/pic-of-the-day.php");
  9. var lines=text.split("\n");
  10. for(var i=0;i<lines.length;++i)
  11. {
  12.     var line=lines[i];
  13.     var arr = re.exec(line);
  14.     if (arr!=null)
  15.     {
  16.         slideshow.AddImage("http://www.benel.com/powershot/potd/"+arr[1],"http://www.benel.com/powershot/pic-of-the-day.php","");
  17.     }
  18. }
  19.  
  20.  
  21. ]]>
  22. </bot>
  23. </root>