vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Image In Post - View Topic
Topic Rating: *****
Printable View
This topic was locked 15th May 08 at 6:11pm by Michael
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
[F] Image In Post (13th May 08 at 4:12am UTC)
Can i get an code to re-size images in post please {Smile} . if its ove 300x300 if possible please.

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Image In Post (15th May 08 at 3:21pm UTC)
Try this! {Grin}

<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
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Image In Post (15th May 08 at 5:33pm UTC)
Thank you Wrighty it works fine bro {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
 Printable View

All times are GMT+0 :: The current time is 12:25am
Page generated in 0.0871 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums