Dashcode Button Question.

Discussion in 'Mac Programming' started by Avizzv92, Apr 3, 2008.

  1. Avizzv92
    Expand Collapse
    macrumors regular

    Mar 23, 2008
    I'm adding a button to my widget, I have no problem adding the button and getting it too work. But I want the button to "fade in" on mouseover, I can do this, but how do you make the button "invisible" until the "mouseover" triggers the fade in animation?
  2. lee1210
    Expand Collapse
    macrumors 68040


    Jan 10, 2005
    Dallas, TX
    This is a very general suggestion, as I know nothing of Dashcode...

    Have your image be a transparent png the size of your button. Have it fade to the "real" button image.

    If you need the real button image to stay up after the first mouseover, I have no idea how you might do that.

  3. Avizzv92
    Expand Collapse
    thread starter macrumors regular

    Mar 23, 2008
    I was thinking of that, but wondering if there is a "proper" way to do it. Also another question, when adding a animation function to objects say you have 3 buttons (button1, button2, button3) and you want them to have all the same function.

    Is there a way to add more then one button too respond to this function?

    Something like this ...var itemToFadeOut = document.getElementById("button1", "Button2", Button3")

    I'm still learning about dashcode and kinda new...

Share This Page