PDA

View Full Version : Centering Text in Fading Scroller



KingofHearts
10-21-2011, 09:51 PM
1) Script Title: Fading scroller

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

3) Describe problem: Just a question, not a problem. I was wondering if I can center my text in the scroller?

What I'm looking to do is to have messages go from this...

Message #1
Message #2

... to this...


Message #1
Message #2

vwphillips
10-22-2011, 08:24 AM
var fcontent=new Array();
begintag='<div style="font: normal 14px Arial; padding: 5px;text-Align:center;">'; //set opening tag, such as font declarations
fcontent[0]="<b>What\'s new?</b><br>New scripts added to the Scroller category!<br><br>The MoreZone has been updated. <a href='../morezone/index.htm'>Click here to visit</a>";
fcontent[1]="Dynamic Drive has been featured on Jars as a top 5% resource, and About.com as a recommended DHTML destination.";
fcontent[2]="Ok, enough with these pointless messages. You get the idea behind this script.</a>";
closetag='</div>';

KingofHearts
10-22-2011, 08:36 AM
I really appreciate your help on this! :)