Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* SIDEBAR BANNER SCRIPT
CREATED BY: Inquisitor Ehrenstein
CONTRIBUTORS:
LICENSE:
*/
var bannerCode = '';
var bannerDisplay = true;
if ( bannerDisplay == true ) {
if ( skin == 'vector' ) {
var bannerRef = document.getElementById('p-User_Fanon_Portals');
var bannerParent = bannerRef.parentNode;
var bannerNewLink = document.createElement('div');
bannerNewLink.id = 'right-banner';
bannerNewLink.innerHTML = bannerCode;
bannerParent.insertBefore(bannerNewLink, bannerRef);
$('#right-banner').css({ 'width' : '125px', 'height' : '300px', 'float' : 'right', 'clear' : 'right', 'border' : 'solid 2px #000000', 'color' : '#CCCCCC', 'background' : '#222222', 'padding' : '10px' });
}
} else {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment