Standard Javascript rollovers

On many web pages, javascript rollovers are handled by adding an onmouseover and onmouseout event on images.

  • onmouseover is triggered when the mouse moves over an element
  • onmouseout is triggered when the mouse moves away from the element

Syntax

In HTML:

<element onmouseover="myScript">

In JavaScript:

object.onmouseover = function(){myScript};

In JavaScript, using the addEventListener() method:

object.addEventListener("mouseover", myScript);

Example: 1

Execute a JavaScript when moving the mouse pointer onto an image it gets bigger:

Example: 2

Execute a JavaScript when moving the mouse pointer onto an image it changes:

 

Working hours

 

Day Timing
Monday To Friday 8:00 Am To 8:00Pm
Saturday & Sunday 8:00 Am To 5:00Pm
 
 

Contact Information
ADDRESS: 263, First Floor
Pocket H-17, Sector 7
Rohini, Delhi - 110085
Near Rohini West Metro Station
Opposite Metro Pillar No. 425

Email: contactbapugraphics@gmail.com
            bapugraphicsindia@gmail.com

Mobile: 9891222738

Copyright © 2014 Bapu Graphics, All Right Reserved.