How to changing font weight when mouse cursor is moved over object?
In this example you will learn how to change the font weight using JavaScript. We use the “onmouseover” and “onmouseout” events. When you put the cursor on the text ‘onmouseover’ event will fire and text will turn bold. When you remove the cursor from the text ‘onmouseout’ event will fire and text will turn normal. For Example:
Put the cursor on the following Paragraphs:
Paragraph 1:
Paragraph 1 will turn bold when the mouse cursor is placed on it.
Paragraph 2:Paragrapg 2 wil
Related Questions
- Does the red light on at the bottom of the mouse light when it is moved and does pressing Num Lock on the keyboard cause the Num Lock light to go on?
- Why do I see white marks in a control session wherever the mouse cursor is moved while using Timbuktu Pro 4.5?
- How to changing font weight when mouse cursor is moved over object?