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?
Thank you for your help!!!!
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="[URL unfurl="true"]http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>[/URL]
<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!!!!