View Full Version : Fading scroller ?
CULLEN
04-03-2006, 07:44 PM
hello there, looking for a little help w/ this guy. i have it set up and running properly, works beautifully....but i'm wondering if there's a way i can eliminate the 1pxl black line that runs around the "scroller content box" and possibly change the boxes background color?
Thanx for the help
CULLEN
04-04-2006, 08:38 AM
sorry forgot my link
http://www.dynamicdrive.com/dynamicindex2/fadescroll.htm
jscheuer1
04-04-2006, 09:11 AM
Here is where the content area is styled:
if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+'"></div>');
For example, I got a nice effect by changing it to:
if (ie4||DOM2)
document.write('<div id="fscroller" style="background-color:lightblue;width:'+fwidth+';height:'+fheight+'"></div>');
However, I then needed to discover the rgb value of the new background color and enter it here in the configuration as the start color:
var startcolor= new Array(117,216,230); // start color (red, green, blue)
Then it looked pretty good!
CULLEN
04-05-2006, 07:12 PM
sweet thanks much,
i'd been through the code a few times trying to figure where the syles were set up, but i'm fairly in the dark w/ javascript and i missed it, just what i needed
thanx
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.