I have 2 news tickers that I want to show one after the other. They are both widgets (javascript) that I grabbed from the stated website. However to get one to run after the other I felt like I needed a setTimeout(). So I made one of them delayed (ticker8) but instead of JUST appearing after 5000 ms, it appears and EVERYTHING ELSE DISAPPEARS. I know that it's something silly I just can't figure out what it is. The HTML code is below.
[CODE]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script LANGUAGE='JavaScript' type='text/javascript' SRC='http://www.theFinancials.com/syndicated/Free/EXk_EconomicStats_US.js'></script>
</head>
<body>
<div id="ticker6">
<script LANGUAGE='JavaScript' type='text/javascript' SRC='http://www.theFinancials.com/syndicated/Free/EXk_Interest_TBills.js'></script>
<script LANGUAGE='JavaScript' type='text/javascript'>
document.writeln(EXk_Interest_TBills('0050201336','100%','C9C9C9','yes','6B6B6B','Arial',11,1,'37373 7'));
</script>
</div>
<div id="ticker8">
<script type="text/javascript">
setTimeout("ticker8()", 5000);
function ticker8()
{
<!--START theFinancials.com Content-->
<!--copyright theFinancials.com - All Rights Reserved-->
document.writeln(EXk_EconomicStats_US('0199604514','100%','C9C9C9','yes','6B6B6B','Arial',11,1,'3737 37'));
<!--END theFinancials.com Content-->
}
</script>
</div>
</body>
</html>
[CODE]
Would really appreciate some help with this one.
Many thanks in advance
[CODE]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script LANGUAGE='JavaScript' type='text/javascript' SRC='http://www.theFinancials.com/syndicated/Free/EXk_EconomicStats_US.js'></script>
</head>
<body>
<div id="ticker6">
<script LANGUAGE='JavaScript' type='text/javascript' SRC='http://www.theFinancials.com/syndicated/Free/EXk_Interest_TBills.js'></script>
<script LANGUAGE='JavaScript' type='text/javascript'>
document.writeln(EXk_Interest_TBills('0050201336','100%','C9C9C9','yes','6B6B6B','Arial',11,1,'37373 7'));
</script>
</div>
<div id="ticker8">
<script type="text/javascript">
setTimeout("ticker8()", 5000);
function ticker8()
{
<!--START theFinancials.com Content-->
<!--copyright theFinancials.com - All Rights Reserved-->
document.writeln(EXk_EconomicStats_US('0199604514','100%','C9C9C9','yes','6B6B6B','Arial',11,1,'3737 37'));
<!--END theFinancials.com Content-->
}
</script>
</div>
</body>
</html>
[CODE]
Would really appreciate some help with this one.
Many thanks in advance
Comment