Results 1 to 3 of 3

Thread: Help needed from the experts

  1. #1
    Join Date
    Aug 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help needed from the experts

    I need a little help with a project for my website, if it can be done. What I want to do, is cut out the state from this image, and incorporate the outline into my background page. Then in the center of the page, where the state is now, I would have an image scroller showing my pictures for my project, layered behind the cutout.

    Here is the picture. The red star is the capital, and doesn't have to be left in.



    Thanks in advance if anyone can help me out with this image, or guide me to another forum where I can get the needed assistance.

    Servoc

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try making the inside transparent, then layering it over the top with a <div>?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'd do it a little differently. First, in an image program I'd make the entire white part of the image transparent or whatever color the rest of the background of the page is or whatever color you like. Then set it as the page's background, center no-repeat (style blocks go in the head of the page):
    Code:
    <style type="text/css">
    body {
    background:url('alabama.gif') pink center no-repeat;
    }
    </style>
    In the above, 'pink' can be any valid color name or a hex value like #efeae0 and it will be the background color of the page in those spots not covered by the image. If the image's white areas have been saved as transparent, it will show through there as well. Now, put whatever you like on top of this on your page. Just make sure that any elements in the markup that you want the state image to show through have their background-color set to transparent, ex:
    Code:
    <div style="background-color:transparent;"></div>
    Simply having no background-color style and no bgcolor attribute set at all may be enough. If you are using an iframe, make sure its allowtransparency="true" attribute is set:
    HTML Code:
    <iframe name="frame1" src="frame.htm" allowtransparency="true"></iframe>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •