vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Image In Post
[F] Image In Post - Posted By CåñåÐå™ (canada) on 13th May 08 at 4:12am
Can i get an code to re-size images in post please
. if its ove 300x300 if possible please.
Re: Image In Post - Posted By Michael (wrighty) on 15th May 08 at 3:21pm
Try this!
<script>
/*Resize Image in Post to 300x300
Created By Wrighty*/
var x = get('td','tag');
for(c=0; c<x.length; c++){
if(x[c].className == 'post' && x[c].getElementsByTagName('img')){
var f = x[c].getElementsByTagName('img');
for(y=0;y<f.length;y++){
if(f[y].width > 300){
f[y].width = 300;
}
if(f[y].height > 300){
f[y].height = 300;
}
}
}
}
</script>
Global Footer
Re: Image In Post - Posted By CåñåÐå™ (canada) on 15th May 08 at 5:33pm
Thank you Wrighty it works fine bro
.