-2
rated 0 times
[
0]
[
2]
/ answers: 1 / hits: 30447
/ 11 Years ago, thu, may 16, 2013, 12:00:00
So far I've got this working so that it has a basic image, click image, and change image to active image, but I don't want it to revert back to the original image when you mouse out if the image has been clicked--I want it to stay on the click image until another image is clicked.
Here is my HTML
<div id=booking_i>
<img id=img src=/design/zebra/images/booking/1stolik.png>
<img id=img2 src=/design/zebra/images/booking/2stolik.png>
</div>
In js would be something like
onmouseover=image.src='/design/zebra/images/booking/1stolik_aktiv.png';
onmouseout=image.src='/design/zebra/images/booking/1stolik.png';
onClick=image.src='/design/zebra/images/booking/1stolik_clicked.png';
More From » jquery