Breaking News
yeni film izle hd film seyret film izle

Onmouseover events In Java Script

This event occurs when the cursor is brought over the specified object, the coordinates of the object are noted and if the position of cursor falls inside those coordinates this event gets fired, to which we can program accordingly.
 
Example:
 
<html>

<head>

<title>events </title>

</head>

<body bgcolor=green text=”white”>

<h4 align =center> Please bring your mouse over the image</h4>

<img id=”img1″ src=”water.jpg” height=200 width=200 onmouseover=”ff()”>

  <script>

function ff()

{

document.all.img1.width=”180″ document.all.img1.height=”180″

}

</script>

</body>

</html>

Check Also

Functions Returning Values In Java Script

Function is a set of statements recognized by a name and can be used as …