:: Forum >> Version 1 >>

How do i use ACTIVE.HTML.IMG

More information on this topic is available in the documentation section: /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.
Sunday, May 15, 2005
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
Tuesday, May 17, 2005



This topic is archived.

Back to /active.html.img/

Documentation:

Forum search