Hi, I'm having trouble with some coding for this staff widget, I'm trying to add two people but when I do the mini icon shows up but it wont show the larger icon when you put your mouse over the mini icon.
I've tried adding onto the end but it doesn't seem to work, can anyone help?
Site link:Â http://thevoid.forumotion.net/
Version is: PHPBB2
Thank you in advance for the help.
- Here's the code:
- <div style="height:6px">
</div>
<div class="module main">
                                                           Â
<div class="main-head">
                                                           Â
<div class="h3">
                                        Â
<div align="center">
                Â
</div>
                                        Â
</div>
                                                           Â
</div>
                                                           Â
<div class="main-content clearfix">
                                                           Â
<div style="text-align: center;">
                                <br /><img id="showperson" border="1" align="middle" src="https://i.imgur.com/NrH8jyb.gif" style="border: 0px solid black; width: 140px; height: 232px;" /> <br />                              Â
</div>
                              <script type="text/javascript">
  <!--
  // copyright 1998 Idocs, Inc. http://www.idocs.com/tags/
  // Distribute this script freely, but please keep this
  // notice with the code.
  // var image information object
  var mloi=new Object();
  // set the image for swapping
  function setswap()
  {
  if (! document.images)return;
  var imgInfo=new Object();
  imgInfo.defaultImg = new Image();
  imgInfo.defaultImg.src = document.images[arguments[0]].src;
  imgInfo.opts = new Object();
  for (var i=1; i < arguments.length; i=i+2)
   {
   imgInfo.opts[arguments[i]]=new Image();
   imgInfo.opts[arguments[i]].src = arguments[i+1];
   }
  mloi[arguments[0]] = imgInfo;
  }
  // set up the link for swapping
  function swap(link,imgName,optName)
  {
  if (! document.images)return;
  if (! link.swapReady)
   {Â
   link.imgName   = imgName;
   link.onmouseout = swapBack;
   link.swapReady  = true;
   }
  document.images[imgName].src=mloi[imgName].opts[optName].src;
  }
  function swapBack()
   {document.images[this.imgName].src=mloi[this.imgName].defaultImg.src}
   //-->
  </script><script type="text/javascript">
  setswap("showperson",
  'The King',
  'https://i.imgur.com/7fPyskN.jpg',
  'Darth Kannabis',
  'https://i.imgur.com/gHyOZzX.png',
  'Jesterrestial',
  'https://i.imgur.com/12Tfu7H.png');
//
  </script>                               Â
<div style="font-size: x-small; text-align: center;">
                        <span style="font-size: x-small;">ADMINISTRATORS</span> <br /><br /> <a onmouseover="swap(this,'showperson','The King')" href="http://thevoid.forumotion.net/u1"><img alt="The King" style="border: 0px black solid; height: 40px; width: 40px;" src="https://i.imgur.com/uFbUeCY.png" border="0" /></a><a onmouseover="swap(this,'showperson','Darth Kannabis')" href="http://thevoid.forumotion.net/u2"><img alt="Darth Kannabis" style="border: 0px black solid; height: 40px; width: 40px;" src="https://i.imgur.com/r6r67jL.png" border="0" /></a> <a onmouseover="swap(this,'showperson','Jesterrestial')" href="http://thevoid.forumotion.net/u3"><img alt="Jesterrestial" style="border: 0px black solid; height: 40px; width: 40px;" src="https://i.imgur.com/WoP5qKA.png" border="0" /></a>   <br />                      Â
</div>
                                           Â
</div>
                                           Â
</div>
I've tried adding onto the end but it doesn't seem to work, can anyone help?
Site link:Â http://thevoid.forumotion.net/
Version is: PHPBB2
Thank you in advance for the help.
Last edited by MockingJaye on Thu 29 Oct - 9:45; edited 1 time in total