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

  1. ∩╗┐<?xml version="1.0" encoding="utf-8" ?> 
  2. <root>
  3. <bot name="National Geographic Slideshow">
  4. <![CDATA[
  5.  
  6. var exist=false;
  7. var re = new RegExp("<a href=\"/pod/pictures/sm_wallpaper/([^\"]+)\">","g");               
  8.  
  9. var text=slideshow.DownloadText("http://lava.nationalgeographic.com/pod/index.html");
  10. var lines=text.split("\n");
  11. for(var i=0;i<lines.length;++i)
  12. {
  13.     var line=lines[i];
  14.     var arr = re.exec(line);
  15.     if (arr!=null)
  16.     {
  17.         slideshow.AddImage("http://lava.nationalgeographic.com/pod/pictures/sm_wallpaper/"+arr[1],"http://lava.nationalgeographic.com/pod/index.html","");
  18.         exist=true;
  19.     }
  20. }
  21.  
  22. if (!exist) {
  23.     slideshow.log("Cannot find links in National Geographic Slideshow");
  24. }
  25.  
  26. ]]>
  27. </bot>
  28. </root>