【发布时间】:2011-09-24 02:20:28
【问题描述】:
我有这段代码,而 /**/ 中的部分有一些错误......我找不到它......当我删除这部分代码时它工作正常。
$(window).load(function(){
$('#cTop').toggle(
function(){
showC();
},
function() {
hideC();
}
);
$('#textDownRight').click(function(){
window.location = 'http://nitidus-consto.kilu.org';
hideC();
});
/* The buggy code starts here */
$('.menuCircle').hover(
function () {
$(this).animate({
width: 55%,
height: 55%
}, 250);
},
function() {
$(this).animate({
width: 50%,
height: 50%
}, 250);
});
/*it ends here*/
});
function hideC(){
$('#c').animate({
width: 100,
height: 100,
'margin-left': '-50px',
'margin-top': '-50px'
},500);
$('#cTop').animate({
'backgroundColor': 'rgb(25,25,25)'
}, 500);}
function showC(){
$('#c').animate({
width: 200,
height: 200,
'margin-left': '-100px',
'margin-top': '-100px'
},500);
$('#cTop').animate({
'backgroundColor': 'rgb(50,50,50)'
}, 500);}
【问题讨论】:
标签: javascript jquery html css hover