facebook

Changing ActiveImage: CLOSED

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #335265 Reply

    m99ds
    Member

    Hi,
    first i want to tell, that there is an error in then Learning-Center:

    Can anyone tell me how to change the ActiveImage from a ImageButton using Javascript?

    Regards Marco

    #335322 Reply

    @m99ds,

    Thanks for reporting the missing space in our doc. See this example provided by dev team to change the active image by code.

    Attachments:
    You must be logged in to view attached files.
    #335416 Reply

    m99ds
    Member

    Thanks for the answer, it works using then following code:

    $(“<style type=’text/css’>#m1-LottoWiz-btS” + i + “{ -webkit-border-image: url(images/” + I1 + “) 1 1 1 1 stretch stretch; }</style>”).appendTo(“head”);
    $(“<style type=’text/css’>#m1-LottoWiz-btS” + i + “.m1-clicked{ -webkit-border-image: url(images/” + I2 + “) 1 1 1 1 stretch stretch; }</style>”).appendTo(“head”);

    but this don’t works:

    $(“<style type=’text/css’>#m1-LottoWiz-btS” + i + “.m1-clicked{ -webkit-border-image: url(images/” + I2 + “) 1 1 1 1 stretch stretch; }</style>”).appendTo(“head”);
    $(‘#m1-LottoWiz-btS’ + i).css(‘-webkit-border-image’, ‘url(images/’ + I1 + ‘) 1 1 1 1 stretch stretch’ );

    perhabs it’s useful to change it in the learning-center 😉

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Changing ActiveImage: CLOSED

You must be logged in to post in the forum log in