View Full Version : Javascript sliding div

12-15-2008, 04:26 PM
Having some javascript problems with a slide-in div, i have the slide working in FF and IE, but in both browsers the div tht slides out does not overlap certain divs in my page.

If you go here and add some products to the basket, say bout 5-6 items. then go to the index page, if you click on the My Basket: 6 iteam's, a div will pop out, make sure your on the index page to see this. You will see that the box below it "New products" there images show through the div.


thats in both browsers IE/FF

but in IE also the background does not show :confused:

Thanks for your time, much appreciated.

12-15-2008, 04:59 PM
this is the function im using:

function toggle(id) {
var state = document.getElementById(id).style.display;
if (state == 'block') {
document.getElementById(id).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';