Hi,
Das funktioniert im IE, dann hab ich aber im Firefox 2 @-Zeichen...
sorry, aber das kann ich bei Deinem Code auch in diesem Browser nicht nachvollziehen.
Zum Vergleich:
<html><head>
<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) {
var at = "@";
for(var x=0; x<=99; x++) {
if(document.getElementById("mail" + x)) {
alert(document.getElementById("mail" + x).firstChild.nextSibling.nodeName);
var id = document.getElementById("mail" + x);
id.firstChild.nextSibling.firstChild.innerHTML = at;
}
}
}
}
</script>
<body onload="noSpam()">
<a class="mail" id="mail1" href="mail.php?ingo">ingo<span><span>∂</span></span>1ngo.de</a>
<a class="mail" id="mail2" href="mail.php?ingo">ingo<span><span>∂</span></span>1ngo.de</a>
</body>
</html>
freundliche Grüße
Ingo