MediaWiki:Common.js

From ccrmwiki
Revision as of 13:47, 8 October 2012 by Dave Weiss (talk | contribs)
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 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 == 'ccrmwiki') {
 rm2d_ki101('0','192','96','3axecfvy3wv','ff0000',0);
}