Can anyone tell me how I could change the background on this script?
http://www.dynamicdrive.com/dynamici...fadescroll.htm
| SitePoint Sponsor |





Can anyone tell me how I could change the background on this script?
http://www.dynamicdrive.com/dynamici...fadescroll.htm

I'm not great at programming but I took a look at it... the only place I saw a color value was:
document.getElementById("fscroller").style.color="rgb(255,255,255)"
Have you tried changing that value?





Sure did..and it didn't change anything. I have a feeling I wasn't supposed to edit that line anyway!![]()





change this line:
if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')
to this:
if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+';padding:2px; background-color: 33ff00;"></div>')
and simply change the hex value. Of course I tested it and it only works in IE.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes





Thanks Creole, I'll try that![]()
Bookmarks