Смена картинок при наведении курсора.
Код:
<a href="ссылка на профайл" title="имя"><img src="картинка в начальном состоянии" onmouseover=src="при наведении курсора" onmouseout=src="при снятии курсора" border=0 height=100%>
Увеличивает картинку при наведении курсора.
html-низ
Код:
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.menuitem img').animate({width: 100}, 0);
$('.menuitem').mouseover(function(){
; gridimage = $(this).find('img');
gridimage.stop().animate({width: 200}, 150);
}).mouseout(function(){
gridimage.stop().animate({width: 100}, 150);
});
});
</script>html-верх
Код:
<style type="text/css">
img {
border: none;
}
#menuwrapper{
left: 20%;
position: relative;
height: 210px;
}
#menu{
position: absolute;
bottom: 0px;
left: 0px;
}
.menuitem {
position: fixed relative;
bottom: 0px;
display: inline-block;
}
</style>изображение
Код:
<div id="menuwrapper"> <div id="menu"> <a href="http://" class="menuitem"><img src="URL"></a> <a href="http://" class="menuitem"><img src="URL"></a> <a href="http://" class="menuitem"><img src="URL"></a> <a href="http://" class="menuitem"><img src="URL"></a> </div> </div>
Прозрачность картинок при наведении курсора.
html-низ
Код:
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.Hoverbuttons').each(function () {
var $span = $(this).css('opacity', 0.3);
$(this).hover(function () {
$span.stop().fadeTo(600, 1);
}, function () {
$span.stop().fadeTo(600, 0.3);
});
});
});
</script>изображение
Код:
<img src="URL" class="Hoverbuttons">