View your Shopping CartFrequently Asked QuestionsEmail Us
Home | About Us | Contact Us
SmartWebby.com provides best web design & web programming services globally
We specialize in Rapid Web Design, ASP.net, ASP and PHP web programmingBest Web Design, Best Web Programming, Global Service Provider - Dependable Professionals to build your website right!

Creating Swap Images in Fireworks

Tool(s) Required:

Graphics Editor: Fireworks 4 or above
Recommended: Adobe Fireworks CS3

Introduction

Example 1: This example uses Swap Images, Rollover Buttons, Curves, Vector Shapes, Paste Inside, Drop Shadow. View/Buy complete site using this design: Template 7 - Food

Using Swap Images is one of the most interesting and attractive graphic idea in designing a web site. We rate it 10/10 among our web design ideas. Macromedia Fireworks makes it so simple to create and use swaps for your web site. You must try it out!

What it does

Swap Images basically is a Fireworks Rollover Behavior where a group of web objects [web object - a slice, hotspot, or button] trigger the change in the display of (swaps) another graphic on rolling over them (onMouseOver event) and reverts back to the original image on rolling out of the web object (onMouseOut event). The on-rollover images are preloaded into the page when it is loading, this ensures that the swap images are displayed quickly.

How it works

The whole functionality is controlled by the JavaScript functions automatically generated by Fireworks. These functions are very optimized and you can always trust the code generated by Macromedia tools :-) If you are a programmer-cum-designer it is good to know what the code does: There are 4 functions generated MM_preloadImages, MM_swapImage, MM_swapImgRestore and MM_findObj. Their names are self explanatory to what they do. These functions are the same for Rollover Buttons/Images too, only the place from where they are called is different.

Create your own attractive Swap Images

Create a new file in Fireworks and follow these steps:

  1. It is always very important to do the swap images only after the site structure is completed. Just position the initial image to be displayed correctly and place it in a layer named "swap". Close the layer "eye" to hide it in case it is interfering with your design. Just leave some space for it. Prepare your buttons or rollover buttons (slices should be present on each of them).
  2. When you are ready to start on the swap images lock all other layers except "swap". Now import all your required images into this layer.
  3. Decide if you want to have you images pasted inside a vector shape (check out our design tips on vector shapes) like in the displayed example or feathered like in our Template 7 - Learning/Kids. Prepare all the swap images accordingly.
    Tip:
    Duplicate the shape by pressing Alt+drag.
    Tip: Use Drop Shadow to make the swap stand out.
  4. Open the Frames panel, you will see just one frame called Frame1". Duplicate the frame as many times as needed (calculated one frame per swap).
  5. Place the first swap image in the first frame, second in the second frame and so on. This means that in the "swap" layer for each frame only the corresponding image should appear. To decide the order of the images just relate the order of the rollover buttons with the swap image frames.
  6. Draw/Insert a single slice and check if all the images in the various frames are covered by it.
  7. Open the "Web Layer" and select the slice over the first button/rollover button. You will see a circular white anchor in the middle. Click your mouse over the circle and drag. A connector will appear, drag it to the swap image slice and release the click. The connector will latch on to the swap image slice and a "swap image from" list box will appear with the list of frames. Select the first frame and click okay. Do the same for all the buttons and frames. You can edit the swap image by opening the Behaviors panel, selecting the slice and changing the swap image frame.
  8. View how they work in the preview window and then export your PNG file. Fireworks will automatically create your html file and images in the directory specified. While exporting just check if the HTML and images option is selected in the 'Save as Type' list box and the export slices option is selected in the 'Slices' list box. Test your HTML file in your browser.

Well done, your have just learnt to create your very own swap images!

Be innovative and try out multiple and advanced swap images. A good example is our Template 2- Sports.

Absolutely FREE Web Templates
Check out these quality free web templates and download them without any registration or sign-up!

FREE Flash Actionscript & Animation Guide
Learn Flash the easy way using these easy-to-follow tutorials! Get your basics right or learn advanced flash actionscript!

Quality Dreamweaver Templates
Professional quality dreamweaver templates in over 20 categories, starting at just $9.95! Instant download & easy customization

This page is part of the SmartWebby's Free Web Design Guide, a collection of free web design tutorials, articles, tips and guidelines on effective web site design. From web design tips and ideas to HTML, CSS Styles, Fireworks and Dreamweaver you'll find all you need to know about web design right here!

SmartWebby.com provides top-quality web design & web programming services globally. Since January 2001, we have successfully built more than 200 professional web sites for clients from all over the world (USA, UK, Canada, Australia, India, Greece, Denmark, Singapore, etc.). By creating highly professional W3C Standard compliant and load-time optimized websites at extremely affordable prices, we leave our competition far behind in terms of "value for money". We specialize in Rapid Web Design using Adobe Tools, ASP.net/ASP/PHP web programming, W3C Standard compliant CSS & HTML programming, high quality Flash Animation and Interactive Flash Programming. No matter what your requirements are, our team is capable of delivering a website that's over & above your expectations. Check out our popular Web Design Packages today!