I have a button that opens a new browser window, so I've added alternate_text and title tags to notify the user that a NEW window will open when hovered over.
<img class="mp3PlayBtn" alt="Mp3 player opens in popup window" title="Mp3 player opens in popup window" src="https://cdn.shopify.com......." />
While this setup works well, I now wish to change the image when hovered/clicked. Typically, I would use a background sprite image as shown in the CSS below:
.mp3PlayBtn {
background-image:url('https://cdn.shopify.com......Mp3PlayButton.png');
background-repeat: no-repeat;
height: 30px;
width:40px;
background-position: 0px 0px;
}
.mp3PlayBtn:hover {background-position: 0px -28px;}
.mp3PlayBtn:active {background-position: 0px -58px;}
However, since it's a background image, the pop-up text will not display.
Is there a way to keep the pop-up text while still using a sprite to change the image? Or do I need to forgo the sprite?