[triangle-zpug] Can I make my site logo an image map?

Rick DeNatale rick.denatale at gmail.com
Wed Mar 22 23:16:38 CET 2006


Okay,

I went ahead and put global_logo.pt in my skin  and it seems to be working.

I then disabled the ipmsCustom.css in the css registry and it still works.

So was disabling the background image in #portal-logo{} a red herring?
 I'm still trying to grok this stuff and every little bit helps.

My global_logo.pt now looks like this:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      i18n:domain="plone">

<body>

<!-- THE PORTAL LOGO DEFINITION -->
<h1 id="portal-logo" metal:define-macro="portal_logo">
<MAP NAME="map-IPMSR12LogoV2.jpg">
<AREA SHAPE="RECT" COORDS="357,97,365,107"
   HREF="/chapters/nc-asheboro-ipms-mid-state-modelers"
   title="New Bern, IPMS/Eastern Carolina Plastic Modelers"
   label="New Bern, North Carolina, IPMS/Eastern Carolina Plastic Modelers">

...

<AREA SHAPE="RECT" COORDS="0,0,429,206" HREF="/">
</MAP>
<!-- Map generated by imaptool 0.9  http://www.sspitzer.org/imaptool/ -->
<IMG SRC="/logo2.jpg" USEMAP="#map-IPMSR12LogoV2.jpg"
ALT="map-IPMSR12LogoV2.jpg" BORDER=0>
</h1>


</body>
</html>

This makes the navigation to the relevant chapter folder only when the
mouse is pointing to a particular star, and to the home page
otherwise, which I think is a good compromise between function and
normal practice.

I'm slightly concerned that the image url is hard coded, although
since the map geometry is pretty much tied to the image I guess that
that's okay.  The "hard coding" of the names of the chapter folders is
a similar concern, although again this SHOULD be fairly static.

So how important was Chris's point of changing the CSS, am I missing
something that's going to bite me in the future here?

--
Rick DeNatale



More information about the triangle-zpug mailing list