Forum Moderators: coopster
function sb10_main()
{
window.status=sb10_messages[sb10_currMsg].substring(0,sb10_index)
sb10_index++
if(sb10_index==(sb10_messages[sb10_currMsg].length+4)){setTimeout('sb10_reset_clear()',sb10_delay);}
else{setTimeout('sb10_main()',sb10_speed)}
}
Line 25:
if(sb10_index==(sb10_messages[sb10_currMsg].length+4)){setTimeout('sb10_reset_clear()',sb10_delay);}
Any ideas?
thx
[edited by: ergophobe at 8:16 pm (utc) on Jan. 13, 2005]
[edit reason] code dump snipped - please read forum charter [/edit]
You are missing a ; at the end of the previous line and several other places in the original code.
I would think that the / would give you a parse error. If you want to escape the quotes, it needs to be \', but since you're not in a string, you can't escape quotes there.
Check your missing semicolons and try again.
See, it works fine the way it is in the original post if it's on an html page. But as soon as I stick it between <?php
?>
I get a parse error.
For example:
echo "function sb10_main()";
echo "{";
echo "window.status=sb10_messages[sb10_currMsg].substring(0,sb10_index)";
.
.
.