Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Horizontal scrolling

Status
Not open for further replies.

cmhrider

Technical User
Jan 18, 2012
5
US
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="[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!!!!
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top