Tuesday Aug 04, 2009

Creating images with multiple hot spots

You can use OpenOffice.org to create nice interactive banners for your web page within a few minutes.

LinksForumHomeBlogs

  1. Open a new Draw page.
  2. Click the Rectangle icon down in the Drawing toolbar, then drag a rectangle on your screen.
  3. Click the Area Style/Filling listbox and select a color for the area.
  4. Double-click the area to get a text cursor.
  5. Type your text, then select the text. Use the controls on the Text Formatting toolbar to select a font, foont size, and font color.
  6. Use space characters for the spacing between words.
  7. Right-click the rectangle, then choose Convert - To 3D.



  1. Click the Rotate icon on the Drawing toolbar. (It is the default icon for the Mode toolbar, so you will see Effects as the name of the Rotate icon. We don't need to understand this at this moment.)
  2. Using the Rotate tool, rotate the 3D rectangle to give a pleasant view effect. You can also use the 3D Effects dialog for many more effects. Press Ctrl+Z to undo an effect that you don't like.


  1. Export the finished graphic into a bitmap format that a modern web browser can read. Let's choose PNG format.
  2. Select the graphic. Choose File > Export. In the Export dialog, be sure that "Selection" is enabled, so you export only the selected graphic. Open the File format listbox and select PNG. Enter a file name and click Export. For some file formats, you will get a dialog to select additional options.
  3. Open a new Writer document.
  4. Choose Insert > Picture > From file, and select your picture.


  1. Choose Edit > ImageMap to open the ImageMap Editor.
  2. In the ImageMap Editor, click the Rectangle tool and drag a rectangular area to define the first hot area.
  3. Enter the address for the hyperlink. Click the green Apply icon at the left to apply this edit. Then you can define the next hot area and so on. Close the dialog with the x icon in the dialog title bar. No need to use the Save icon inside the ImageMap Editor unless you need a special ImageMap file of its own.
  4. Save your text document as an ODT file, then "Save as" using the File type "HTML document".

You can already use the resulting HTML file on your web page. But may be you want to see the HTML code to fine-tune the pixel addresses of the hot areas, for example.

  1. Close the HTML document in Writer.
  2. Choose File > Open.
  3. In the Open dialog, open the File type listbox and select "Web pages". Double-click your HTML file. You now see the document open in Writer/Web.
  4. Choose View > HTML Source to view the HTML source.


You can edit the HTML source directly. For example, edit the second and fourth parameters of the COORDS tags to be the same, or change the ALT texts that appear as mouse-over texts.


Friday Jun 20, 2008

Developing software (or hardware) is more rewarding if there are many potential users, now and in the future.

It might be quite nice to develop a new light bulb that is perfectly suited for the homes of Phil and his family in Punxsutawney. But it is much better to develop a new light bulb that can illuminate all homes of the world. A developer would get more help from others on this way, and there would be a wider choice of programming tools. Not to speak of any financial rewards.

You may argue that this is not possible because of the different light bulb sockets, voltages, and other technical and legal restrictions. See? That is why we need open standards that are the same wherever possible. Even for common supplies like electricity or the dimensions of nuts and bolts it is not a simple task to agree on an open standard.

  • The USA agreed to use the metric system in 1866, still it is not in common public use.

  • Some efforts were successful, however. September 3rd, 1967, Sweden changed the whole car traffic from left side to right side driving. That was relatively easy back in those days. Would be more difficult today. See the huge street constructions at the former Chinese/Macau border, where traffic has to change from one side to the other without crashing into each other.

Now, back to software. Is it easy to change software standards, once that people agree something should be changed? Not really. Even when people who use expensive, suppressive, proprietary de facto standards are given the chance to switch to free alternatives (free as in beer, and free as in unrestricted use), they may decide to stick to what they have.

You can take a horse to the water but you can't make him drink. But you can try to make the water so refreshing and delicious that no horse can resist.

Enter ODF. The OpenDocument Format is an approved international standard, like the meter or the second. That means that ODF based software solutions that you develop today will be valid and useful everywhere on the world, now and forever. It is not necessary to waste your time on developing exceptions for one brand of browsers or another brand of operating systems.

Imagine how a world with only open standards will look. You cannot imagine? Neither can I. But there are first steps visible everywhere.

  • Extensions for OpenOffice.org and StarOffice exist for only a short time now. And already more than a hundred extensions were developed, almost all of them for free and fair use.

  • The hybrid file format that is available within the Sun PDF Import extension is an example of an ingenious merger of an open standard and a publicly released de facto standard. The hybrid file format contains the same document in ODF and PDF together in one .pdf file. Users of OpenOffice.org can open this hybrid file and edit the contents like any other Writer, Calc, Draw, or Impress file, then export back to the hybrid format. Users of other PDF reader programs can open the same .pdf file and see the PDF, as they expect. (Requires at least OOo 3 Beta)

  • Or have a look at this video by one of the StarOffice/OpenOffice.org developers which shows how to use the WebDAV support of OpenOffice.org to use Writer and Calc as editors for web sites. Perfect web sites, created and edited without the need to learn html.

By the way, googling for "the beauty of open standards", I found a nice blog about open standards by David A. Wheeler that is worth reading.

This blog copyright 2009 by fpe