How can I make OnMouseOver effect apply in a whole <div>
like whenever the mouse is over that div it does something.

Recommended Answers

All 2 Replies

How can I make OnMouseOver effect apply in a whole <div>
like whenever the mouse is over that div it does something.

i would put an id on the div then use a document.getElementById within the mouse over function.

If you want to be specific with what you want to achieve then let us know...


Hope it helps...

<div onmouseover='whatever'><span>bla bla</span<p>bla bla bla</p></div>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.