here is the code from the iframe
<!-- Ticker version 1.09 -->
<HTML>
<HEAD>
<TITLE>Ticker</TITLE>
<STYLE TYPE="text/css">
<!--
A
{
font-family: Verdana, Arial, Helvetica, sans-serif, "MS sans serif";
font-size: 11px;
line-height: 11px;
text-decoration: none;
color: #333366;
font-weight: bold;
}
A:hover
{
color: #CC3300;
}
-->
</STYLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--
// --- Global variable stuff here
var theItemCount;
var theCurrentStory;
var theCurrentLength;
var theStorySummary;
var theTargetLink;
var theCharacterTimeout;
var theStoryTimeout;
var theBrowserVersion;
var theWidgetOne;
var theWidgetTwo;
var theSpaceFiller;
var theLeadString;
var theStoryState;
// --- Check for old browser and force applet
theBrowserVersion = parseInt(navigator.appVersion);
if (theBrowserVersion < 4)
{
location.href = "/ticker/ticker_applet.252.htm";
}
// --- Only run for V4 browsers (check browser again here - some old
browsers won't do this inline)
function startTicker()
{
theBrowserVersion = parseInt(navigator.appVersion);
if (theBrowserVersion < 4)
{
location.href = "/ticker/ticker_applet.252.htm";
return;
}
// ------ Check and fixup incoming data block
if(!document.body.children.incoming.children.properties)
{
document.all.incoming.innerHTML = "<DIV ID=\"properties\"><DIV
ID=\"itemcount\">1</DIV></DIV><DIV ID=\"stories\"><DIV ID=\"1\"><DIV
ID=\"Summary\">World news stories online.</DIV><DIV
ID=\"SiteLink\">http://news.bbc.co.uk/hi/english/uk/default.htm</DIV><DIV
ID=\"UrlLink\"></DIV></DIV></DIV>";
}
// ------ Set up initial values
theCharacterTimeout = 50;
theStoryTimeout = 5000;
theWidgetOne = "_";
theWidgetTwo = "-";
// ------ Set up initial values
theStoryState = 1;
theItemCount =
document.body.children.incoming.children.properties.children.itemcount.inner
Text;
theCurrentStory = -1;
theCurrentLength = 0;
theLeadString =
" &nb
sp; ";
theSpaceFiller = "<BR><BR><BR>";
// ------ Begin the ticker
runTheTicker();
}
// --- The basic rotate function
function runTheTicker()
{
if(theStoryState == 1)
{
setupNextStory();
}
if(theCurrentLength != theStorySummary.length)
{
drawStory();
}
else
{
closeOutStory();
}
}
// --- Index to next story
function setupNextStory()
{
theStoryState = 0;
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
theStorySummary =
document.body.children.incoming.children.stories.children[theCurrentStory].c
hildren.Summary.innerText;
theTargetLink =
document.body.children.incoming.children.stories.children[theCurrentStory].c
hildren.SiteLink.innerText;
if(theTargetLink == "")
{
theTargetLink =
document.body.children.incoming.children.stories.children[theCurrentStory].c
hildren.UrlLink.innerText;
}
theCurrentLength = 0;
document.all.hottext.href = theTargetLink;
}
// --- Draw a teletype line
function drawStory()
{
var myWidget;
if((theCurrentLength % 2) == 1)
{
myWidget = theWidgetOne;
}
else
{
myWidget = theWidgetTwo;
}
document.all.hottext.innerHTML = theLeadString +
theStorySummary.substring(0,theCurrentLength) + myWidget + theSpaceFiller;
theCurrentLength++;
setTimeout("runTheTicker()", theCharacterTimeout);
}
// --- Finalise the item
function closeOutStory()
{
document.all.hottext.innerHTML = theLeadString + theStorySummary +
theSpaceFiller;
theStoryState = 1;
setTimeout("runTheTicker()", theStoryTimeout);
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" background="/furniture/ticker_highlight.gif"
onLoad="startTicker();">
<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=2>
<TR>
<TD>
<DIV ID="visible">
<A ID="hottext" HREF="/" target=_top></A>
</DIV>
</TD>
</TR>
</TABLE>
<DIV ID="incoming" STYLE="display:none">
<BR><BR><BR><BR>
<DIV ID="stories">
<DIV ID="1">
<DIV ID="Summary">Russia says its nuclear help for Iran depends on
"political factors". More soon.</DIV>
<DIV ID="SiteLink">/default.stm</DIV>
</DIV>
<DIV ID="2">
<DIV ID="Summary">Yugoslavia to keep army on border with Croatia. </DIV>
<DIV
ID="SiteLink">/hi/english/world/europe/newsid_2168000/2168661.stm</DIV>
</DIV>
<DIV ID="3">
<DIV ID="Summary">Death toll from Madagascar mystery virus rises above
150.</DIV>
<DIV
ID="SiteLink">/hi/english/world/africa/newsid_2167000/2167910.stm</DIV>
</DIV>
<DIV ID="4">
<DIV ID="Summary">Polls in Indian Kashmir to be held in four phases
starting 16 September. </DIV>
<DIV
ID="SiteLink">/hi/english/world/south_asia/newsid_2167000/2167693.stm</DIV>
</DIV>
</DIV>
<DIV ID="properties">
<DIV ID="itemcount"> 4</DIV>
</DIV>
</DIV>
</BODY>
</HTML>
-----Original Message-----
From: Terry Roll [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 12:36 PM
To: CF-Talk
Subject: Re: Coldfusion & News Tickers
Look again...
>>It's a java applet.
>>Dave
----- Original Message -----
From: "Ian Vaughan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 11:19 AM
Subject: Coldfusion & News Tickers
Hi
Does anybody know where you can get a news ticker exactly like the one at
http://news.bbc.co.uk/ and or has anybody integrated this into coldfusion
so it is dynamically coming from the database.
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists