Показать сообщение отдельно
Старый 30.03.2004, 03:52
NetScout вне форума Посмотреть профиль Отправить личное сообщение для NetScout Найти все сообщения от NetScout
  № 5  
NetScout

Регистрация: 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)
}
//////////////////////////////////////////////////////////////////////

Помоги доделать -- действительно срочно нужно !!!