
30.03.2004, 03:52
|
|
Регистрация: Mar 2004
Сообщений: 11
|
Смотри -- у меня есть код вывода в текстфилд:
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
function TextFile(varName) {
this.__proto__ = XML.prototype;
this.varName = varName;
this.parseXML = function(source) {
this.nodeType = 3; // Text
this.nodeValue = source;
}} //Делаем возможность пихать html
function loadText (varName, fileName) {
var textSource = new TextFile(varName);
textSource.onLoad = function (success) {
set(this.varName, this.nodeValue);
delete(textSource); //del кот сверху
};
textSource.load(fileName);
}
function loadSongText(file) {
ScrollLine.scroller._y = ScrollLine.scroller.startY;
loadText("Textfield", file);
}
loadSongText("./my_txt"); //СНИЗУ ВВЕРХ СМОТРИМ
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
как мне выводить построчно с задержкой: куда его всунуть -- в функцию "loadSongText(file) { СЮДА ???............. "
//////////////////////////////////////////////////////////////////////
this.setScrollInterval = function (my_txt, time_delay) {
var intr = setInterval(function () {
((++my_txt.scroll)==my_txt.maxscroll) ? clearInterval(intr) : ""
}, time_delay)
}
//////////////////////////////////////////////////////////////////////
Помоги доделать -- действительно срочно нужно !!!
|