title: JavaScript: Link 2 Div's with Horizontal Scroll on IE5
body: <p>I have the below javascript that takes 2 different div's as an argument. It pretty much just puts a scroll function on the header div and attaches it to the body. This works perfectly fine in most browsers but IE is giving me a headache. My corporate policy forces us to use IE5 and this doesn't work. I tried switching the 3rd line in the function to use event.target instead of event.srcElement and the last line to use body.attachEvent(...) instead of body.addEventListener(...) but no luck with those. </p>
  
  <pre><code>function linkDivs(headingDivName,bodyDivName) {
       heading = document.getElementById(headingDivName);
       body = document.getElementById(bodyDivName);
       heading._syncScroll = function() { heading.scrollLeft = event.srcElement.scrollLeft; };
       heading._scrollSyncDirection = "horizontal";
       heading._syncTo = body;
       body.addEventListener("scroll", heading._syncScroll);
  </code></pre>
  
  <p>}</p>
  
  <p>Any idea if there's anything javascript-wise that can help me out in IE5?</p>