Avatar

Level 10

You can leave off the ImageButton part in the script, as long as you have the invisible button as a sibling of your images.  This code goes in the button click event not a script object ... or is that for something else?

But you will need to rename the objects in my sample script to match your form object names, so should be

if (up.presence == "hidden") {
    down.presence = "hidden";
    up.presence = "visible";
} else {
    down.presence = "visible";
    up.presence = "hidden";
}

You should also set the down image to be hidden initially.

Not sure why you would not be getting errors, check under Edit ... Preferences ... JavaScript have you got "Show console on errors and messages" selected.