Unless your only target browsers is IE, you may want to rethink portions of your layout strategy. Using text-align:center for the body element is not the right way to center your page. The proper way is to use a valid URL DOCTYPE and a master container division with width specified that has its margin set:
However, if IE is all that you are concerned with, then in the script change:
Code:
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
to:
Code:
write('<div style="text-align:left;position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
Bookmarks