Changing images on OnMouseOver Event

Hi,I work with web applications, and what i have to do is the following:

i got an web page, where the images( buttons which access others application) only appears as the administrator makes a new application registration ( for which registration the admin has to apply an image from his computer ( not shared resource and when he saves the doc, a new image(link) will appear at the webpage.

The webpage loads every application from a notes view ( computed value) code for computed value:

ret:=@DbColumn(“Notes”:“Cache”;“”;“vAplicPorCodigo”;3);

@Implode(@Subset(ret;4))

The column code ( column 3 of vAplicPorCodigo view) :

“<a href="javascript:informaAplic(”+cadastroChave+“);"><img src=”+teste+" border="0"/>"

cadastroChave = field responsable for telling the function informaAplic which application will be loaded .

teste : field with the image source;

teste field source:

@Text(@DocumentUniqueID) + “/$file/” + @AttachmentNames

As i save the image as an attachment, i have to open it like this

.

Now i have to make an OnmouseOver event that will change the image as the event happens

so how do i search for all images, cause i was thinking something like this:

image.length

if image = image_source_name

   change to image_onmouseover

Do you guys have a clever idea?

thanks a lot .

Subject: Changing images on OnMouseOver Event

Hi Fernando, Try this

on form’s JS Header:

function switchImage(image, over) {

if (over == 1) {

image.src = “imgOver.gif?OpenImageResource”

} else {

image.src = “imgOut.gif?OpenImageResource”

}

}

Put resource image “imgOut.gif” int the form, and set its HTML Other properties to :

onMouseOver=“switchImage(this, 1)”; onMouseOut=“switchImage(this, 0)”

The resulting HTML code for the imagen would be:

<img src=“/test.nsf/imgOut.gif?OpenImageResource” width=“18” height=“14” onMouseOver=“switchImage(this, 1)”; onMouseOut=“switchImage(this, 0)” alt=“”>

You can also replace the image resources with images stored in the file system.

Hope this Help

Oswaldo Escobar Mendoza

Lima, Perú