[jQuery] Swaping background image error only in IE7
hi
i have anerror when i try to swap background images, it works fine in
firefox, safari, opera but in IE7, i get this :
Line : 907
Char : 30
Error : Invalid Argument
Code : 0
URL : http://localhost/mixen/www
that happens as soon as i move my mouse over the image to swap it. my
jquey code is imply two line changing the background-image property in
my css :
$("#shoutbox_title .ico2").mouseover( function(){$
(this).css({'background-image':"url('ico/ico_shout_o.gif');"})} );
$("#shoutbox_title .ico2").mouseout( function(){$
(this).css({'background-image':"url('ico/ico_shout_n.gif');"})} );
the css for the element is :
.ico2 {
width: 18px; height: 14px;
background-color: transparent;
background-image: url("../../ico/ico_shout_n.gif");
background-repeat: no-repeat;
background-position: top left;
}
What am i doing wrong? And if theres an easier way to swap image, ill
appreciate the share because i've just started coding in jQuery and
i'm kind of new to all these stuff.
Thanks for the help!