nurgast: IE Hack: aktives Input-Feld farblich markieren

Beitrag lesen

Hallo,

Tach auch,

wenn wir schon mal dabei sind und wie geht das dann mit Java Script???

<script type="text/javascript">
function cOn(tr){
if(document.getElementById||(document.all && !(document.getElementById))){
tr.style.backgroundColor="#ffffcc";
}
}

function cOut(tr){
if(document.getElementById||(document.all && !(document.getElementById))){
tr.style.backgroundColor="#ffffff";
}
}
</script>

und dann ins tag

... onmouseover="cOn(this);" onmouseout="cOut(this);" ...

Gruß Tino

Gruß,
nurgast