Post by »Feather on May 4, 2008 14:34:17 GMT -5
I really hate my first post to be a suggestion, but oh well:
You know how avatars have pixel limits of 100 x 100? Well, that's kind of annoying in my humble opinion. You don't have to (obviously) and I'm not telling you to, but if you want I have a code that increases/removes the size limit on avatars.
Code for removing the size limit:
If you want to increase the avatar size limit (100x100) instead of removing it completely, then use this code:
Just a friendly suggestion from a newbie. =B Both of the codes go in the Global Footer.
You know how avatars have pixel limits of 100 x 100? Well, that's kind of annoying in my humble opinion. You don't have to (obviously) and I'm not telling you to, but if you want I have a code that increases/removes the size limit on avatars.
Code for removing the size limit:
<script type="text/javascript">
<!--
/* Remove avatar size limits for everyone by california */
var img=document.getElementsByTagName("img");
if(location.href.match(/=(display|viewprofile|search2|pmview|recent)/)){
for(i=0;i<img.length;i++){
if(img[i].alt=="[avatar]"){
var t=img[i].parentNode;
var s=t.innerHTML.replace(/width=.?\d+?.?/i,'');
t.innerHTML=s.replace(/height=.?\d+?.?/i,'');
}
}
}
// -->
</script>
If you want to increase the avatar size limit (100x100) instead of removing it completely, then use this code:
<script type="text/javascript">
<!--
/* avatar size limit by california */
var maxWidth=200;
var maxHeight=200;
var img=document.getElementsByTagName("img");
for(i=0;i<img.length;i++){
if(img[i].width>maxWidth && img[i].alt.match(/\[avatar\]/i)){
img[i].style.height=""+(img[i].height*maxWidth/img[i].width)+"px";
img[i].style.width=""+maxWidth+"px";
}
if(img[i].height>maxHeight && img[i].alt.match(/\[avatar\]/i)){
img[i].style.width=""+(img[i].width*maxHeight/img[i].height)+"px";
img[i].style.height=""+maxHeight+"px";
}
}
// -->
</script>
Just a friendly suggestion from a newbie. =B Both of the codes go in the Global Footer.