On 1 Apr, 23:16, Randy Webb <HikksNotAtH...@aol.comwrote:
mark4asp said the following on 4/1/2007 5:36 PM:
I need a row of tickertape. Each character should appear on screen as
if it were being typed, so that the entire row is scrolled left to
right. Like a 'teletype' - I think they were called.
What am I doing wrong here?
First thing you are doing is posting a URL to a page that requires a
Username/Password to view it.
<http://www.sharemation.com/mark4asp/TickerTape.html>
Q: What is the setting in IE 6 such that the browser automatically
runs javascript without that nonsense asking the user whether they
want to allow 'blocked content'? Essentially I want to allways allow
'blocked content'.
Tools>Internet Options>Advanced Tab>Allow Active Content
There are two boxes there to be checked, one is for the PC one is for
the CD Drive.
oops. Sorry about that. Here is the page below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Ticker Tape</title>
<script type="text/javascript">
var i, j
//default speed is 4.5 seconds
var speed = 4500
var news = ['Tue 11:10 - Blah Blah One','Tue 13:30 - Blah Blah
Two','Tue 14:55 - Blah Blah Three','Tue 17:30 - Blah Blah Four']
i = 0
function regenerate() {
window.location.reload()
}
function regenerate2() {
if (document.layers)
setTimeout("window.onresize = regenerate", 450)
}
function tick()
{
document.getElementById('subtickertape').innerHTML =
news[i].substr(0,j);
return;
}
function update() {
for(j=0; j <= news[i].length; j++)
{
window.setInterval('tick()', 1000);
}
if (i<news.length-1)
i++
else
i=0
setTimeout("update()",speed)
}
function init(){
// Ticker Tape
regenerate2();
update()
}
window.onload=init;
</script>
<style type="text/css">
#TickerTape
{
width:989px; max-width:1365px;
float:left; height:16px;
margin-left:0px; margin-top: 0px; margin-right:0px; margin-bottom:
4px;
padding-left:3px; padding-top:1px; padding-right:1px; padding-bottom:
1px;
background-color:#EBEBEF;
font-family: Verdana, Arial, sans-serif; font-size:7pt;font-
weight:bold;
line-height: 15px;
}
</style>
</head>
<body>
<table cellspacing="0" class="PageContainer">
<tr>
<td>Some banner</td>
</tr>
<tr>
<td id="TickerTape">
<span>Latest News: </span><span
id="subtickertape">Initializing...</span>
</td>
</tr>
<tr>
<td>Some content</td>
</tr>
</table>
</body>
</html>