Autor Beitrag
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mi 08.08.07 19:54 
Hy,
ich habe eine Website:
ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
<table border=0 bgcolor=#eeeeee cellspacing=1 cellpadding=3>
                             <tr bgcolor=#aa7700>
                                 <td><a name=art><table width=500 bgcolor=#eeeeee cellspacing=0 cellpadding=2>
                                    <tr>
                                       <td width=100><div id=s1 align=left>Name <img src="../pix/flagge-uk1.jpg" border=1>
                                       </td>
                                       <td><div align=left><b>Sisays Ring</td><td bgcolor=#aa7700 width=40><div id=s1 align=center><font color=#000000>Artifact
                                       </td>
                                     </tr>
                                    <tr>
                                       <td><div id=s1 align=left>Name <img src="../pix/flagge-ger1.jpg" border=1>
                                       </td>
                                       <td><div align=left>Sisays Ring</td><td bgcolor=#aa7700>
                                       </td>
                                     </tr>
                                    <tr height=2 bgcolor=#888888>
                                       <td colspan=2>
                                        </td>
                                        <td bgcolor=#aa7700>
                                        </td>
                                      </tr>
                                    <tr>
                                       <td><div id=s1 align=left>Edition:
                                       </td>
                                       <td><div id=s1 align=left><img src="../pix/symbols/sym_7ed.jpg" border=1 align=right alt="7th Edition">7th Edition / 7. Edition
                                       </td>
                                       <td bgcolor=#aa7700>
                                       </td>
                                     </tr>
                                    <tr>
                                       <td><div id=s1 align=left>Seltenheit:
                                       </td>
                                       <td><div id=s1 align=left>Uncommon</td><td bgcolor=#aa7700>
                                       </td>
                                     </tr>
                                    <tr>
                                       <td><div id=s1 align=left>Manakosten:
                                       </td>
                                        <td><div id=s1 align=left><img src="kartensuche-extern/pix/mana4.gif" border=0 alt="">
                                        </td>
                                        <td bgcolor=#aa7700>
                                        </td>
                                      </tr>
                                    <tr>
                                       <td><div id=s1 align=left>Kartentyp:</td><td><div id=s1 align=left>Artifact
                                       </td>
                                       <td bgcolor=#aa7700>
                                       </td>
                                      </tr>
                                     <tr height=2 bgcolor=#888888>
                                         <td colspan=2>
                                        </td>
                                        <td bgcolor=#aa7700>
                                        </td>
                                     </tr>
                                     <tr>
                                         <td><div id=s1 align=left>Text: <img src="../pix/flagge-uk1.jpg" border=1>
                                        </td>
                                        <td><div id=s1 align=left>Tap: Add two colorless mana to your mana pool.</td><td bgcolor=#aa7700>
                                        </td>
                                     </tr>
                                     <tr height=2 bgcolor=#888888>
                                         <td colspan=2>
                                         </td>
                                         <td bgcolor=#aa7700>
                                         </td>
                                     </tr>
                                     <tr>
                                         <td><div id=s1 align=left>Turnierformate:
                                        </td>
                                        <td><div id=s1 align=left><b><font color=#008800><a title="legal">Vintage</a></font><font color=#000000> | </font><font color=#008800><a title="legal">Legacy</a></font><font color=#000000> | </font><font color=#00aa00><font color=#008800><a title="legal">Extended</a></font><font color=#000000> | </font><font color=#ff0000><font color=#ff0000><a title="banned">Standard</a></font>
                                        </td>
                                        <td bgcolor=#aa7700>
                                        </td>
                                     </tr>
                                     <tr>
                                         <td><div id=s1 align=left>Bild:
                                        </td>
                                        <td><div id=s1 align=left><a href="JavaScript:cardimage('Sisays Ring')">Bild anzeigen</a>
                                        </td>
                                        <td bgcolor=#aa7700>
                                        </td>
                                    </tr>
                                    <tr height=2 bgcolor=#888888>
                                       <td colspan=2>
                                       </td>
                                       <td bgcolor=#aa7700>
                                       </td>
                                        </tr>
                                      <tr>
                                            <td><div id=s1 align=left>Preis:
                                            </td>
                                            <td><div id=s1 align=left>0.25 Euro (für Mitglieder: 0.23 €) - <b><a href="http://www.miraclegames.de/d/cards.php?id=index&set=7ed&ra=u#top" target="_blank">Zum Online-Shop</a>
                                            </td>
                                            <td bgcolor=#aa7700>
                                            </td>
                                      </tr>
                                  </table>

Nun interessiert mich nur der Name und der Preis. Muss ich jetzt solange prüfen, bis Pos('<td>')=0 ist, oder gibt es da eine andere Möglichkeit?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 08.08.07 22:03 
Moin!

Du könntest mit ReverseString() den Text umkehren und dann mit Pos() nach der umgekehrten Zeichenfolge suchen... :nixweiss: :idea: :?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 08.08.07 22:41 
Hallo,

warum über '<td>' ?
damit ist es doch einfacher:
ausblenden Delphi-Quelltext
1:
2:
pos('cardimage(',sQuelle)
pos('Euro (für Mitglieder:',sQuelle)

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mo 13.08.07 13:28 
user profile iconNarses hat folgendes geschrieben:
Moin!

Du könntest mit ReverseString() den Text umkehren und dann mit Pos() nach der umgekehrten Zeichenfolge suchen... :nixweiss: :idea: :?

cu
Narses

Die Möglichkeit funktioniert leider nicht, da sich, was ich leider nicht mit einberechnet habe, das letzte Element ändert. Trotzdem danke. :zustimm:
user profile iconLannes hat folgendes geschrieben:
Hallo,
warum über '<td>' ?

Weiß ich eigentlich selber nicht. :oops:
user profile iconLannes hat folgendes geschrieben:
damit ist es doch einfacher:
ausblenden Delphi-Quelltext
1:
pos('cardimage(',sQuelle)					

Habe ich eingefügt. Funktioniert perfekt. Es ist zwar nur der englische Name, aber für den deutschen suche ich einfach nach 'ger1.jpg' und dann bekomme ich ihn auf die alte Weise raus.
user profile iconLannes hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
pos('Euro (für Mitglieder:',sQuelle)					

Genau danach habe ich gesucht. Danke. Und so komme ich mit ReverseString() auch gleich noch an den Nicht-Mitglieder-Preis. :wink: