• Re: Stupid javascript tri

    From Mindless Automaton@VERT/ELDRITCH to Mindless Automaton on Wed Jul 26 00:47:00 2006
    Mindless Automaton wrote:ã> Alrighty, there's a thread in Sync Discussion base about no one sharing ã> javascript, so I thought I'd share mine and show you why I don't share ã> them? Check this out..ã> ã> I use this to display a random logoff.ans. You have your logoff menu ã> and use this as the option to logoff the user.ã> ã> ã> //Here comes the script..//ã> ã> fname="logoff";ã> var num = random(5)+1; //Change the number in the parenthesis to ã> the number of ansis you have.ã> fname+=num;ã> bbs.menu(fname);ã> bbs.hangup();ã> ã> //End of script//ã> ããEven better, using a few lines from logon.js v1.7 by Digital Man, you get:ãã//Start script//ããconsole.clear();ãvar random_list = directory(system.text_dir + "menu/logoff*.*");ãif(random_list.length)ã bbs.menu(file_getname(random_list[random(random_list.length)]).slice(0,-4));ã bbs.hangup();ãã//End Script//ããThis little tidbit can be used to display any random ansi. You can sub ãbulletin*.* or whatever for logoff*.* and have a random bulletin or ãsomesuch.ããThanks Digital Man!ãã-Mindless Automatonã---ã þ Synchronet þ Eldritch Clockwork
    BBSã