Image Maps in ZPT

norman <[email protected]> Thu, 16 Nov 2006 22:06:44 +0000 (GMT)
Newsgroups gmane.comp.web.zope.page-templates
Message-ID <[email protected]>
--===============2019110169==
Content-Type: multipart/alternative; boundary="0-148629231-1163714804=:74524"
Content-Transfer-Encoding: 7bit

--0-148629231-1163714804=:74524
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,
I have a ZPT page that has two properties, the image cp16 and the ImageMa=
p coordinates.

In my ZPT, I have this code

        <div align=3D"center">
        <img src=3D"images/spacer.gif" usemap=3D"#map" tal:replace=3D"str=
ucture python:here.imageTag('450x450', 'cp16', usemap=3D'#map')">
        <map name=3D"#map">
        <area tal:define=3D"area python:category['cp18']"
               tal:attributes=3D"shape python:area.split(':')[0];coords p=
ython:area.split(':')[1];href python:area.split(':')[2]">
        </map>
        </div>

in cp18 text property I have the following:

rect:88,10,175,36:/blah/blah
rect:88,10,175,36:#
rect:88,10,175,36:#
rect:88,10,175,36:#
rect:88,10,175,36:#

I cannot get this to work, as when I view the source only line 1 is retur=
ned in the html source and the rest are ignored.

Any help would be much appreciated.

Cheers

Norman

 Send instant messages to your online friends http://uk.messenger.yahoo.c=
om=20
--0-148629231-1163714804=:74524
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<br>I have a ZPT page that has two properties, the image cp16 and t=
he ImageMap coordinates.<br><br>In my ZPT, I have this code<br><br>&nbsp;=
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div align=3D"center"&gt;<br>&nbsp;&nb=
sp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;img src=3D"images/spacer.gif" usemap=3D"=
#map" tal:replace=3D"structure python:here.imageTag('450x450', 'cp16', us=
emap=3D'#map')"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;map name=
=3D"#map"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;area tal:defin=
e=3D"area python:category['cp18']"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:attributes=3D"shape=
 python:area.split(':')[0];coords python:area.split(':')[1];href python:a=
rea.split(':')[2]"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;=
/map&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt;<br><br>in =
cp18 text property I have the
 following:<br><br>rect:88,10,175,36:/blah/blah<br>rect:88,10,175,36:#<br=
>rect:88,10,175,36:#<br>rect:88,10,175,36:#<br>rect:88,10,175,36:#<br><br=
>I cannot get this to work, as when I view the source only line 1 is retu=
rned in the html source and the rest are ignored.<br><br>Any help would b=
e much appreciated.<br><br>Cheers<br><br>Norman<br><p>&#32;Send instant m=
essages to your online friends http://uk.messenger.yahoo.com=20
--0-148629231-1163714804=:74524--

--===============2019110169==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ZPT mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zpt

--===============2019110169==--