This JavaScript Ticker is an example of "Data Binding" using "Tabular Data Control (TDC)" which is a Microsoft ActiveX control built in to Internet Explorer. To include this ActiveX control, you must use the <OBJECT> tag with CLASSID as "CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83". To include such a ticker, you must first place the following <STYLE> and JavaScript in the <HEAD> section : Here is the description of the arguments that the function TDC_Ticker() takes: objName : The ID of the OBJECT where you include the TDC for that ticker. divName : The ID of the element where the messages will tick. counter : A counter that should be initialised to the max number of messages. maxMsgs : The max number of messages in the data file. timeOut : The delay (in milliseconds) between messages. Next, you must place the code for placing the ticker. For e.g, the code for placing the above ticker is : Here is the list of Parameters the <OBJECT> takes : DataURL : The path of the file that contains the data. UseHeader : This is always set to TRUE. TextQualifier : The character at the beginning and end of a message. FieldDelim : The Field Delimiter. Click here to see the data file (tickerData.txt) used for the above ticker. |