Minecraft Creations Wiki
Advertisement

<style type="text/css">

  1. banner {
   width: 670px;
   height: 140px;
   background-image: url(http://minecraftwikinetwork.yolasite.com/resources/mc-banner.png);
   padding-right: 100px;
   background-repeat: no-repeat;

}

  1. blah {

position: absolute;

   margin-left: 569px;
   margin-top: 20px;
   width: 331px;
   height: 116px;

}

  1. mc {
   clear: both;
   position: absolute;
   margin-left: 300px;
   margin-top: 20px;
   width: 331px;
   height: 116px;
   text-align: center;

}

  1. mc img{
   height: 116px;
   padding: 0;
   top: 0px;

}

</style>


<script src="http://splashjquery.googlecode.com/files/jquery.js"></script> <script> $(window).load(function() { var images = ['Server.png', 'Red.png', 'Japan.png', 'Nuts.png', 'Gordon.png', 'Bad_password.png', 'Create.png', 'Keyboard_compatible.png', 'Random_splash.png', 'Swords_for_everyone.png', 'Technically_good.png', 'Ultimate_edition.png', 'We_heart_minecraft.png', 'Were_a_wiki.png'];

$('

<img src="http://minecraftwikinetwork.yolasite.com/resources/splash/' + images[Math.floor(Math.random() * images.length)] + '">

').appendTo('#mc');

var $img = $('#mc img'),

   scale = 0.9,
   h = $img.height(),
   sh = h * scale;

function scaleUp($elt) {

   $elt.animate({
       height: sh,
       duration: 5
   }, function() {
       scaleDown($elt);
   });

}

function scaleDown($elt) {

   $elt.animate({
       height: h,
       duration: 5
   }, function() {
       scaleUp($elt);
   });

}

scaleUp($img); }); </script> <body>

</body>

Advertisement