DHTML : SPAN elements - 15 Nov 2001

Description In this example, we have seven SPAN elements, initially set to use the class Item. When the mouse moves over any one of those elements, it will be changed to use the class Highlight.

More Details
Innovations in Microsoft Internet Explorer 4 and 5 enable the following:
Events can now be generated from a SPAN element. Previously, an HTML author would have had to wrap each SPAN in an anchor to get the right events.
With event bubbling, events can be captured at the document level. You do not need to create separate event handlers for each element that will participate in the effect.

Browser/Platform Compatibility
Dynamic HTML is supported in Microsoft Internet Explorer 4 and greater.

Complete Article

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish