Hallo MadeVr.
Hallo MadeVr.
Bitte zitiere vernünftig, danke.
Hm, also der Code:
onfocus="fade(this, 000,000,160,145,167,227,<?php echo $fade_time ?>)" onblur="fade(this, 145,167,227,000,000,160,<?php echo $fade_time ?>)"
Dieser Code ist unbrauchbar, da PHP für clientseitige Probleme nicht relevant ist. Bitte poste das, was im Browser ankommt.
Es ist also ein Textfeld, dass durchaus ein OnFocus liefert, nur wenn mann dann per Tabulator ins nächste Textfeld wechselt, wird OnBlur nicht aufgerufen.
Auch das kann ich nicht nachvollziehen:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript">
[code lang=javascript] function baz() {
alert(this.name);
}
window.onload = function() {
document.forms[0].elements[0].onblur = baz;
document.forms[0].elements[1].onblur = baz;
};
</script>
</head>
<body>
<form action="">
<p><input type="text" name="foo" /> <input type="text" name="bar" /></p>
</form>
</body>
</html>[/code]
In beiden Fällen wird der Name des soeben verlassenen Formularelementes ausgegeben.
Einen schönen Donnerstag noch.
Gruß, Mathias
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]