Switching between images...

Klaus Major klaus.major at metascape.org
Fri Aug 23 06:39:01 EDT 2002


Hi Peter,

> Hi all-
>
> Could someone please recommend a simple way to switch between two 
> versions
> of the same image. The images are stacked on top of each other on a 
> card and
> I would like the user to be able to toggle/switch between the two by 
> either,
> clicking on them, or by doing a "mouseOver"/"rollover".
>
> Many thanks in advance
>
> -Peter

a button affords less scripting ;-)

Try this for btn "On/Off" :-)

on mouseup
    set the visible of img "the image on top" to (not the visible of img 
"the image on top")
end mouseup


Any other case will require more scripting...

Drop a line if you need another script.

Please specify your exact demands in that case ;-)

Regards


Klaus Major
klaus.major at metascape.org




More information about the use-livecode mailing list