Get Started with Expression Web

Five Ways to Customize the Interface in Expression Web

Change Link Colors and Remove The Underline

Create External Style Sheets to Save Time with CSS

Center Div Tags in a CSS Layout with Expression Web

Create Images Styles to Align Images with the Float Option

Add Meta Descriptions for Search Engine Optimization

Create a Rollover Image with the Swap Image Behavior

Make Global Updates with Dynamic Web Templates

Testing Web Site Accessibility

Test Your Web site Before You Publish in Online

Desire to learn design? Order video training for...

Expression Web Training Video

Microsoft Expression Web Essentials Video

How to Upgrade from FrontPage to Expression Web

Advanced Expression Web Training Video

Visit Total Training.com to find video training for all your favorite software programs.

Return to the Expression Web Training Center

Looking for ASP.NET Web hosting?

www.1and1.com,ada web hosting service which also claims to be the largest domain registrar in the world

You'll find many more Microsoft recommended Web servers at www.asp.net/hosters/

 

Partners and sponsors

Total Training Online Software Training - Try it Now Get Free Access

advertisement

Free Greeting Card, Expires 2-27-07

Trusted by over 7 million customers!

Total Training

Create a Rollover Image in Expression Web with the Swap Image Behavior Feature

You can use the Swap Image behavior to create rollover images for links and navigation elements, and you can use it to add a little surprise to your pages anywhere in your web site by setting one image to swap with another image.

Follow these instructions to create an image rollover effect in Expression Web:

Partners and sponsors

Order Your Expression Web Training Video Today!

1. Begin by inserting the first image you want to display in your rollover into your page just as you would insert any other image. For example, you can choose Insert > Picture > From File and browse to find the image you want to insert.

Add any formatting or alignment options you want, such as the .image-right class style that is applied to the image in this example to align it to the right side of the page. Note: You'll find instructions for the creating and applying an image-right style in Tutorial 5.)

Once you have the image the way you want it, click to select the image and open the Behaviors task pane by choosing Task Panes | Behaviors.

Insert Figure EW Tutorial 7-1.jpg

 

2. Click on the arrow to open the pull-down list and choose Swap Image.

Insert Figure EW Tutorial 7-2.jpg

 

3. In the Swap Image dialog, use the Browse button to find the image you want to replace, or swap, with the first image, select it and click OK.

Make sure to check the Restore on Mouseout event box. This will replace the second image with the first when the user moves their cursor off the image.

Insert Figure EW Tutorial 7-3.jpg

 

4. Click OK and the rollover image is automatically set using Javascript to control the event and action. Note that you can change the event, which in this case is set to onmouseover, by clicking on the arrow in the Behaviors task pane next to the event and choosing another option from the pull-down list.

Insert Figure EW Tutorial 7-4.jpg


The swap image behavior makes it easy to create cool rollover effects anywhere in your site and it can be used to swap more than one image simultaneously to create even more complex image effects.

Go on to Tip 8 | Return to Expression Web main page

 

Partners and sponsors

Order Your Expression Web Training Video Today!

Shutterfly.com