Forum Moderators: open

Message Too Old, No Replies

Test harness for different monitor resolutions

         

ShawnR

10:23 am on Apr 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DrDoc posted a great idea in [webmasterworld.com...] to create a bunch of bookmarks that change the window size for testing at different resolutions.

It probably works great in some browsers, but not in IE. Here is what does work for me in IE:


<html>
<head>
<script>
window.external.AddFavorite("javascript:window.resizeTo(640,480)", "640x480");
window.external.AddFavorite("javascript:window.resizeTo(800,600)", "800x600");
window.external.AddFavorite("javascript:window.resizeTo(1024,768)", "1024x768");
window.external.AddFavorite("javascript:window.resizeTo(1280,1024)", "1280x1024");
window.external.AddFavorite("javascript:window.resizeTo(1600,1200)", "1600x1200");
</script>
</head>
<body>
All done!
</body>
</html>

(Just ignore the warnings. It is not meant to be used in any commercial website (so no comments about it not validating, pls;) ). Just use it once to create the bookmarks, then throw it away.

Shawn

jamesa

10:46 am on Apr 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or just use a screen ruler to measure and resize the windows. I downloaded a great one called Free Ruler for OS X, and another whose name I can't remember for XP. Type screen ruler in the search box at versiontracker.com and you'll find a bunch of them.

grahamstewart

10:50 am on Apr 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check out the Favelets [tantek.com] site by the (in)famous Tantek, which supplies bookmark versions of these functions and some other useful ones like 'Toggle CSS styles', 'View Scripts', 'Validate this page' etc.

Most of which work in IE.