Moin.
Keine Ahnung, ob Dir das hier hilft. Ein kleine Spielerei, die ich mittlerweile im grossen Stil benutze um das Pflegen von Events zu vereinfachen:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
[code lang=javascript]<script type="text/javascript">
window.onload = function ()
{
idOne = document.getElementById("one");
idTwo = document.getElementById("two");
idThree = document.getElementById("three");
idTwo.onclick = function()
{
if (!idOne.onclick)
{
alert("no onclick exists");
}
else
{
alert("onclick exists");
}
}
idThree.onclick = function()
{
done = function()
{
alert("clicked");
}
idOne.onclick = done;
}
}
</script>
</head>
<body>
<a id = "one">click</a>
<a id = "two">check</a>
<a id = "three">create</a>
</body>
</html>[/code]
--
Ich bin dafuer verantwortlich was ich sage, nicht dafuer, was Du verstehst.
Ich bin dafuer verantwortlich was ich sage, nicht dafuer, was Du verstehst.