Событие onmouseover
Описание
Срабатывает, когда курсор наводится на элемент.
Синтаксис
onmouseover='скрипт'
Пример
<!DOCTYPE html>
<html lang='ru'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
</head>
<body>
<div id='ty'>
<script type='text/javascript'>
function func(img, x) {
img.width = x;
}
</script>
<img src='/files/images/regular/iconka.png' width='100' alt='iconka' onmouseout='func(this, 100)' onmouseover='func(this, 200)' />
</body>
</html>