Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Location
    Manchester, UK
    Posts
    113

    swap picture effect

    hi guys, i think this is one of the best forums ever, very impressed with the speed of replies!

    my problem is this - i have made 5 icons in XEP and then duplicated each to make one of each with a full shadow effect on it (the only difference between each identical pair is the shadow), - i then exported all ten as .gifs

    on the webpage, the design will allow the user to hover over the icons and then a simple 'swap picture on mouse over' behaviour has been set to show the shadow around the particular icon when hovered upon

    i have created a table with each seperate icon in its own cell

    however, it works fine but the second icon (the one with the shadow) changes fine but to a smaller version of itself i.e the size of the icon is smaller when it changes

    i want it so that just the shadow 'appears' around the icon on mouse over
    your help appreciated
    Herbb

  2. #2
    Join Date
    Oct 2006
    Location
    Tampa Bay, Florida
    Posts
    1,341

    Default Re: swap picture effect

    What you need to do is add some of your background to your buttons.
    This way when the shadow is applied you see it on the background.
    Keep the button the same size.

    Like this:
    Attached Images Attached Images  

  3. #3
    Join Date
    Sep 2007
    Location
    Manchester, UK
    Posts
    113

    Thumbs up Re: swap picture effect

    thanx for the quick reply aridzone
    seems very simple to do, can u pls explain how i need to add a bit of my background to my icons? do i need to do that for both?
    your help appreciated
    herb

  4. #4
    Join Date
    Oct 2006
    Location
    Tampa Bay, Florida
    Posts
    1,341

    Default Re: swap picture effect

    If you have a solid color background it's easy.
    Just create a rectangle large enough to hold the button and shadow.
    Color it same color as background color, and set line width to none.
    Then place it in back of all your buttons. You can copy/paste. Be careful the buttons are all located in the same spot.

  5. #5
    Join Date
    May 2003
    Location
    Box Elder, SD, USA
    Posts
    4,034

    Default Re: swap picture effect

    The shadows you applied made the graphic bigger, when you exported the larger graphic the same size as the original graphic the graphic got scaled down, or if you saved them larger, the browser drew them smaller. The 2 graphics have to be the same size. If you take a look at the navigation buttons on this page, you can see what I mean about size, and what was said about positioning.
    John Rayner
    For my Photography see:
    http://www.draginet.com
    Facebook

  6. #6
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,512

    Default Re: swap picture effect

    Welcome to the Xtreme Conference.

    The shadow is actually a bitmap. If you look at the button with the shadow in Outline View (Window > Quality) you can see the bitmap rectangle.

    So, as has been suggested, make a rectangle that is large enough to accommodate the shadow and then duplicate the rectangle for the non shadow version. Make sure that both buttons are in exactly the same place in the rectangles.

    The background rectangles can be transparent or the same color as your page background.

    Gary
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	buttons.png 
Views:	199 
Size:	8.4 KB 
ID:	41198  
    Last edited by gwpriester; 07 September 2007 at 11:29 PM.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •