simon saunders
Posts: 0
Joined: Tue Jun 24, 2014 2:14 pm

create rollover state

is it poss to create a 2 state image as a button? so whenyou rollover an image it changes to a different colour. works the same way as a nav button.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

create rollover state

Simon,

You may change the src attribute of Image element with JS when you click on it, and thus you can replace the picture

simon saunders
Posts: 0
Joined: Tue Jun 24, 2014 2:14 pm

create rollover state

can you explain in more detail and provide the JS please

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

create rollover state

Simon,

On the event click on the Image element hang action with this code:

code$(this).attr ('src', Apperyio.getImagePath("image002.png"));/code

where image002.png is the name of the new pictures

Return to “Issues”