<html>
<head>
<script language="Javascript">
function changecolor(var c)
{
document.body.style.background=c;
}
</script>
</head>
<body>
<table width="300" height="100" align="center" border=2>
<tr>
<td onmouseout=changecolor("transparent") onmouseover=changecolor("red")>red</td>
<td onmouseout=changecolor("transparent") onmouseover=changecolor("green")>green</td>
<td onmouseout=changecolor("transparent") onmouseover=changecolor("blue")>blue</td>
</tr>
</table>
</body>
</html>
Я не получаю изменение цвета. Может кто-то, пожалуйста, помогите ...! Спасибо заранее.Javascript change color
используйте jsfiddle.net, чтобы показать свой пример – Ankur
функции не вар в них 'функция changecolor (Var с)' РЕКОМЕНДУЕМЫМ be 'function changcolor (c)' – abc123
Вы должны объединить свои операторы onmouseout/onmouseover с помощью ''. То есть 'onmouseout = changecolor (" transparent ")' должно быть 'onmouseout = 'changecolor (" transparent ")'' –