<html>
<head>
<script type="text/javascript">
function on_focus(deger) { document.getElementById(deger).style.backgroundColor = 'yellow'; }
function on_blur(deger) { document.getElementById(deger).style.backgroundColor = '#f0f0f0'; }
</script>
</head>
<body>
<table><tr><td>
Adı : </td>
<td><input id="Text1" type="text" onfocus='on_focus("Text1")' onblur='on_blur("Text1")' style="background-color: #f0f0f0; border: solid 1px #777;" />
</td></tr><tr><td>
Soyadı : </td>
<td><input id="Text2" type="text" onfocus='on_focus("Text2")' onblur='on_blur("Text2")' style="background-color: #f0f0f0; border: solid 1px #777;"/>
</td></tr><tr><td>
E-Posta : </td>
<td><input id="Text3" type="text" onfocus='on_focus("Text3")' onblur='on_blur("Text3")' style="background-color: #f0f0f0; border: solid 1px #777;"/>
</td></tr></table>
</body></html>
is it possible this code to phpr?
my fieldname is {$fieldname}.
onfocus='on_focus("Text1")' onblur='on_blur("Text1")' style="background-color: #f0f0f0; border: solid 1px #777;"
onblur='on_blur("Text3")' style="background-color: #f0f0f0; border: solid 1px #777;"
Where should I put this code?
thnx.