View Full Version : How do I remove black border from fading scroller?
doughnutsareforever
11-10-2006, 12:51 AM
1) Script Title: Fading Scroller
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/fadescroll.htm
3) Describe problem: I want to remove the black hairline border from this scoller but puting 'border: none;' does nothing. Any clues?
Thanks,
Adam.
motormichael12
11-10-2006, 02:12 AM
uhh towards bottom of script change the border width...
/*Rafael Raposo's new function*/
function getstepcolor(step) {
var diff
var newcolor=new Array(3);
for(var i=0;i<3;i++) {
diff = (startcolor[i]-endcolor[i]);
if(diff > 0) {
newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
} else {
newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
}
}
return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}
if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+'"></div>');
if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent
</script>
that last <script> is the very end of the code
the unimportant code is grey, surrounding code is black, and change part is red
doughnutsareforever
11-10-2006, 09:59 AM
Thanks!
I should have scanned the bottom part more carefully.
Adam.
motormichael12
11-17-2006, 10:04 PM
;P
no problem
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.