
Originally Posted by
Sidewinder
1) How would you calculate 90% of the screen width? Could you just do it like
Code:
alert('Screen Resolution Is '+screen.width*.9+' by '+screen.height);
Yes thats it 
2) Also since i guess res() returns two values would it be possable to use screen.width as like a varible? say
Code:
<table width='screen.width'><tr><td>blah></td></tr></table>
Yes you can use it as a variable for example:-
Code:
<body>
<script language="JavaScript">
window.open('about:blank','window name','width=screen.width,height=200');
</script>
</body>
This will open a new window with the width of the screen resolution using screen.width directly and height of 200
Or you can declare screen.width as a variable and then use the variable like this:-
Code:
<body>
<script language="JavaScript">
var abc=screen.width
window.open('about:blank','window name','width=abc,height=200');
</script>
</body>
its pretty the same 
again dont laugh at me, i know nothing about JS
Well I have nothing to laugh to.. thats why I make tutorials
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum