been messing around with Jquery, wondering if I have an error with this small peice of code, maybe the css function?
here's what it looks like in plain JS that works.Code:$('#wrap').mouseover(function (){ $(this).css({ 'background-color':'#FFFFFF', 'filter':'alpha(opacity=100)', 'opacity ':'1.0' }); });
Code:function mouseOver(){ var oWrap = document.getElementById('wrap'); oWrap.style.backgroundColor = "#FFFFFF"; oWrap.style.filter = "alpha(opacity=100)"; oWrap.style.opacity = 1.0; }
Results 1 to 4 of 4
Thread: Do I have a syntax error?
Threaded View
- 31 Jul. 2011 09:52pm #1
Do I have a syntax error?