Dashcode Button Question.

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

  1. macrumors regular

    Joined:
    Mar 23, 2008
    #1
    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. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    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.

    -Lee
     
  3. thread starter macrumors regular

    Joined:
    Mar 23, 2008
    #3
    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