Expanding unit script
Hi there...
Can anyone help with this issue...
We have an expanding box unit in the right-hand column of our site. When a user clicks on the unit, it should expand to the left. It works in FireFox but not in IE.
In IE it expands to the right and off the screen.
<script type="text/javascript">
function show_div(div_id) {
// hide all the divs
document.getElementById('primary').style.display = 'none';
document.getElementById('expand').style.display = 'none';
//document.getElementById('intro').style.display = 'none';
// show the requested div
document.getElementById(div_id).style.display = 'block';
}
</script>
<div id="primary" style="display:none;position:relative;width:300px;height:600px;">
<!-- the 300x600 file -->
</div>
<div id="expand" style="display:block;position:relative;width:960px;height:760px;">
<!-- this is the expand panel -->
</div>
Thanks in advance for any assistance.