mur [Usunięty]
|
Wysłany:
2006-04-14, 21:27 [ java script ] wyświetlanie tekstu zapisanego w kilu linijk
|
|
|
chodzi tu o kursy walut na kalendarzach:
mam taki kod:
Kod <table width=170 border=0 cellspacing=0 cellpadding=0><tr><td>Waluta</td><td>Kupno</td><td>Sprzedaż</td></tr><tr><td>1 USD
</td><td>3,21</td><td>3,27</td></tr><tr><td>1 AUD
</td><td>2,34</td><td>2,39</td></tr><tr><td>1 CAD
</td><td>2,79</td><td>2,85</td></tr><tr><td>1 EUR
</td><td>3,88</td><td>3,96</td></tr><tr><td>100 HUF
</td><td>1,46</td><td>1,49</td></tr><tr><td>1 CHF
</td><td>2,47</td><td>2,52</td></tr><tr><td>1 GBP
</td><td>5,62</td><td>5,73</td></tr><tr><td>100 JPY
</td><td>2,71</td><td>2,77</td></tr><tr><td>1 CZK
</td><td>0,13</td><td>0,13</td></tr><tr><td>1 DKK
</td><td>0,52</td><td>0,53</td></tr><tr><td>1 EEK
</td><td>0,24</td><td>0,25</td></tr><tr><td>1 NOK
</td><td>0,49</td><td>0,50</td></tr><tr><td>1 SEK
</td><td>0,41</td><td>0,42</td></tr><tr><td>1 XDR
</td><td>4,62</td><td>4,72</td></tr></table>
wszytsko ciągnę z pliku czyli na stronie wstawiam
Kod <script type="text/javascript" src="http://mur2.ovh.org/kalendarze/wlepki/kurs,walut.php"></script>
moja ostatnia próba to:
Kod tresc = '<table width=170 border=0 cellspacing=0 cellpadding=0><tr><td>Waluta</td><td>Kupno</td><td>Sprzedaż</td></tr><tr><td>1 USD
</td><td>3,21</td><td>3,27</td></tr><tr><td>1 AUD
</td><td>2,34</td><td>2,39</td></tr><tr><td>1 CAD
</td><td>2,79</td><td>2,85</td></tr><tr><td>1 EUR
</td><td>3,88</td><td>3,96</td></tr><tr><td>100 HUF
</td><td>1,46</td><td>1,49</td></tr><tr><td>1 CHF
</td><td>2,47</td><td>2,52</td></tr><tr><td>1 GBP
</td><td>5,62</td><td>5,73</td></tr><tr><td>100 JPY
</td><td>2,71</td><td>2,77</td></tr><tr><td>1 CZK
</td><td>0,13</td><td>0,13</td></tr><tr><td>1 DKK
</td><td>0,52</td><td>0,53</td></tr><tr><td>1 EEK
</td><td>0,24</td><td>0,25</td></tr><tr><td>1 NOK
</td><td>0,49</td><td>0,50</td></tr><tr><td>1 SEK
</td><td>0,41</td><td>0,42</td></tr><tr><td>1 XDR
</td><td>4,62</td><td>4,72</td></tr></table>'; document.write(tresc);
nie działa. jak mam ten kod opisać żeby sie wywiatlał na stronie?
|
|