var widthRatio = parseInt(parent_elem.offsetWidth) / parseInt(x[0].width)
for (i = 0; i < x.length; i++) {
// x[i].style.width = "100%";
if (x[i].height > maxheight)
{
maxheight = x[i].height;
}
}
document.getElementById('myslideFrame').style.height = maxheight * widthRatio + "px";
showDivs(slideIndex);
carousel();
};
Hi
At last, a complete slideshow without jquery or with a big and unnecessary script. The only thing is i can't put my own height with css. If i remove the script part above, the slideshow disappears. Leaving the thumbnails alone. Don't know nothing about javascript.