I need to first add the .light class to #banner when the page loads, then when #change is clicked, I’d like to fade the class from .light to .dark
<style type="text/css>
#banner { width: 1000px; height: 500px; }
.light { background: url(light.jpg) #ffffff; }
.dark { background: url(dark.jpg) #000000; }
</style>
<script type="text/javascript">
// no idea what to do
</script>
<div id="banner">
stuff
</div>
<div id="container">
<div id="leftCol">
<a href="#" id="change">Change</a>
</div>
</div>
Solved.
Live demo: http://jsfiddle.net/oscarj24/Yh7pE/9/
CSS: