Nicholas Posted August 7, 2009 Posted August 7, 2009 hi, i finally figured out why my mining power was refilling but now im trying to put a bar under it on my game but i cant figure out why its not working can anyone recode the lines please? <img src=greenbar.png width=$power height=10><img src=redbar.png width=$power height=10> Quote
POG1 Posted August 7, 2009 Posted August 7, 2009 Re: why doesnt it work? I don't know the exact values of the names but change them as applicable. Create a proper user bar, first use some PHP: echo '<div class="outerBar">'. '<div class="innerBar" style="width:'.(($ir['power']/$ir['maxpower'])*100).'%;></div>'. '</div>'; Then for the CSS: div.outerBar{height:7px;background:#900;width:120px;} div.innerBar{height:7px;background:#090;} ...and finished. :) Quote
Nicholas Posted August 8, 2009 Author Posted August 8, 2009 Re: why doesnt it work? i dont get that lol, im just wondering what do u change in the $power height, parts in that coding so that the bar acturally shows the energy bar is like <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.