Anmeldung



- search -
Edit...

JSPWiki v2.2.28
 
Image Map Plugin

This is version 67. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

With this Plugin for JSPWiki you can use Image Maps on your pages in a very easy way. The plugin can be used the same way like the normal ImagePlugin. The map points and links can be edited by a simple web based wizard, or you can type the map points in the plugin text.

If you click on the edit-link at the right bottom corner of the picture, you will jump to the image map wizard, just try it.

Example

NordrheinWestfalenhttp://www.berlin.dehttp://www.bayern.dehttp://www.hessen.deOslowww.google.comxxxyyygggccc2perak0aaaGoHerewww.bb.com.brwww.bb.com.brSachsenSachsen 2SACHSEN333221mylinkWestfalen171ZeittafelBarsaivesZeittafelBarsaives0217DortmundTest42Dortmund 151247Test63testhelloCityDortmundcool placenamedfgdfgfdgdsfsfooaapCityDortmundAusFGGF43a [edit map]

is created by the following plugin definition:

[{ImageMap image='deutschland.gif'

NordrheinWestfalen;50;170;20
http://www.berlin.de;217;115;20
http://www.bayern.de;165;273;20
http://www.hessen.de;91;204;20
}]

ImageMap-Plugin-Parameters

Name Description Necessity
image URL or attachment name of the image required
align center, left, right optional (none)
width size of the image optional
height size of the image optional

It is important that the plugin text has a body part, that is the text after the blank line under the ImageMap definition. Here the wizard stores the link and point parameters in the form link;x;y;r. So an empty ImageMap must have a blank line before the closing brakets.

By default a circle with radius r is used. Link can be any wiki link. You can specify other shapes like link;polygon;x1;y1;x2;y2;...;xn;yn; or link;rect;x1;y1;x2;y2; but at the moment the wizard just creates circle shapes with radius 20. Other shapes are working but must be edited by hand in the page text for the time beeing.

Installation

1. The following jars must be copied to {JSPWiki}/WEB-INF/lib:

2. The following must be added to {JSPWiki}/WEB-INF/web.xml:

  <servlet> 
     <servlet-name>ImageMapServlet</servlet-name> 
     <servlet-class>
        com.ecyrd.jspwiki.plugin.ImageMapServlet
     </servlet-class> 
  </servlet> 
  
  <servlet-mapping> 
     <servlet-name>ImageMapServlet</servlet-name> 
     <url-pattern>/ImageMapServlet</url-pattern> 
  </servlet-mapping> 

Known Bugs

  • The Referenced By tag does not recognize ImageMap links.
  • The old plugin syntax [{INSERT .... WITH param}] is not supported by the wizard.

Source Code

The source code is part of the SBaltesPlugins.jar.

License

ImageMapPlugin a JspWiki Plugin for using html image maps. Copyright (C) 2004 Sebastian Baltes

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

GNU LESSER GENERAL PUBLIC LICENSE Version 2.1





This particular version was published on 08-Aug-2011 14:19:41 CEST by Sebastian.
Dateien:
Hi Bastian.doc Hi Bastian.doc 21504 bytes
deutschland.png deutschland.png 11837 bytes
Neuer Ordner.zip Neuer Ordner.zip 210628 bytes


Earthdawn (R) ist ein eingetragenes Warenzeichen der FASA Corporation. Barsaive (TM) ist ein Warenzeichen der FASA Corporation. Copyright (c) 2015 by FASA Corporation. Copyright der deutschen Ausgabe (c) 2015 by Ulisses Spiele GmbH, Waldems. www.ulisses-spiele.de. Diese Webseite unterliegt keiner Abnahme oder Genehmigung durch Ulisses Spiele oder FASA.