Global.renderImage (img, param)
renders image element

  • Parameter img:
    Object contains the images's properties
  • Parameter param:
    Object contains user-defined properties
Sourcecode in Global/renderFunctions.js:
1:   function renderImage(img, param) {
2:      if (!param.title)
3:         param.title = img.alttext ? encode(img.alttext) : "";
4:      param.src = img.getUrl();
5:      if (!param.width)
6:         param.width = img.width;
7:      if (!param.height)
8:         param.height = img.height;
9:      if (!param.border)
10:        param.border = "0";
11:     param.alt = encode(param.alt ? param.alt : img.alttext);
12:     Html.tag("img", param);
13:     return;
14:  }