View Full Version : Translucent slideshow question

08-06-2009, 03:22 AM
1) Script Title: Translucent Scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/translucentscroll.htm

3) Describe problem: I'm kinda new to web design and I'm wanting to center the scroller on the page.

Also, I want to change the font color to blue. I've tried a couple of thing with no luck.

I apperaciate all help given to me!


08-06-2009, 06:20 PM
To center the scroller, try adding margin:auto inside the scroller's outermost DIV tag. Add the code in red to the existing script:

document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden; margin:auto; color:blue">

The above also changes the font color to blue. Note that your page must contain a valid doctype at the very top for "margin: auto" to work: