FireworksColdFusionDreamweaverFreehandFlashMXHome
Latest New Content

Latest Free Content
View All
Free Content
Accessibility
CMX Learning Guides
Hosted by enterhost

Using Swap Image with a Select List/Menu - Part 1

By: Danilo Celic on Wednesday, March 2, 2005
Reader Level: Reader Level

Primary Category: DreamweaverDreamweaver is good at what it does, very good in fact, but good can only take you so far. Go beyond what it is built for and you will have to start digging into the code and get your hands a little dirty. Swapping images based upon user interaction — such as mouseing over images or links, or clicking buttons — can be implemented with point-and-click ease using Dreamweaver's Swap Image behavior. The Swap Image behavior is one example of where you need to get into the code is if you want to go beyond the built in functionality. If you wanted to use the Swap Image behavior with a list and allow your visitors to change an image that is shown based upon the option chosen in a list, you couldn't readily do it with the way that the Swap Image behavior is set up to work. You can, however, with a carefully created list, and a quick modification in the code, turn the code used by the Swap Image behavior into something that will work well for you when applied to a list menu.

In Part 1 of this article, we'll take a look at working with static pages, that is, pages where you do not need any database interaction. Part 2 will take into consideration the needs of dynamic pages to allow swapping of images from a data driven list menu.

Purchase this item
You can purchase this piece of content separately for $3.00

Want more?
Community MX members get unlimited access to daily articles, tutorials, extensions and support. The most comprehensive resource for Macromedia designers and developers today. Take a tour of what we offer, and discover the benefits of subscribing.

Already a member?
Simply log in using the form in the top right area of the site.

Member's Sign In

Remember Me

Retrieve Password

Current Articles
and Tutorials

3354

Most Recent JumpStarts

Newsletter

View the archive

CMX Suite

New every Tuesday!CMX Weekly Cartoon
View the archive

RSS Feed

Syndicate CMX

Our feeds