Home
Analytics
onclick on a image
unknown
Hi,
In this exemple, I make to display/hide "table with firstname" in the grid bellow by click on a input with type=image. This input is in a simple text box. This work.
But I would like to allocate this onclick action to the image element I put below in the grid (image with name "un"). Is it possible with the script tabs of the image ?
Thanks a lot if you have an idea.
Vincent
Find more posts tagged with
Comments
Migrateduser
another question linked to the first :
I use
document.getElementById("onglet01").style.backgroundColor="green";
to manage the style effects on a element and this work but if I want to affect other things like border, font, I must to put a line for eache effect.
I use different Style in my report like "onglet" or "rouge"
Is there a way with scripting to link a style to an element : for exemple I would like to put "rouge" style to "onglet01" element ?
thanks a lot
Vincent
bgbaird
Hi Vincent, I've done this by making the image the background for a text element with HTML for the on-click event.
Migrateduser
Thanks, it works fine. any idea to apply a style to an object ?
bgbaird
In this case, through the html tags.