1
0
Fork 0
forked from 0x2620/oxjs

better css for linux

This commit is contained in:
rolux 2010-09-05 17:51:11 +02:00
commit d66c252469
3 changed files with 36 additions and 9 deletions

View file

@ -87,27 +87,44 @@ $(function() {
function loaded() {
var $div = $('<div>')
.css($.extend(css, {
width: '216px',
width: (length * 72) + 'px',
height: '72px'
}));
})),
i = 0;
$.each(src, function(name, src) {
$('<a>')
.attr({
href: userAgents[name],
title: name
})
.css({
position: 'absolute',
left: (i++ * 72) + 'px',
width: '72px',
height: '72px',
})
.append(
$('<img>')
.attr({
src: src
})
.css({
float: 'left',
.css($.extend(css, {
width: '64px',
height: '64px',
border: 0,
margin: '4px',
cursor: 'pointer'
}))
.mouseenter(function() {
$(this).animate({
width: '72px',
height: '72px',
}, 250);
})
.mouseleave(function() {
$(this).animate({
width: '64px',
height: '64px',
}, 250);
})
)
.appendTo($div);