• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Joining the <A> Team

Dreamweaver newbies applying their first behavior are faced with a mind-twisting choice—make the wrong move and you’re cutting off your browser backward compatibility. For example, suppose that you’re applying a Show-Hide Layer behavior to an image and you want the behavior to fire when the user rolls over an image—so you pick onMouseOver from the Events listing, right? But what about that other choice: <A> onMouseOver) ? What’s the difference and what’s the best choice? You’ll see both sets of choices when your Show Event For options includes any of the Internet Explorer 4.0–6.0 or Netscape 6.0 browsers. Choose the event without the <A> and the behavior is applied to the <img> tag itself. That’s okay—if you don’t care about your rollover working in Netscape 4.x browsers. Select the event with the <A>, however, and you’re covered all the way; the behavior is applied to an automatically added <a> tag, and that works in all fourth-generation browsers and above.

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint