Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Voodoo Tech and Scripter's Den of Scriptniquity > Solution: Resizing Medal Images In Roster
jmcmike (New Admin) 5/19/2008 7:43 AM EST : Solution: Resizing Medal Images In Roster
jmcmike
Posts: 900
Zomgawsh Poster

I don't know for sure if anyone has ever posted any sort of solution for the 16x16 resizing of medal images in the roster but here is what I came up with.

Paste the following JavaScript code in to your "Footer" under the "Style & Colors" section of the Control Panel.  (I did not include the Script tag here because the forum will not allow it, even escaped.) Replace the height and width with the dimensions of your choosing.  The align is optional of course but it illustrates how any other property can be altered.

var aryImg = document.getElementsByTagName("img");
for ( x = 0; x < aryImg.length; x++ ){
    if (aryImg[x].title.indexOf("Medal:") == 0) {
        aryImg[x].height = 32;
        aryImg[x].width = 32;
        aryImg[x].align = "absmiddle";
    }
}
TopBottom

sead0g (New Admin) 5/28/2008 3:36 PM EST : RE: Solution: Resizing Medal Images In Roster
sead0g
Posts: 917
Zomgawsh Poster

Excellent post man ! Thanks.
TopBottom

electraoutlaw (Guild Admin) 5/29/2008 6:42 PM EST : RE: Solution: Resizing Medal Images In Roster
electraoutlaw
Posts: 1172
Zomgawsh Poster

Thanks for posting!  I'd really like to use this, but I dunno what the 'script tag' is.  *scratches head*

I pasted what you posted, but it didn't change anything.  What do I need to do?

-Thanks!
No alternate text supplied.
COH (City of Heroes) Top Pinnacle SG- female supergroup
TopBottom

jmcmike (New Admin) 5/31/2008 12:19 AM EST : RE: Solution: Resizing Medal Images In Roster
jmcmike
Posts: 900
Zomgawsh Poster

The script tag I am referring to is the HTML tag that allows the code to run in the client browser.

This post editor is very restrictive on placing anything that even resembles a script tag so here is a link to fill in the details:

http://www.w3schools.com/TAGS/tag_script.asp
TopBottom

electraoutlaw (Guild Admin) 6/2/2008 1:28 AM EST : RE: Solution: Resizing Medal Images In Roster
electraoutlaw
Posts: 1172
Zomgawsh Poster

Got it!  Thanks much- great post. 
No alternate text supplied.
COH (City of Heroes) Top Pinnacle SG- female supergroup
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%