Trying to put GIMP image map in Joomla! header

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tharden3
    Contributor
    • Jul 2008
    • 916

    #1

    Trying to put GIMP image map in Joomla! header

    Hey Bytes Community,

    I have requested help on the Joomla! forums, but I know some Bytes members that are familiar with Joomla!.

    I am building a website using a siteground template (link) for Joomla 1.5. I have a header image in the image folder called header_img.jpg. I uploaded this to GIMP, used the image map plug-in to make an image map out of the header picture, but now I have no idea how to make it work within the template. How do I edit the HTML or CSS to make the image map I made come up in the header instead of the jpeg that was there originally?

    In GIMP, when I pull up the source code for my .map file, I get this:
    Code:
    <img src="header_img_mapped.xcf" width="920" height="293" border="0" usemap="#map" />
    
    <map name="map">
    <area shape="rect" coords="485,56,633,96" href="http://www.clandmanufacturing.com/index.php/gas-grill" />
    <area shape="rect" coords="485,101,634,152" href="http://www.clandmanufacturing.com/index.php/doors" />
    <area shape="rect" coords="482,162,679,215" href="http://www.clandmanufacturing.com/index.php/windows" />
    <area shape="rect" coords="676,56,815,101" href="http://www.clandmanufacturing.com/index.php/lighting" />
    <area shape="rect" coords="676,107,816,154" href="http://www.clandmanufacturing.com/index.php/tape" />
    <area shape="rect" coords="681,162,870,216" href="http://www.clandmanufacturing.com/index.php/fireplace" />
    <area shape="rect" coords="478,233,833,281" href="http://www.clandmanufacturing.com/index.php/catalogs" />
    <area shape="rect" coords="51,96,455,202" href="http://www.clandmanufacturing.com/index.php/home" />
    </map>
    Now, all of that makes sense. This is what code should look like for an image map. The problem is the header image as written in the code of the template is handled in the CSS, not the HTML:
    Code:
    #header_img{
    	background: transparent url(../images/header_img.jpg) top center no-repeat;
    	width:900px;
    	height:293px;
    	padding:0 10px;
    	margin:0;
    }
    Also I believe the .xcf is a GIMP file and this part...
    Code:
    <img src="header_img_mapped.xcf" width="920" height="293" border="0" usemap="#map" />
    ...must be changed to .jpg instead of .xcf, is that correct?

    Those are quite a bit of muddled questions above, so let me clear it up:

    Question 1: GIMP gives me two files, the original JPEG (the header image), and a much smaller .MAP file that I assume is supposed to overlay the original image. Is there someway I can integrate both files into my code without having to manually make an image map?

    Question 2: Do you have to make an image map with HTML, or can you make an image map with CSS?
Working...