Javascript Essentials Part 6

We shall discuss the following important issues relating to javascript.

  • Mouseover mouseout changes and Theme change
    – Change Link Color (Text change, Color change, both change)
    – Color Switch by css (background change)
    – Theme switch by css
  • Image Galleries
    – CJ motion gallery – left right mouse over scroll
    – Oncliking link image changes with fade in out – gallery (Captions & Image Transitions)
    – Compact Gallery
    – One popup for all images (Displaying changing images.)
    – One popup for all images (Displaying changing images and captions
  • More Form Effects
    – Form field highlight on focus
    – Form Field Select
    – Form field counter
    – Data appears or disappears on click and focus out

Mouseover mouseout changes

Change Link Color(Text change, Color change, both change)

This example explains how to change the link color and text on mouse over and out events.

Consider following script for mouse over and out events.

onMouseOver="this.innerHTML = 'The Software Tycoon'; = '#ff0000';" onMouseOut="this.innerHTML = 'Microsoft'; = '#0000ff';"

Full example:

<A HREF=""
onMouseOver=" = '#ff0000';" onMouseOut=" = '#0000ff';">Microsoft</A>
<A HREF="">
<FONT COLOR="#0000ff" onMouseOver="this.innerHTML = 'The Software Tycoon'; = '#ff0000';" onMouseOut="this.innerHTML = 'Microsoft'; = '#0000ff';">Microsoft</FONT></A>
<A HREF="">
<FONT onMouseOver="this.innerHTML = 'The Software Tycoon'" onMouseOut="this.innerHTML = 'Microsoft'">Microsoft</FONT></A>

more reference at JavaScript Event Handlers – onmouseover and onmouseout

1 thought on “Javascript Essentials Part 6

Comments are closed.