View Full Version : Another problem!

code dunce
07-19-2006, 05:45 PM
1) Script Title: Translucent Scroller

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

3) Describe problem: I don't seem to be able to get this to display in the centre of my page, it veers off to the right and only some of the text displays. www.floridarentalvacations.com/pagefiles/refs.htm

I'm obviously going wrong somewhere but I'm not sure where! Can anyone help me please?

07-20-2006, 04:48 AM
Please check the url to your demo page, I'm currently getting a page not found error.

code dunce
07-20-2006, 10:46 AM
Oops, sorry. Apparently I left a capital letter out! It should be http://www.floridarentalvacations.com/Pagefiles/refs.htm

The weird thing is that it works perfectly in Netscape 8.1 (which I normally use) but apparently not in IE7 (and IE is what the majority of my website visitors use).

07-20-2006, 05:08 PM
Edit the script here (additions red):

document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden"><div id="canvas0" style="position:absolute;left:0;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;left:0;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')

code dunce
07-20-2006, 09:26 PM
John, so many thanks! I really appreciate your time.

It works great now in both browsers. :)