2007-05-27, 01:48 PM
I have added this code into my header template and it works fine in Firefox but not in I.E. Any ideas?
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>Latest Park Information</strong></td></tr>
<tr><td class="trow1">
<div align="center"> <a <!--
body {
background-color: #000000;
}
-->
</style><style type="text/css">
<!--
body {
}
-->
</style></head>
<body background-color="#FFFFFF" onLoad="StartTexte()">
<p align="center" style="text-align: center;">
<div align="center"></div>
</p>
<div align="center">
<script language="JavaScript">
<!--
var max=0;
function textlist()
{
max=textlist.arguments.length;
for (i=0; i<max; i++)
this[i]=textlist.arguments[i];
}
tl=new textlist
(
" Current Closed rides & attractions: ",
" Alton Towers: ",
" Awaiting update. ",
" Alton Towers Hotels & other attractions: ",
" Awaiting update. ",
" Thorpe Park ",
" All rides reported open. ",
" Chessington ",
" All rides reported open. "
);
var text_x=0; pos=0;
var l=tl[0].length;
function textticker()
{
document.form1.textfeld.value=tl[text_x].substring(0,pos)+"_";
if(pos++==l)
{
pos=0;
setTimeout("textticker()",2000);
text_x++;
if(text_x==max)
text_x=0;
l=tl[text_x].length;
} else
setTimeout("textticker()",50);
}
function StartTexte()
{
textticker();
}
// -->
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>Latest Park Information</strong></td></tr>
<tr><td class="trow1">
<div align="center"> <a <!--
body {
background-color: #000000;
}
-->
</style><style type="text/css">
<!--
body {
}
-->
</style></head>
<body background-color="#FFFFFF" onLoad="StartTexte()">
<p align="center" style="text-align: center;">
<div align="center"></div>
</p>
<div align="center">
<script language="JavaScript">
<!--
var max=0;
function textlist()
{
max=textlist.arguments.length;
for (i=0; i<max; i++)
this[i]=textlist.arguments[i];
}
tl=new textlist
(
" Current Closed rides & attractions: ",
" Alton Towers: ",
" Awaiting update. ",
" Alton Towers Hotels & other attractions: ",
" Awaiting update. ",
" Thorpe Park ",
" All rides reported open. ",
" Chessington ",
" All rides reported open. "
);
var text_x=0; pos=0;
var l=tl[0].length;
function textticker()
{
document.form1.textfeld.value=tl[text_x].substring(0,pos)+"_";
if(pos++==l)
{
pos=0;
setTimeout("textticker()",2000);
text_x++;
if(text_x==max)
text_x=0;
l=tl[text_x].length;
} else
setTimeout("textticker()",50);
}
function StartTexte()
{
textticker();
}
// -->