Sunday, 18 August 2013

Unable to make width and height a percent?

Unable to make width and height a percent?

Below is part of the javascript code, how can i make the 640px and 360px
percentages instead? I want them both to be 70% of the windows size.
a.width=a.width?a.width:640;a.height=a.height?a.height:360;
Thanks in advance.

No comments:

Post a Comment