XFileSharing Pro - How 2 Change the scaleImg(this) Value

Message
Author
MafiaMan
Posts: 3
Joined: Aug 30, 2013 1:42 am

How 2 Change the scaleImg(this) Value

#1 Postby MafiaMan » Sep 07, 2013 3:08 am

Hi Team ,

I have a custom template installed on my website and when images auto scale they over lap over the design

http://www.mafiastorage.com/n8ycrr2j1n3o

Which file can I find the onLoad="scaleImg(this)" and change the width .

Thanks

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Sep 07, 2013 12:24 pm

xupload.js

function scaleImg(i)
{
if(i.width>800)
{
w=i.width;
h=i.height;
wn = 800;
hn = parseInt(i.height*800/i.width);
i.width = wn;
i.height = hn;
i.onclick = function(){ if(this.width==wn){this.width=w;this.height=h;}else{this.width=wn;this.height=hn;} }
return;
}
}

MafiaMan
Posts: 3
Joined: Aug 30, 2013 1:42 am

#3 Postby MafiaMan » Sep 19, 2013 5:19 am

Hi ,

Thanks for your reply

I tried changing wn = 800; to wn = 700;

But that did not seem to change it?

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

#4 Postby admin » Sep 19, 2013 5:59 am

You should contact template authors about that.