html. Displaying an image

^image.html[]   
^image.html[hash]   

<img src="$image.src" width="$image.width" height="$image.height" border="0" />

As a parameter, a hash may be specified in the method, containing optional image attributes, such as
alt and border, determining pop-up text-which appears when cursor is placed over the image-and border width.

Note: image attributes can be re-defined.

Note: for suppressing output of border attribute you have to specify option $.border[].

Example

$myphoto[^image::measure[myphoto.jpg]]
^photo.html[
   $.border[
0]
   $.alt[
That's me at school…]
]

The browser will display an image stored in variable
$myphoto. Each time, cursor is placed over the image, a pop-up text That's me at school… will appear.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 02.03.2011