You are not logged in.

wcf.regNote.message

Snoopy

Trainee

  • "Snoopy" started this thread

Posts: 57

  • Send private message

1

Wednesday, August 4th 2004, 7:53pm

Wieso geht das nicht ?

Quoted


<head>
<title>field</title>
$headinclude
</head>
<body>
<script type="text/javascript">
<!--
var start = 0;
var bonus = 900;

function changebonus(s,b) {
document.getElementsById("a2").firstChild.data = "aaa";
}

if (bonus > 0) {
window.onload = changebonus(start, bonus);
}
//-->
</script>

<table style="width:100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="tablea" align="left">
<span class="normalfont">
<h1 id="a1">Deine Score: <b>12345</b></h1>
<h2 id="a2">Bonus: <b>1111</b></h2>
<h3 id="a3">Gegner score: <b>0000</b></h3>
</span>
</td>
</tr>
</table>

</body>

Das ist eigentlich nur ein Test. Aber egal wie ich auf den Text "Bonus" zugreife, immer die Fehlermeldung "document.getElementsById(..) ist Null oder kein Objekt.
Eigentlich möchte ich die Zahl 1111 ändern.
Nur das will nicht.

Jemand eine Idee ?
Snoopy

Snoopy

Trainee

  • "Snoopy" started this thread

Posts: 57

  • Send private message

2

Wednesday, August 4th 2004, 9:21pm

RE: Wieso geht das nicht ?

ok,auch erledigt !
<body onload="...."> dann geht es.

wcf.user.socialbookmarks.titel