www.webdeveloper.com

Search:

Type: Posts; User: hamwisk

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,420

    Working, and tidied up a bit too

    :)This script will detect the browsers screen ration (normal or wide) and the screen size. It will then change the pages style sheet to correspond.:)

    window.onload = resCheck;
    function...
  2. Replies
    8
    Views
    1,420

    Javascript, resolution and aspect ratio to set style sheet

    /* Most common display resolutions 2012
    ratio w h % t% w/h
    16:10 1440 900 6.61 24.35 1.6
    1680 1050 3.66
    2560 1600
    1280 800 12.97
    1920 1200 1.11
    4:3 1024 768 18.69 21.99 1.333...
  3. Replies
    8
    Views
    1,420

    So I fixed it with this! function...

    So I fixed it with this!


    function resCheck(){
    var screenWidth = screen.width;
    var screenHeight = screen.height;
    var ratio = screenWidth / screenHeight;
    if(ratio > 1.4){ratio = wide;}
    ...
  4. Replies
    8
    Views
    1,420

    function resCheck(){ var screenWidth =...

    function resCheck(){
    var screenWidth = screen.width;
    var screenHeight = screen.height;
    var ratio = screenWidth / screenHeight;
    if(ratio>1.4){ratio=wide;}
    var change =
    if(ratio='wide'){

    I...
  5. Replies
    8
    Views
    1,420

    I've changed the body, but it still doesn't work.

    I've changed the body, but it still doesn't work.
  6. Replies
    8
    Views
    1,420

    [RESOLVED] Please help me with basic stuff

    Hi, I have never learnt javascript because it is easy to add snippets of code to my web pages. Now I am trying to learn, but my first attempt is not working.
    Can anyone explain what I have done...
Results 1 to 6 of 6
HTML5 Development Center



Recent Articles