Results 1 to 4 of 4

Thread: Fix layer position

  1. #1
    Join Date
    Jan 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fix layer position

    1) Script Title: Fix Layer positiobn

    2) Script URL (on DD): http://www.dynamicdrive.com/forums/n...=newthread&f=2

    3) Describe problem:
    Dear Sir

    I am developing a web site

    link is given below

    http://prajaktasoftware.com/printerdatabazar/

    on left top there is a layer having 3 drop down

    I am unable to fix its position as per window's resolution pls help

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I am unable to fix its position as per window's resolution pls help
    I am unable to understand this sentence. Can you rephrase it ?. What is it you want to achieve ?

  3. #3
    Join Date
    Jan 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default position layer as per screen resolution

    in following link

    http://prajaktasoftware.com/printerdatabazar/

    there is layer on left top size having 3 drop downs
    as the resolution changes its position s changes by me in following matter

    Is there any simpler way to do this ? pls guide

    if (screen.width==1024)
    { document.getElementById("Layer3").style.left=0+'px';
    document.getElementById("Layer3").style.top=113+'px'; }

    if (screen.width==1158)
    {document.getElementById("Layer3").style.left=110+'px';
    document.getElementById("Layer3").style.top=113+'px'; }
    if (screen.width==1152)
    {document.getElementById("Layer3").style.left=67+'px';
    document.getElementById("Layer3").style.top=113+'px'; }
    if (screen.width==1280)
    {document.getElementById("Layer3").style.left=128+'px';
    document.getElementById("Layer3").style.top=115+'px'; }

  4. #4
    Join Date
    Jan 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem

    In case the resolution different than specified in code
    The DIV / Layer id not positioned properly

    pls help

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
  •