3.2.0

How do i use ACTIVE.HTML.IMG

How do i use ACTIVE.HTML.IMG

can somone give me an example on how to added the image file name.
David D.
May 15,
i got this working using the code below,

var image = new Active.HTML.IMG;
    image.setAttribute("SRC","./images/d1.jpg"); 
    image.setStyle('width', 75); 
    image.setStyle('height','20');
    image.setEvent("onmouseover", "this.src='./images/d2.jpg'");
    image.setEvent("onmouseout", "this.src='./images/d1.jpg'");
    image.setEvent("onclick",function (src){ alert("downloading file"); });
    obj.setColumnTemplate(image,1);


now i'm trying to only apply this item to columns that contain a certain value. for example i'm using xml, so if the xml-field 'HasButton' is 1, show it, if it is 0 dont.

can anyone help?
DoubleD
May 17,

This topic is archived.

See also:


Back to support forum