Can you create a click-able CSS sprite without the use of Javascript? Here's an example:
HTML:
<div></div>
CSS:
div {
width: 100px;
height: 100px;
background-image: url(http://perfectwebtutorials.com/wp-content/uploads/2011/03/spritecss.png);
background-position: -300px -100px;
}
div:hover {
background-position: -100px -100px;
}
JS:
$(function() {
$('div').click(function() {
window.location = "http://google.com";
});
});
But is it possible to achieve the same effect without the need for Javascript?
(One idea might be to utilize <a href="...">
, but how could this be done?)