Код: Выделить всё
var i = 0
$('#knopToggle').on('click', function () {
i++
var imgAttributes = {
'src': 'kitten' + i + '.jpg',
'title': 'Afbeelding van poes' + i,
'alt': 'Afbeelding van poes' + i
}
if (i > 2) {
i = 0
};
$('#imgKitten').attr(imgAttributes)
}
)
Код: Выделить всё
[img]kitten1.jpg[/img]
wissel afbeelding
it doesn't show the title with mouseover on images.
How do i get to show the title attribute with mouseover?
Источник: https://stackoverflow.com/questions/781 ... -in-jquery