PhoneGapを使用してiPhoneアプリケーションを開発しています。ボタンがいつクリックされたかを識別するために、ボタンのアクティブな画像を変更しました。
<a class="grid-image btn-image-pharmacycard" onclick="location.href='#prescriptionCard';">
これがcssです:
.btn-image-pharmacycard
{
background: url("../image/iphone/pharmacy-card-iphone.png") no-repeat scroll left top transparent;
}
/* while focus Pharmacy card in gird image, change another image*/
.btn-image-pharmacycard:hover, .btn-image-pharmacycard:focus
{
background-position: left bottom;
}
アプリケーションでは、ボタンをクリックせずに、通常の画像の代わりにホバー画像が表示されることがあります。
どんな助けでも大歓迎です。