Log in

View Full Version : Need help



makabir
06-14-2005, 12:19 PM
Dear Webmaster,
I am new and learning using Java Script. I need your help to find a script that can resize the browser with all the elements. Example: when I design a page according to my screen resualation, I found some blank area in the other browser which is higher resulation than me. Espacially, the flash object show full screen in my screen while smaller in anohter PC( my screen is 15" while other is 17"). My query, is there any script to solve this problem? If there is any, please post me.

Sincerely

makabir

sunny
06-15-2005, 03:11 PM
Give your elements a fix height as well as width.So that they'll look similar in any screen size.

Twey
06-15-2005, 04:20 PM
You can do something like:


<script type="text/javascript">
<!--
document.write('<object blah="blah" width=" + screen.width / 2 + " height=" screen.height / 2 + ">');
//-->
</script>

... but it's easier and usually better advised to use relative sizes.

<object blah="blah" width="50%" height="50%">

mwinter
06-16-2005, 01:21 AM
You need to realise that the Web is not a piece of paper - there is no designing for a particular size. There are numerous resources on this subject. You might want to start at AllMyFaqs (http://www.allmyfaqs.com/faq.pl?AnySizeDesign).

Mike