Microsoft® FrontPage®
FrontPage 2000, FrontPage 2002 - FrontPage 2003, Find: help, templates, tutorials, DWT, DRW, DIW @ www.FrontPageWiz.com
 
FrontPage & Expression Hosting - "FREE 3 MONTHS"
Plus Free Web Site Repairs "Site Doctor" Click Here.

 
 

New!!
FrontPage Forums
FrontPage 2003
FrontPage 2002
FrontPage 2000
FrontPage 97/98

Microsoft Excel Tools

 

 

 

 

 

FrontPage Ready Free: Buttons, Icons, Mouse-Overs, Animations and Images.
 


1000's of Buttons/Templates to choose from!
Please wait, images may take a while to load.


How to swap different size images on mouse over with FrontPage 2003 behaviors.

Here's the scenario; you have 2 images of different sizes that you want swap on mouse-over.

If you don't mind the images being resized to the same size use the standard swap image mouse-over.

If you want to retain the image sizes you are going to have use something else.
(Probably the best way is to use an image editor and make both images the same size.)

There a several ways to do this, I'll show you my favorite way.

Here are the images I am going to use:


w-235 h-56


w-460 h-60

First if you are like me and just want the code get it here. (view source)
You may also want to turn on "Show Layer Anchors", so you can see your insertion points in design view. >Tools >Page Options >General >Show anchor points for layer

  1. Both images should already be imported into your website.
     
  2. Next choose >Insert >Layer
     
  3. Your cursor is now inside the layer, >Insert Picture
     
  4. Use the handles on the the layer to wrap the image.
     
  5. Deselect the layer. Then using the same insertion point as the first layer and insert a second layer >Insert >Layer
     
  6. Your cursor is now inside the second layer, >Insert (your second) >Picture
     
  7. Now select the second layer:

     
  8. Then choose >Format >Layers
    (note if you don't see this use the arrow to expand)


     
  9. Now go to the second layer and set it for hidden, by clicking under the image of the eye, until you get a closed eye.


     
  10. Now select layer1 (you can use the right hand pane) the switch to >Format >Behaviors (or use the right hand pane- See also)
     
  11. Now making sure the layer is selected (not the image) choose (on the right hand Behavior Pane) >Insert >Change Property >Visibility >Hidden >Check the box >Restore on mouseout event.
     
  12. Now change the onclick to onmouseover on the right hand pane.

     
  13. Ok now we got the first image to disappear on mouseover, no we need to get layer2 to appear.
     
  14. Choose >Insert>Change Property - Select Element -ID-Layer 2 - Make it visible. On the right hand pane change onclick to onmouseover.

    Notes: FrontPage is a little buggy with this so you may need to go back to layer1 mouseverover and change it to visible again. Also other scripts on the page may interfere with this.
     
  15. Sample here.
     

 

 

Home

© Copyright 2004 Frontpagewiz.com. All Rights Reserved.


www.frontpagewiz.com 

asp bugs Buttons dbarticles Whats_New frontpage_how_to Graphics hosting Folder Permissions IIS5
Time Links Asset Protection
microsoft_support  FrontPage Web rings tables Templates tools tutorials beginners behaviors
buttons
code_snippets components customizing ROI diw formatting forms press release headers Real Estatelogin_scripts navigation
Real Estate sharepoint
tables video web_dictionary webmaster articles domains tools web_design marconow.com webwizguide

 

 

 

FrontPage Resources     Privacy Statement     Disclaimers    TOC

 ©2003-2007, frontpagewiz.com All rights reserved.