#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,323
January 2004
todge
|
Post by Todge on Nov 9, 2005 14:44:25 GMT -8
To make the News Fader scroll instead of fade, put this in your Main Footer..
<script type="text/javascript"> <!-- /* Force News Fader to scroll, by Todge Copyright © 2006 Please keep this header intact */
var whichWay = 'up'; var newsSize = '8'; var newsColor = 'green';
if(typeof(fContent)!='undefined') { var newsFader = document.getElementsByTagName('td'); for(t=0; t<newsFader.length; t++) { if(newsFader[t].className == 'newstitlebg' && newsFader[t+1].height.match('60')) { document.getElementById("fscroller").style.display='none'; var newsScroll = document.createElement('marquee'); newsScroll.setAttribute('direction',whichWay); if(!whichWay.match('t')) { var newsCode = fContent.join('<br>'); newsScroll.setAttribute('height','60px'); } else { var newsCode = fContent.join(' '); } if(document.all) { newsScroll.scrollAmount = '1'; newsScroll.scrollDelay = '1'; } newsScroll.setAttribute('scrollamount','1'); newsScroll.setAttribute('scrolldelay','1'); newsScroll.innerHTML='<font size="'+newsSize+'" color="'+newsColor+'"><b><center>'+newsCode+'</center></b></font>'; newsFader[t+1].appendChild(newsScroll); break; } } } // --> </script>
Edit this line....
var whichWay = 'down';
Valid entries are 'up', 'down', 'left' and 'right'...
This line for the size of the text....
var newsSize = '5';
And this line for the text color....
var newsColor = 'green';
You can use hex numbers too..
|
|