hallo zusammen,
ich bin ein neuling in sachen html
habe aber folgendes problem:
ich möchte eine textdatei die links enthält einlesen
und diese durchsuchbar machen.
die textdatei hat dann folgenden inhalt
gps-koordinte, mastnummer, bezeichnung, masttyp, link zu bilder
für die daten habe ich schon gefunden und für meine zwecke umgebaut, aber bei den links komme ich einfach nicht weiter.
wäre schön wenn mir jemand weiterhelfen könnte.
hier die seite die ich bis jetzt zusammen bekommen habe
<html><head><title>Bahnstromleitung</title>
<script language="JScript" type="text/jscript">
<!--
function Suchen() {
var Datensaetze = 1000;
document.all.Anzeigetabelle.style.display = "none";
var Suchausdruck = "";
var Suchbegriffe = 0;
if(document.Eingabe.SuchGps.value != "") {
Suchausdruck = Suchausdruck + "GPS-Koordinate = " + document.Eingabe.SuchGps.value;
Suchbegriffe++;
}
if(document.Eingabe.SuchMast.value != "") {
if(Suchbegriffe > 0)
Suchausdruck = Suchausdruck + " & Mastnummer = " + document.Eingabe.SuchMast.value;
else
Suchausdruck = Suchausdruck + "Mastnummer = " + document.Eingabe.SuchMast.value;
Suchbegriffe++;
}
if(document.Eingabe.SuchBL.value != "") {
if(Suchbegriffe > 0)
Suchausdruck = Suchausdruck + " & BL-Nr = " + document.Eingabe.SuchBL.value;
else
Suchausdruck = Suchausdruck + "BL-Nr = " + document.Eingabe.SuchBL.value;
Suchbegriffe++;
}
document.all.Begriffe.object.Filter = Suchausdruck;
document.all.Begriffe.Reset();
document.all.Anzeigetabelle.dataSrc = "#Begriffe";
if(document.all.Begriffe.recordset.recordCount < Datensaetze) {
document.all.Anzeigetabelle.dataPageSize = Begriffe.recordset.recordCount;
document.all.Treffer.innerText = Begriffe.recordset.recordCount + " Suchtreffer!";
document.all.Anzeigetabelle.style.display = "block";
}
else
document.all.Treffer.innerText = "0 Suchtreffer!";
}
//-->
</script>
</head>
<body>
<html>
<head>
<title>Auskunft</title>
</head>
<font face="Arial"><font color="0000000">
<text="#000000" link="#A00000" vlink="#600000" alink="#A00000">
<html><head><title>background-color</title>
<style type="text/css">
body { background-color:#E2E2E2; }
.graubox { background-color:#E2E2E2; padding:6px; margin:0px; }
.grau { background-color:#E2E2E2; }
.gelbbox { background-color:#FFFF66; padding:6px; margin:0px; }
.gelb { background-color:#FFFF66; }
</style>
</head><body>
<basefont size="6">
<object id="Begriffe" classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param name="DataURL" value="gps-daten.txt">
<param name="UseHeader" value="true">
<param name="Filter" value="">
<param name="FieldDelim" value=" ">
</object>
<p></p>
<basefont size="3">
<font face="Arial"><font color="0000000">
<p></p>
<br>
<p>Über die <b>Auskunft</b> können Sie nach Begriffen wie Gemarkung, der BL Nummer
usw. suchen. Bei der Suche nach mehreren Begriffen werden die Eingaben logisch durch UND verknüpft.
Sie dürfen auch das Wildcardzeichen <b>*</b> für Teilausdrücke verwenden. Suchen Sie z. B. mal im Feld
(Gemarkung) nach <b>Al*</b> oder im Feld (Gemeinden) nach <b>*stadt</b> </b>.</p>
<br>
<p><b>! Kleiner Tipp: Bei der Suche nach Gemeinde immer einen * am Ende des Namens setzen, falls die Gemeinde eine Stadt ist !</b></p>
<form name="Eingabe" action="">
Suche nach:<br>
<input name="SuchGps" type="text" width="35"> (GPS-Koordinate)<br>
<input name="SuchMast" type="text" width="35"> (Mastnummer)<br>
<input name="SuchBL" type="text" width="35"> (BL-Nr)<br>
<input type="button" style="width:150px; height:25px;" value="Suche starten" onClick="Suchen()">
</form>
<a href="firefox.bat"><b>Google MAPS starten</a><br>
<p></p>
<table border="1" cellpadding="1" cellspacing="0"><tr><td>
<table width="700">
<tr>
<td valign="top" colspan="8">
<span id="Treffer" style="color:#0000CC; font-weight:bold;"> </span>
</td>
</tr>
<tr>
<td bgcolor="#EEEEEE" valign="top" width="25%"><b>GPS-Koordinate:</b></td>
<td bgcolor="#EEEEEE" valign="top" width="15%"><b>Mastnummer:</b></td>
<td bgcolor="#EEEEEE" valign="top" width="15%"><b>BL-Nr:</b></td>
<td bgcolor="#EEEEEE" valign="top" width="35%"><b>Bezeichnung:</b></td>
<td bgcolor="#EEEEEE" valign="top" width="10%"><b>Masttyp:</b></td>
</tr>
</table>
<table id="Anzeigetabelle" style="display:none" width="700">
<tr>
<td bgcolor="#FFFFE0" valign="top" width="25%"><span datafld="GPS-Koordinate"></span></td>
<td bgcolor="#FFFFE0" valign="top" width="15%"><span datafld="Mastnummer"></span></td>
<td bgcolor="#FFFFE0" valign="top" width="15%"><span datafld="BL-Nr"></span></td>
<td bgcolor="#FFFFE0" valign="top" width="35%"><span datafld="Bezeichnung"></span></td>
<td bgcolor="#FFFFE0" valign="top" width="10%"><span datafld="Masttyp"></span></td>
</tr>
</table>
</td></tr></table>
</body>
</html>