473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

absolute layers stop overlap

hi :}
i have been looking for a script like this for a few weeks now, and i
am finally giving up and asking for help. everything i found involved
preventing overlap in dreamweaver, i want to prevent it in the output
on all of the browsers.
basically i have a page that has absolute layers (cannot be relative)
with the coordinates top/left in the db. but sometimes on certain
pages the layers overlap. I cannot set a static size for those layers.
so i was wondering if anyone has a script, that will check for any
overlapping of layers, and if it overlaps, to move the layer to the
right, or down, until it no-longer overlaps. i can modify anything
similar if you have it.
thank you all in advance for any help you provide.

Mar 6 '06 #1
6 1954
ra*******@gmail.com wrote:
hi :}
i have been looking for a script like this for a few weeks now, and i
am finally giving up and asking for help. everything i found involved
preventing overlap in dreamweaver, i want to prevent it in the output
on all of the browsers.
basically i have a page that has absolute layers (cannot be relative)
with the coordinates top/left in the db. but sometimes on certain
pages the layers overlap. I cannot set a static size for those layers.
so i was wondering if anyone has a script, that will check for any
overlapping of layers, and if it overlaps, to move the layer to the
right, or down, until it no-longer overlaps. i can modify anything
similar if you have it.
thank you all in advance for any help you provide.


Take a look and extract some ideas
<URL:http://jsfromhell.com/geral/hittest>, if you have few layers it
will be ok, but if not =O

Depending of what you have, after moving a layer you'll have to re-check
the others too =/

I suggest you to keep a kind of grid layout, like:

layer | x | y
A | 0 | 0
B | 0 | 1

Then it will be easier and faster to do anything =)
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Mar 6 '06 #2
ya the rechecking is what i dreading. i just keep feeling like there
is a better way than that. but that is what i dont know haha.
i originally tried the grid, but its very important that the
coordinates are exact, and a grid will mess that up.
thanks anyway though. if anyone else has any other ideas i would love
to hear them.

Mar 7 '06 #3
ra*******@gmail.com wrote:
ya the rechecking is what i dreading.
You can sort the layers from left to right/top to bottom, I mean you
should start moving the top items first and then you go down and down...
This will avoid refixing the position of a lot of items.
i originally tried the grid, but its very important that the
coordinates are exact, and a grid will mess that up.


That sounds strange, if the coordinates must be exact, this means you
can't move anything, so what are you doing?!

You should post an url, this is looking confused to me =S
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com
Mar 7 '06 #4
haha i cant say yet. the project isnt live.
but the coordinates have to be dead-on exact. its a hinderance.
sorting it from left-right, then top-bottom, is probably what ill have
to do, but there is a chance of pushing something into something else,
and i just dont ever see that loop ending in certain circumstances.
The coordinates have to be exact, except in a situation of it
overlapping. and then it needs to keep a similar structure with maybe
+10px right or bottom, until it is no longer overlapping. There are
only like 10 layers i have to worry about, but since the user is
specifying the coordinates, i worry since it will be out of my hands..
to an extent. the auto-readjust of the layers when overlapping, will
almost just be a temporary protection until they go back and fix the
coordinates.
sorry i have to be so secretive, this whole project is under a
non-disclosure agreement.
thanks again :>

Mar 7 '06 #5
ra*******@gmail.com wrote:
haha i cant say yet. the project isnt live... {snip]
sorry i have to be so secretive, this whole project is under a
non-disclosure agreement.

If that's true, then including suggestions given in a public forum may
breach your agreement, so be careful. You will also need to be sure that
any code you include is not already included in pages or code provided
under any of the GPL variants, since they (by definition) must be
publicly available - including code derived from them.
Mar 7 '06 #6
well i planned on modifying/rewriting any script i get. i was just
hoping someone else would have a better,more efficient way.

Mar 8 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: murali | last post by:
Hello everyone, I used absolute positioning with div tag in my website. The page looks cool as long as someone doesn't try to zoom in by increasing the text size (ctrl++ or thru changing font...
2
by: matthias tarasiewicz | last post by:
i have 2 problems with designing a rather big CSS driven site template: * how do i create absolute layers (DIV), that are positioned relative to each other? meaning: how can i create absolute...
7
by: Griff Miller | last post by:
Please see http://home.houston.rr.com/gmiller15/css/vertprob.html . In mozilla 1.6/1.7 it looks the way I want it, with a thin separation between the two boxes. In IE6, the two boxes touch, which...
4
by: wls | last post by:
I've got a problem that requires rendering DIVs at different offset locations, and while I've got a solution that works, the absolute positioning is working to the client window, not to the parent...
2
by: Dobedani | last post by:
Dear All, I have 2 layers which I want to show alternatively, depending on 2 radio buttons with the name "interval". The 2 layers are defined in a table: <td colspan="3" height="84"...
2
by: Joachim Bauer | last post by:
I'm using the code below to display a menu that opens when the mouse goes over the main menu item (try it in your browser to understand the behaviour). It uses "position:absolute" and a switch...
4
by: Sid S. | last post by:
How can I find the absolute cursor location? Where the mouse cursor is located with repect to the body. This way I can position an div tag where the mouse is, even if scrolled down farther on the...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
0
by: sknonline | last post by:
Greetings. I am having troubles using absolute positioning in IE6. When I establish the width as 100%, it's not spanning the entire width of the browser. It works in Firefox, Safari, and IE7.......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.