Results 1 to 4 of 4

Thread: Need help

  1. #1
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Need help

    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

  2. #2
    Join Date
    Mar 2005
    Location
    Mumbai,INDIA
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post

    Give your elements a fix height as well as width.So that they'll look similar in any screen size.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Post

    You can do something like:

    HTML Code:
    <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.
    HTML Code:
    <object blah="blah" width="50%" height="50%">
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •