Xenon Duel Academy


Join the forum, it's quick and easy

Xenon Duel Academy
Xenon Duel Academy
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forum Width Adjuster

Go down

Forum Width Adjuster Empty Forum Width Adjuster

Post by Pizza Boi Fri May 09, 2014 10:59 pm

Hi Very Happy

I was supposed to send this as a private message to Yeezus but there's no Send button appearing. Anyway, here's the code for phpBB3.

Code:
<script type="text/javascript">
        jQuery(document).ready(function(){
       
      jQuery("#pizzawidth").click(function(){
        var a=Number(document.getElementById("muchsalt").value);
        var b=0;
        jQuery("#wrap").animate({width:a},1100, "linear");
        if(a==1200){b=1;}
        if(a==1300){b=2;}
        if(a==1350){b=3;}
        if(a==1400){b=4;}
        if(a==1500){b=5;}
        if(a==1600){b=6;}
        if(a==1700){b=7;}
          });
        });
        </script>
<center>
   
   <div style="text-align: center;"><input type="submit" value="Set" id="pizzawidth" /><select id="muchsalt">
          <option selected="selected">1200</option>
          <option>1300</option>
          <option>1350</option>
          <option>1400</option>
          <option>1500</option>
          <option>1600</option>
          <option>1700</option>
        </select>
   </div>
   
</center>

Change #wrap to #phpbb if I got the wrapper code wrong. Add in that thing in a widget, also, about your query in Forumotion. You can just follow erchima's post about hiding widgets or simplify it to this by adding this code in your HTML page.

For left:

Code:
<style type="text/css">#left { display:none }</style>

For right (In your case):

Code:
<style type="text/css">#right { display:none }</style>

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Ra Yellow
Ra Yellow

Posts : 70
Contribution : 93
Reputation : 6
Warning : No warning

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum