Difference between revisions of "Server-monitor.as"
(paste logo code) |
(hack hack) |
||
Line 4: | Line 4: | ||
bg_g = ( background & 0x00ff00 ) >> 8; | bg_g = ( background & 0x00ff00 ) >> 8; | ||
bg_b = ( background & 0x0000ff ); | bg_b = ( background & 0x0000ff ); | ||
− | |||
id0 = 1; | id0 = 1; | ||
changes = []; | changes = []; | ||
Line 13: | Line 12: | ||
// Set up async connection with server | // Set up async connection with server | ||
server = new LoadVars(); | server = new LoadVars(); | ||
− | server.title = ' | + | server.title = 'server-status?auto'; // wiki page to request |
server.onLoad = function(success) { | server.onLoad = function(success) { | ||
if (success) { | if (success) { | ||
− | + | rc.htmltext="hello"; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
}; | }; | ||
Line 47: | Line 29: | ||
html = true; | html = true; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// Logo | // Logo | ||
Line 91: | Line 43: | ||
if ( ++_root.ctr%400 == 1 ) { | if ( ++_root.ctr%400 == 1 ) { | ||
server.SWF = id0; | server.SWF = id0; | ||
− | server.sendAndLoad( '/ | + | server.sendAndLoad( 'http://www.cs.auckland.ac.nz/', server, 'GET' ); |
} | } | ||
} | } |
Revision as of 02:20, 20 March 2006
textcol = '#' + textcol; background = parseInt( background, 16 ); bg_r = ( background & 0xff0000 ) >> 16; bg_g = ( background & 0x00ff00 ) >> 8; bg_b = ( background & 0x0000ff ); id0 = 1; changes = []; change = false; nchanges = 10; offset = -200;
// Set up async connection with server server = new LoadVars(); server.title = 'server-status?auto'; // wiki page to request server.onLoad = function(success) { if (success) { rc.htmltext="hello"; } };
// Textbox createTextField( 'rc', 1, 0, 0, 190, 200 ); with (rc) { selectable = false; _quality = 'BEST'; border = false; multiline = true; wordWrap = false; html = true; }
// Logo attachMovie( 'xmlwiki', 'xmlwiki', 5 );
// Per-frame function function reduce() {
// Scrolling if ( offset < 0 ) offset++; rc._y = offset;
// Make request on some regular cycle which seems about right if ( ++_root.ctr%400 == 1 ) { server.SWF = id0; server.sendAndLoad( 'http://www.cs.auckland.ac.nz/', server, 'GET' ); }
}