[jQuery] How to fade only the background?
Hi,
The following code will fade the logo, instead of bg, e.g.
<html>
<head>
<script src="http://jqueryjs.googlecode.com/files/
jquery-1.1.4.pack.js" ></script>
<style> #bg{ width:600px; height:600px; background-color:blue; } </
style>
</head>
<body>
<script>
jQuery(document).ready(function() {
jQuery("#bg").fadeTo("slow", 0.5);
jQuery("#logo").fadeTo("slow", 1.0);
});
</script>
<div id="bg">
<img id="logo" src="http://www.w3.org/Icons/w3c_main" />
</div>
</body>
</html>
any workaround?
thanks.