Difference between revisions of "MediaWiki:Common.js"

From ccrmwiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
function rm2d_ki101(m,w,h,i,c,r){var l=encodeURIComponent(document.URL);var x=new Image();x.src="http://jd.revolvermaps.com/c.php?i="+i;x.onload=function(){this.width=1;};var y=new Image();y.src="http://jd.revolvermaps.com/r.php?i="+i+"&l="+l+"&r="+new Date().getTime();y.onload=function(){this.width=1;};var f='id="rm_pkI1_"width="'+w+'"height="'+h+'"><param name="movie"value="http://rd.revolvermaps.com/f/f.swf"><param name="allowNetworking"value="all"><param name="allowScriptAccess"value="always"><param name="wmode"value="'+(r?'transparent':'window')+'"><param name="flashvars"value="m='+m+'&i='+i+'&c='+c+'&r='+r+'"><\/object>';if(navigator.plugins&&navigator.plugins['Shockwave Flash']&&parseInt(navigator.plugins['Shockwave Flash'].description.replace(/\D+/,''))>8)document.write('<object data="http://rd.revolvermaps.com/f/f.swf"type="application/x-shockwave-flash"'+f);else{try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.9");document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'+f);}catch(e){f='';/*@cc_on f=r?'allowTransparency="true"':f;@*/document.write('<iframe width="'+w+'"height="'+h+'"scrolling="no"frameborder="0"marginwidth="0"marginheight="0"src="http://rd.revolvermaps.com/5/f.php?m='+m+'&h='+h+'&i='+i+'&r='+r+'&c='+c+'"'+f+'><\/iframe>');}}}
 
  
 +
function rm2d_ki101(m,w,h,i,c,r){
 +
var l=encodeURIComponent(document.URL);
 +
var x=new Image();
 +
x.src="http://jd.revolvermaps.com/c.php?i="+i;
 +
x.onload=function(){this.width=1;};
 +
var y=new Image();y.src="http://jd.revolvermaps.com/r.php?i="+i+"&l="+l+"&r="+new Date().getTime();y.onload=function(){this.width=1;};
 +
var f='id="rm_pkI1_"width="'+w+'"height="'+h+'"><param name="movie"value="http://rd.revolvermaps.com/f/f.swf"><param name="allowNetworking"value="all"><param name="allowScriptAccess"value="always"><param name="wmode"value="'+(r?'transparent':'window')+'"><param name="flashvars"value="m='+m+'&i='+i+'&c='+c+'&r='+r+'"><\/object>';if(navigator.plugins&&navigator.plugins['Shockwave Flash']&&parseInt(navigator.plugins['Shockwave Flash'].description.replace(/\D+/,''))>8)document.write('<object data="http://rd.revolvermaps.com/f/f.swf"type="application/x-shockwave-flash"'+f);else{try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.9");document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'+f);}catch(e){f='';/*@cc_on f=r?'allowTransparency="true"':f;@*/document.write('<iframe width="'+w+'"height="'+h+'"scrolling="no"frameborder="0"marginwidth="0"marginheight="0"src="http://rd.revolvermaps.com/5/f.php?m='+m+'&h='+h+'&i='+i+'&r='+r+'&c='+c+'"'+f+'><\/iframe>');}}}
  
if (document.title == 'ccrmwiki') {
+
 
  rm2d_ki101('0','192','96','3axecfvy3wv','ff0000',0);</script> 
+
if (document.title == 'xxxxccrmwiki') {
 +
  rm2d_ki101('0','192','96','3axecfvy3wv','ff0000',0);
 
}
 
}

Latest revision as of 14:01, 8 October 2012

/* Any JavaScript here will be loaded for all users on every page load. */

function rm2d_ki101(m,w,h,i,c,r){
var l=encodeURIComponent(document.URL);
var x=new Image();
x.src="http://jd.revolvermaps.com/c.php?i="+i;
x.onload=function(){this.width=1;};
var y=new Image();y.src="http://jd.revolvermaps.com/r.php?i="+i+"&l="+l+"&r="+new Date().getTime();y.onload=function(){this.width=1;};
var f='id="rm_pkI1_"width="'+w+'"height="'+h+'"><param name="movie"value="http://rd.revolvermaps.com/f/f.swf"><param name="allowNetworking"value="all"><param name="allowScriptAccess"value="always"><param name="wmode"value="'+(r?'transparent':'window')+'"><param name="flashvars"value="m='+m+'&i='+i+'&c='+c+'&r='+r+'"><\/object>';if(navigator.plugins&&navigator.plugins['Shockwave Flash']&&parseInt(navigator.plugins['Shockwave Flash'].description.replace(/\D+/,''))>8)document.write('<object data="http://rd.revolvermaps.com/f/f.swf"type="application/x-shockwave-flash"'+f);else{try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.9");document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'+f);}catch(e){f='';/*@cc_on f=r?'allowTransparency="true"':f;@*/document.write('<iframe width="'+w+'"height="'+h+'"scrolling="no"frameborder="0"marginwidth="0"marginheight="0"src="http://rd.revolvermaps.com/5/f.php?m='+m+'&h='+h+'&i='+i+'&r='+r+'&c='+c+'"'+f+'><\/iframe>');}}}


if (document.title == 'xxxxccrmwiki') {
 rm2d_ki101('0','192','96','3axecfvy3wv','ff0000',0);
}