Results 1 to 3 of 3

Thread: change the layer positon in html....

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    change the layer positon in html....

    I have a problem one of my html page...i am using the layer to display some images in a particular position...

    My problem is, when the user using higher resolution or lower resolution the layer was moved from my original place....

    i want the layer in same position for all the resolution...

    Anybody have idea to change the layer position according to the resolution..

    -----------------------
    suresh


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: change the layer positon in html....

    Still now i am not getting the code for change the layer position.....

    But i wrote one of javascript function to handle it manually....

    I called this funtion in body onload method...

    The coding are as follows....


    function resolution()
    {


    if(screen.width==1280 && screen.height==960)
    {

    document.getElementById('Layer1').style.top="138px";
    document.getElementById('Layer1').style.left="874px";
    }
    else if(screen.width==1280 && screen.height==720)
    {
    document.getElementById('Layer1').style.top="138px";
    document.getElementById('Layer1').style.left="840px";
    }
    else if(screen.width==1152 && screen.height==864)
    {
    document.getElementById('Layer1').style.top="143px";
    document.getElementById('Layer1').style.left="730px";
    }
    else if(screen.width==1280 && screen.height==1024)
    {
    document.getElementById('Layer1').style.top="137px";
    document.getElementById('Layer1').style.left="860px";
    }

    }


    Layer1 is id for the particular "layer". This is not a good idea to solve problem..But i want to solve problem right now..thats why i am using....

    Still i eager to get your golden idea for this problem...

    --------------------
    suresh

    Last edited by psuresh1982; 12-18-2006 at 10:02 AM.

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Answers
    3

    Re: change the layer positon in html....

    hi dear..use photoshop for layouts and make layers in photoshop with slice tools...Only one way to solve this temporary problem permanently....


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact