javascript onmouseover attribute


  Translation results:

on

英[ɒn]   美[ɑ:n]  

prep. (indicating direction) to; (indicating object) to; (indicating position) on...; (indicating time) at the time of...

adv. (put, wear, connect) on; forward, (continue) go on

adj. active situation, state ;used; happening; planned

mouse

英[maʊs] 美[maʊs]

n. Mouse; mouse ; a shy [timid] person; [informal] bruised eyes

vi.catching mice; spying, secretly looking for

Plural: mice

over

UK[ˈəʊvə(r)] US[ˈoʊvə(r)]

prep. (indicating the direction) over; (partially or completely covering) on... ; Because of; (expressing discussion) about

adv. end; then; (fall) down; from one side to the other

adj. past; outside; above; superior of

n.extra;remaining;remaining (or excess) amount;residue

int.[Telecommunications]After the message is finished, please reply!

vt. Go over, skip over; [American dialect] recover from...

Plural: overs

javascript onmouseover attributesyntax

Function: Occurs when the mouse pointer moves to the specified object.

Syntax: onmouseover="SomeJavaScriptCode"

Parameters: SomeJavaScriptCode Required. Specifies the JavaScript to be executed when this event occurs.​

javascript onmouseover attributeexample

<html>
<head>
    <meta charset="UTF-8">

</head>
<body>

<img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" onmouseover="alert('鼠标在这张图片上!')" />
<p>移动鼠标至图片触发事件</p>
</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A