Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    The page I'm working on, has a navbar that's included through PHP.

    The lower part of the banner contains the nav links.
    For practical reasons, the text ("home", navitem1, navitem2, etc) has been converted from text to image, and is an integrated part of the banner image itself.

    The problem is (when using DW) that I can't use the editor to draw up the coordinates for the "hot spot".
    I can't select the image, as it's there through an "include" statement.
    In design view, I can see the image, but can't select it (which DW requires, before you're allowed to draw the coordinates for the hot-spot).

    I can, however, select another image on the page and use that to generate the code. Then I go to "code-view", extract the mapping code, and paste it into the "include-file" containing the banner image.

    When I upload it and try to view the source code of the page, it looks like this:

    Code:
    <body>
    <div id="banner">
    	<img src="images/banner2.png" alt="banner" width="1134" height="184" />
    	<map name="navbar" id="navbar"><area shape="rect" coords="0,0,40,40" href="#" /></map>
    </div>
    However, the code does nothing! There's no hotspot on the presented page.

    If I use DW to generate the code on a randomly selected image on the page (that is not part of the "include" portion of the page), the code looks identical, but works! :ichatermm

    What on earth am I doing wrong, and how can I fix it?
    :dead:
    S. Rosland

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    If I remember my image maps correctly, you want the image inside the tag. To wit:

    HTML Code:
    <map name...>
        <img ... />
    </map>
    Note also the lack of /> at the end of the opening map tag.

    EDIT: Totally wrong. What you need is to add a [minicode]usemap="#navbar"[/minicode] attribute to your img tag.

  4. #3
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    Quote Originally Posted by Shadowfiend
    EDIT: Totally wrong. What you need is to add a [minicode]usemap="#navbar"[/minicode] attribute to your img tag.
    Thanks Shadow, that solved the problem! :classic:
    S. Rosland

  5. #4
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Have you fixed these? I'm not seeing a blue line. Can't check on IE at the moment, but you might want to look at paddings and margins and think of overriding them just for IE.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:41 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com