View Single Post
ישן 12-11-06, 16:28   # 1
eLad
Fatal Error
 
eLad's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: localhost
גיל: 38
הודעות: 1,968

eLad לא מחובר  

(בהמשך להודעתו של Eli-Hai, הפוסט הנ"ל הועבר להודעה חדשה ע"י Tomer)

גם אני נותן קוד (יותר קצר מהקודם):

PHP קוד:
<%@ language=JavaScript codepage="65001"%>
<%
    var 
oXH Server.CreateObject("Msxml2.DomDocument");
    
oXH.async false;
    
oXH.setProperty("ServerHTTPRequest"true);
    
oXH.load("http://www.bankisrael.gov.il/heb.shearim/currprev.php");
    var 
aCurrencies=oXH.getElementsByTagName("CURRENCY"); 
    for (var 
i=1i<=aCurrencies.length-1i++)
        
Response.Write(aCurrencies[i].childNodes.item(2).text ": " aCurrencies[i].childNodes.item(4).text "<br />")
    
oXH null;
    
delete oXH;
%> 
והקוד בפעולה http://www.sycx.net/currency.asp
__________________
eLad
  Reply With Quote