Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...A lot of the information I've found at this site would've taken me forever if I'd have attempted to research it on my own. Thanks again."

Geography

Where in the world do Tek-Tips members come from?
cmhrider (TechnicalUser)
19 Apr 12 8:07
Hello,

I have used the following code to retrieve data from a .txt file.  Is there a way to display the data so that it scrolls horizontally?

CODE


<style type="text/css" media="screen">

.ticker {
    background-color:FFFFFF;
    font-family: Tahoma;
    font-size:10pt;
    color:red;
    border-width:0;
    border-style:solid;border-color:ff0000;
    
    
}
</style>


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<link rel="stylesheet" type="text/css" href="sagscroller.css" />

<script type="text/javascript">

//Note- Below example by JavaScriptKit.com

function tdcticker(){
tickerSet.MoveNext();
if (tickerSet.EOF) //if end of data's file
tickerSet.MoveFirst()
setTimeout("tdcticker()",9000);
}

function init(){
tickerSet=ticker.recordset
tickerSet.moveFirst()
setTimeout("tdcticker()",9000)
}

</script>

<object id="ticker" classid="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param name="DataURL" value="tickerdata.txt">
<param name="UseHeader" value="TRUE">
<param name="FieldDelim" value="#">
</object>


<a href="" datasrc="#ticker" class="ticker" datafld="messageURL" style="width:260px; border:0px solid black;">
<span id="tickerDiv" datasrc="#ticker"  datafld="MESSAGES" ></span>
</a>


<script type="text/javascript">
if (document.all)
ticker.ondatasetcomplete=init
</script>


Thank you for your help!!!!

 
ChrisHirst (IS/IT--Management)
19 Apr 12 9:11
You mean like a, and may I be forgiven for typing this, marguee does?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

cmhrider (TechnicalUser)
19 Apr 12 9:38
Yes.  The way it is currently written the data within the .txt file appears and is then replaced with the second line. However I'd like to see how it looks scrolling right to left.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close