User:TheFearow/bigtick.js

if(navigator.userAgent.indexOf("MSIE") == -1){ //Disables for IE, AJAX etc is really bugged in IE, wont work without major rewrite and server-side extension.

var leads = new Array;

function bigtick_load{ try{ var randomunusedtickervariable = document.getElementById('bigtick_show').innerHTML; }catch(err){ return; } xmlhttp = sajax_init_object; xmlhttp.overrideMimeType('text/xml'); xmlhttp.open( 'GET', mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=Template:Second lead/ticker&action=render', false); xmlhttp.onload = function { var content = this.responseText; var entries = content.split(" "); for(var i = 0; i < entries.length; i++){ entries[i] = entries[i].replace(" ", ""); if(entries[i].indexOf("= leads.length){ bigtick_index = 0; } setTimeout("bigtick_tick", 10000); }

addLoadEvent(bigtick_load);

}