The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Help with this widget

    Swagbito
    Swagbito
    Forumember


    Posts : 176
    Reputation : 4
    Language : English & Japanese

    In progress Help with this widget

    Post by Swagbito Thu 8 Jan - 6:13

    So I used the widget on Erza's post and....

    http://rubbershinobi.forumotion.com/ 
    Help me fix this.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Help with this widget

    Post by Ange Tuteur Thu 8 Jan - 6:59

    Hello @Swagbito,

    Could you explain the problem and provide any information such as codes that you're having touble with ?

    Thanks
    Swagbito
    Swagbito
    Forumember


    Posts : 176
    Reputation : 4
    Language : English & Japanese

    In progress Re: Help with this widget

    Post by Swagbito Thu 8 Jan - 8:07

    Im horrible at coding. And it's supposed to be circles for the images and a hover effect.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Help with this widget

    Post by Ange Tuteur Thu 8 Jan - 9:08

    So, you want to round the images, or do you just want the widget like this ?
    Swagbito
    Swagbito
    Forumember


    Posts : 176
    Reputation : 4
    Language : English & Japanese

    In progress Re: Help with this widget

    Post by Swagbito Thu 8 Jan - 9:09

    The second.
    Swagbito
    Swagbito
    Forumember


    Posts : 176
    Reputation : 4
    Language : English & Japanese

    In progress Re: Help with this widget

    Post by Swagbito Sat 10 Jan - 3:43

    Bump.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Help with this widget

    Post by Ange Tuteur Sat 10 Jan - 4:04

    Then add the following code to a widget :
    Code:
    <!-- style of the widget -->
    <style type="text/css">#mainBlock { height:150px } /* height of the main image block */
    #staffList { text-align:center; }
    #staffList a img {
      border-radius:100px;
      width:50px;
      height:50px;
    }</style>

    <!-- the staff list -->
    <div id="staffList">
      <div id="mainBlock">
        <img id="mainImage" src="http://2img.net/i/bl/logo.png" /> 
     </div>
      <a href="/u1">
        <img src="http://i56.servimg.com/u/f56/18/45/41/65/rose_a10.png" alt="http://i59.servimg.com/u/f59/18/45/41/65/rose_210.png" />
      </a>
      <br />
      <a href="/u2">
        <img src="http://i56.servimg.com/u/f56/18/21/60/73/noavaf10.png" alt="http://2img.net/i/fa/admin/icones/help.png" />
      </a>
    </div>
       
    <!-- technical stuff -->
    <script type="text/javascript">(function() {
    var img = document.getElementById('staffList').getElementsByTagName('IMG'), main = document.getElementById('mainImage'), def = main.src,i;
    for (i=0; i<img.length; i++) {
      if (!/mainImage/.test(img[i].id)) {
        img[i].onmouseover = function() { main.src = this.alt }
        img[i].onmouseout = function() { main.src = def }
      }
    }
    })();</script>

    You then need to modify the following :
    Code:
      <a href="/u2">
        <img src="http://i56.servimg.com/u/f56/18/21/60/73/noavaf10.png" alt="http://2img.net/i/fa/admin/icones/help.png" />
      </a>

    href will be the URL of the user profile. src is the URL of your image, and alt is the image you want to display on hover.

      Current date/time is Mon 23 Sep - 21:22