Tekil Mesaj gösterimi
  #8 (permalink)   iTrader 
Alt 2007-03-05, 10:22
NeFuSa - ait Kullanıcı Resmi (Avatar)
NeFuSa NeFuSa isimli üyemiz çevrimdışıdır. (Offline)
Yükleniyor...
 
Üyelik tarihi: Dec 2006
Nerden: Tekirdağ
Mesajlar: 2.714
Tecrübe Puanı: 4
iTrader: %86/5
NeFuSa has a spectacular aura aboutNeFuSa has a spectacular aura about
Standart Güncel Döviz Kurları Scripti

Merkez Bankası'ndan sizi hiç zahmete sokmadan güncel döviz kurlarını çekmektedir. " http://www.tcmb.gov.tr/kurlar/today.html " adresinden parametreleri alarak döviz kurları tablosunu çoğaltmanız mümkündür. Bu scripti editleyerek http://www.garanti24.com adresinde bir uygulama yapmıştım. Her portalda kullanılabilir güzel bir döviz kuru scripti... Sorun yaşayan veya yapamayan arkadaşlara yardımcı olabilirim P.M'den

Kod:
<%
strAdres = "http://www.tcmb.gov.tr/kurlar/today.html"

Public Function VeriAl(strGelen)
Set objVeriAl = Server.CreateObject("Microsoft.XMLHTTP" )
With objVeriAl
  .Open "GET" , strGelen, FALSE
  .sEnd
VeriAl =  .Responsetext
End With
SET objVeriAl = Nothing
End Function

strVeri = VeriAL(strAdres)
iDolar=InStr(strVeri,"USD" )
strDolarAlis=Mid(strVeri,iDolar+50,10)
strDolarSatis=Mid(strVeri,iDolar+51,10)

iEuro=InStr(strVeri,"EUR" )

strEuroAlis=Mid(strVeri,iEuro+38,11)
strEuroSatis=Mid(strVeri,iEuro+50,11)
%>
<html>
<title>TCMB Döviz Kurları</title>
<body>
<table width="20%" border="0" cellspacing="0" style="border: 1px solid #D7D7D7">
<tr>
<td nowrap width="99%" bgcolor="#E1E1E1" colspan="2"><strong>
<font face="Verdana"><b><font color="#FF0000" style="font-size: 7pt"> DOLAR</font></b></font></strong></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">ALIş</font></td>
<td width="92%">
<div align="left"><font face="verdana" size="1">
<p align="right"> <%=strdolaralis%> YTL 
</font></div></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">SATIş</font></td>
<td width="92%">
<div align="left"><font face="verdana" size="1">
<p align="right"> <%=strdolarsatis%> YTL 
</font></div></td>
</tr>
<tr>
<td colspan="2" style="border-top: 1px solid #C0C0C0"> </td>
</tr>
<tr>
<td colspan="2" bgcolor="#E1E1E1"><strong><font face="Verdana"><b>
<font color="#0099CC" style="font-size: 7pt"> </font><font color="#FF0000" style="font-size: 7pt">EURO</font></b></font></strong></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">ALIş</font></td>
<td width="92%">
<p align="right"><font face="verdana" size="1"> <%=streuroalis%> YTL </font></td>
</tr>
<tr>
<td nowrap width="7%"><font face="Verdana" style="font-size: 7pt; ">SATIş</font></td>
<td width="92%">
<p align="right"><font size="1" face="verdana"><%=streurosatis%> YTL</font><font size="1">
</font> </td>
</tr>
</table>
</body>
</html>
Alıntı ile Cevapla