Moin,
On Wednesday 12 April 2006 21:12, Rich Morin wrote:
At 7:55 PM +0200 4/12/06, Tels wrote:
* you need the image _and_ the imagemap, which is
a bit of HTML
* even if you upload both, the imagemap will not get included
into the HTML
You could write some sort of template that links in the image, and
includes the imagemap via another template. But that would be hairy.
But I think it would be much better to include the graph source code
and use an extension to render the images (including imagemap),
because that way you can even change the graps from the wiki.
I'm going to be generating large numbers of graphs (hundreds of
thousands, prospectively). In order to get good performance, I
would like to generate and store them in advance.
It looks like the simplest approach, at this point, is to use Jan
Steinman's HTML inclusion hack, possibly modified to restrict it
in some manner for increased security.
You might also try to allow the ".map" extension for upload, upload the
image map as "image" and then use it like so:
<img src="/path/to/image.png" usemap="/mapth/to/mapfile.map">
However, from a short googling I am not sure if that is actually supported
by browsers now. In 1998 it seems it was not - the map had to be in line
in the same source file as the <img> tag :-/
best wishes,
Tels
--
Signed on Thu Apr 13 19:39:30 2006 with key 0x93B84C15.
Visit my photo gallery at
http://bloodgate.com/photos/
PGP key on
http://bloodgate.com/tels.asc or per email.
"HOT PACKET ON SERVER ACTION! Click here for FREE ACCESS to streaming
video of dirty packets penetrating badly-configured firewalls!!!" aanand
(705284) on 2004-03-20 on /. about the Adult Bit and the Evil bit