Page Maker: ein Datafeld in einer Tabelle als anclickbare email !

Beitrag lesen

Hallo !

Ich habe folgendes:
Ich habe eine Tabelle, die mir mit hilfe eines JavaScript (nicht von mir) Daten aus einer *.txt datei anzeigt ( Name und Email )
Die daten sind nicht immer gleich, also es können 10 oder 100000
einträge in der datei sein.
Ich möchte gerne, das die email nicht nur als text angezeigt wird, sondern automatisch ein mailto bekommt, so das man nur noch drauf clickt und das mailprogramm geht auf. So weit klar ?
_____________________________________________________________________

Hier der komplette Code:

Name|Firstname|Street|Nr|Code|City|Tel|Email
AAA|AAA|AAAstreet|111|101010|A-town|001/555 000| aaa@aaa.com
So sieht die daten.txt datei aus
_____________________________________________________________

<html>
<head>
<style media="screen" type="text/css">
<!--
body { background: url(tribal.gif) no-repeat 0cm 12.2mm }

.Arrows { font-weight:800; font-size:6pt; color:FF6633 }

.Matches { width: 150px; font-weight:900; font-size:25pt; color:FF6633; position:absolute; top:170px; left:328px; width:250px }

.Firstname { background-color: #7E7450; width: 150px ;font-familiy:Avantgarde,Arial; font-size:8pt; color:FFFFCC;
position:absolute; top:245px; left:630px; width:130px }

.name { background-color: #7E7450; width: 150px; font-familiy:Avantgarde,Arial; font-size:8pt; color:FFFFCC;
position:absolute; top:245px; left:630px; width:130px }

.Search { color:#7E7450; font-weight:bold; font-family:Arial; font-size:8pt;
position:absolute; top:245px; left:630px; width:130px }
-->
</style>

<script language="JScript">
function Search()
{

document.all.Show.style.display = "none";
var Searchexpression = "";
var Searchnotion = 0;
if(document.Userinput.SearchName.value != "")
{
if(Searchnotion > 0)
Searchexpression = Searchexpression + " & Name = " + document.Userinput.SearchName.value;
else
Searchexpression = Searchexpression + "Name = " + document.Userinput.SearchName.value;
Searchnotion++;
}
if(document.Userinput.SearchFirstname.value != "")
{
if(Searchnotion > 0)
Searchexpression = Searchexpression + " & Firstname = " + document.Userinput.SearchFirstname.value;
else
Searchexpression = Searchexpression + "Firstname = " + document.Userinput.SearchFirstname.value;
Searchnotion++;
}
document.all.Address.object.Filter = Searchexpression;
document.all.Address.Reset();
document.all.Show.dataSrc = "#Address";
if(document.all.Address.recordset.recordCount < 16)
{
document.all.Show.dataPageSize = 16;
document.all.Match.innerText = Address.recordset.recordCount + " Match(es) !";
document.all.Show.style.display = "block";
}
else
document.all.Show.dataPageSize = 16;
document.all.Match.innerText = Address.recordset.recordCount + " Match(es) !";
document.all.Show.style.display = "block";
}
</script>
<TITLE>XXX</TITLE>
</head>
<body bgColor=#dcd299>

<style>
<!--
body {
scrollbar-DarkShadow-Color:FF6347; scrollbar-Track-Color:555555;
scrollbar-Face-Color:FF6633; scrollbar-Shadow-Color:CC0000;
scrollbar-Highlight-Color:FF6666; scrollbar-3dLight-Color:FF6666;
scrollbar-Arrow-Color:gold;
}
-->
</style>

<object id="Address" classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83" codebase="(Empty Reference!)">

<param name="DataURL" value="data.txt">
<param name="UseHeader" value="true">
<param name="FieldDelim" value="|">
<param name="Filter" value="">
<param name="CaseSensitive" value="false">

</object><img src="Letter.jpg" width="766" height="76" border="0" style="position:absolute; top:20px; left:0px">

<form name="Userinput" style="position:absolute; top:-10px; left:0px; width:130px">

<input style="position:absolute; top:230px; left:10px; width:130px" class ="Firstname" name="SearchName" type="text" width=40>

<input style="position:absolute; top:230px;left:150px; width:150px" class="name" name="SearchFirstname" type="text" width=40>

<input style="position:absolute; top:230px;left:320px; width:150px"type="button" class="Search" style="width:150px; height:20px;" value="<--~o(search)°~-->" onClick="Search()">

<hr style="position:absolute; top:256px; left:0px; width:766px"color=FF6633 size="1" width="750">
<hr style="position:absolute; top:222px; left:0px; width:766px"color=FF6633 size="1" width="750">
</form>

<span id="Match" style="font-family:Arial; font-weight:900; font-size:50pt; color:CC5656; position:absolute; top:120px; left:250px; width:500px; filter:Glow(color=#FF5522, strength=10); text-indent:1.5mm; line-height:65pt; ">
</span>

<form name="Headline_Show" style="position:absolute; top:260px; left:0px; width:130px">
<!-- Table headline start -->
<table style=margin-left:10px; style=border-style:dashed; style=border-width:0.01cm style=border-color:FF6633 width="750">

<tr> <!-- This is the Headline for the table -->
<td width=100 style="font-family:Arial; font-size:12pt; color:FF6633"><b>Name</b></td>
<td width=100 style="font-family:Arial; font-size:12pt; color:FF6633"><b>Firstname</b></td>
<td width=75 style="font-family:Arial; font-size:12pt; color:FF6633"><b>Street</b></td>
<td width=50 style="font-family:Arial; font-size:12pt; color:FF6633"><b>Nr</b></td>
<td width=60 style="font-family:Arial; font-size:12pt; color:FF6633"><b>Code</b></td>
<td width=60 style="font-family:Arial; font-size:12pt; color:FF6633"><b>City</b></td>
<td width=74 style="font-family:Arial; font-size:12pt; color:FF6633"><b>Tel</b></td>
<td width=214 style="font-family:Arial; font-size:12pt; color:FF6633"><b>eMail</b></td>
</tr>
</table><!-- Table headline end -->

<!-- Table Entries start , here you find the eMail field, which should be a link/ anchor to an eMail address -->

<table style=margin-left:10px id="Show" datasrc="#Address" style="display:none" width="755">
<tr>
<td width=100 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="Name"></span></td>
<td width=100 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="Firstname"></span></td>
<td width=79 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="Street"></span></td>
<td width=50 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="Nr"></span></td>
<td width=60 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="Code"></span></td>
<td width=60 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="City"></span></td>
<td width=69 style="font-family:Arial; font-size:8pt; color:808080"><span datafld="Tel"></span></td>

<td width=215 style="font-family:Arial; font-size:8pt;color:808080"><span datafld="eMail"></span></td>
</tr> <!-- this one is the field, where the eMail data of my data.txt file is shown -->
</table><!-- Table Entries end -->

<!-- Table baseline start -->

<table style=margin-left:0px id="Line" width="762">
<tr>
<td width=762 style="font-family:Arial; font-size:7pt; color:FF6633" colspan="1">
<hr color=FF6633 size="1" width="760" align="center">
</td>
</tr>
</table><!-- Table baseline start -->

<!-- Show previous and next Table entries start -->
<input class="Arrows" style="position:absolute; left:720px" type=button value=" < " onclick="document.all.Show.previousPage();">
<input class="Arrows" style="position:absolute; left:745px" type=button value=" > " onclick="document.all.Show.nextPage();">
<!-- Show previous and next Table entries end -->
</form>

</body>
</html>