Link to home
Start Free TrialLog in
Avatar of fhtong
fhtong

asked on

child window size control for resolution

I have gone through the work for controlling the table size for various resolution with the help from experts. Now I meet another problem.
There are some child window to be displayed when readers click and the script is:

<script type="text/javascript">
<!--//hide
function SHOW_MEMO() {
window.open("memo.htm", "mypage", "height=600, width=700, top=0,left=0");
}
//-->
</script>
.
.
<a href="javascript:SHOW_LAYOUT()"onmouseover="window.status='click to see!'; return true" onMouseOut="window.status=' '; return true">MEMO</a>

How to set the percentage with this type of child window?
Avatar of cLFlaVA
cLFlaVA


a) what do you mean by "set the percentage"
b) is "SHOW_LAYOUT()" above supposed to be "SHOW_MEMO()"?
Avatar of fhtong

ASKER

clFlaVA,

I mean that if the resolution is 800, then the child window will be height=600 width=700, if the resolution is 1024 or up, then then the child window will be height=768 width=900.

It would be better to use percentage so that other resolution can have the same displaying ratio.
ASKER CERTIFIED SOLUTION
Avatar of apparition
apparition

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial