Geeks Talk

Prepare for your Next Interview




change the layer positon in html....

This is a discussion on change the layer positon in html.... within the HTML & CSS forums, part of the Web Development category; 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 ...


Go Back   Geeks Talk > Web Development > HTML & CSS

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-15-2006
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-18-2006
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
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.
Reply With Quote
  #3 (permalink)  
Old 05-17-2007
Junior Member
 
Join Date: Dec 2006
Location: india
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
vijayykaushik is on a distinguished road
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....
Reply With Quote
Reply

  Geeks Talk > Web Development > HTML & CSS


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Transfer the control from a form to HTML Lokesh M JSP 3 06-15-2007 09:12 AM
Secure Socket Layer Martin Lucas Networking 3 01-10-2007 05:49 PM
About Shell Layer Management in UNIX nancyphilips Unix/Linux 2 12-14-2006 08:51 AM
Dynamic Style in HTML Robert HTML & CSS 1 08-17-2006 02:17 AM
Help to design business layer for Website ruppal HTML & CSS 0 07-12-2006 03:36 AM


All times are GMT -4. The time now is 05:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved