Please, have a look at http://users.sch.gr/ellhn/. The HTML code behind this page is as follows:
#squared1.over {
background: green;
cursor: pointer;
}
#squared2{
position: absolute;
left: 250px;
cursor: pointer;
}
</style>
</head>
<body>
<img src="img/squared1.png" id="squared1" width="195" height="147" class="rollover">
<img src="img/squared1.png" id="squared2" width="195" height="147"
class="rollover">
<script src="js/shaperollover.js"></script>
<script>
$( "#squared2" ).hover(
function() {
$( this ).animate( { left:300 }, 500 );
},
function() {
$( this ).animate( { left:250 }, 500 );
}
);
</script>
</body>
</html>
I am going to be crazy. I have no way to vanish this damned transparent background. The problem of course is (as you may see at the page) that hover effect begins outside of the visible part cause to transparent background. In the first picture, by applying a Javascript plugin (called shaperollover.js) the effect begins in the right place, however this is true only through css property (#squared1.over - to be honest I do not know this over property). Unfortunatery, Jquery hover or mouseover function considers the whole picture with the background and it works like the second one.
Is there any way to embed this over property to jquery or some way to benefit from this plugin? I want to add animation on hover and this is impossible through just pure css. Or something more simple I do not know to make pictures without background? Thank you very much