Wäre folgender Code für die Mailadressen mit den ids mail[1-99] richtig?
<style type="text/css">
.mail>span:before { content:"@"; }
.mail>span span { display:none; }
*:first-child+html .mail>span span { display:inline; } /* Workaround fuer IE 7 */
</style>
<script type="text/javascript">
function noSpam() {
if (document.getElementById) {
for(var x=0; x<=99; x++) {
if(document.getElementById("mail" + x) {
var at = "@";
var id = document.getElementById("mail");
var mail = id.firstChild; var domain = id.lastChild;
mail.nextSibling.firstChild.innerHTML = at;
id.href = "mailto:" + mail.data + at + domain.data;
}
}
}
}
</script>
<body onload="noSpam()">
<a class="mail" id="mail1" href="mail.php?ingo">ingo<span><span>∂</span></span>1ngo.de</a>
...
DANKE
Thomas