ContentsRecently Changed PagesMiyanlove WikiSandBoxNight World WikiEyeshield 21Natsume YuujinchouFairy TailBaka to Test to ShoukanjuuTemplatesTemplatesTemplate documentationCc-by-sa-3.0DocumentationTT/pieceFairuseMaking TemplatesCharacters PortalSandBoxEpisode ListingMediaAnimeFairy TailEyeshield 21Natsume YuujinchouBaka to Test to ShoukanjuuGreat Teacher Onizuka (GTO)Shingeki no KyojinMangaFairy TailEyeshield 21Natsume YuujinchouBaka to Test to ShoukanjuuShingeki no KyojinMovieMusicLaura Shigihara - Everything's AlrightLinked Horizon - Guren no YumiyaMpi - Call Your NameCommunityRecent blog postsAnimanga HubMy Wiki Lists
Miyanlove Wiki
12 Posts
Miyanlove
All Contributors
No replies yet.

Randomized Wordmarks & Headers

Wordmark & Header

/* Randomize wiki logo*/
$(function() {
    var images = [
'http://images.wikia.nocookie.net/__cb20140615135041/miyanlove/images/5/56/Natsume_yuujinchou_logo1.png',
'http://images.wikia.nocookie.net/__cb20140615135041/miyanlove/images/9/91/Natsume_yuujinchou_logo2.png',
'http://images.wikia.nocookie.net/__cb20140615135042/miyanlove/images/a/a3/Natsume_yuujinchou_logo3.png',
'http://images.wikia.nocookie.net/__cb20140613041410/miyanlove/images/8/89/Wiki-wordmark.png'
];
 
    $('h1.wordmark a img').attr('src', images[Math.floor(Math.random() * images.length)]);
});
 
/* Ends randomized wiki logo */

/* Randomize wiki header */
$(function() {
    var headerBackgroundImages= [
'http://images.wikia.nocookie.net/__cb20140615141303/miyanlove/images/3/3b/Banner-binary_codes.png',
'http://images.wikia.nocookie.net/__cb20140615141304/miyanlove/images/2/27/Banner-bluefirebottom.png',
'http://images.wikia.nocookie.net/__cb20140615141304/miyanlove/images/6/6a/Banner-bluefiretop.png',
'http://images.wikia.nocookie.net/__cb20140615141305/miyanlove/images/c/cb/Banner-redforest.png'
];
 
 $('.WikiHeader').css('background-image', 'url("' + headerBackgroundImages[Math.floor(Math.random() * headerBackgroundImages.length)] + '")');
});
 
//* Ends randomized wiki header *//

0 0
  • Upvote
  • Reply
No replies yet. Be the first!
Write a reply...