Absolutely position a div inside a relative position element
$30-100 USD
完了済み
投稿日: 16年以上前
$30-100 USD
完了時にお支払い
The task is to modify an existing javascript include file. More details, including the sample HTML that includes it is in attached zip archvive.
...
The DIV needs to be positioned absolutely and to do this a correct position of text ad box needs to be obtained from browser. This position is obtained by traversing offsetParent object all the way to the root and getting totals
offsetLeft and offsetTop
function getAbsolutePosition(element) {
var r = { x: [login to view URL], y: [login to view URL] };
if ([login to view URL]) {
var tmp = getAbsolutePosition([login to view URL]);
r.x += tmp.x;
r.y += tmp.y;
}
return r;
};
However, this does not work reliably for structures that have some of the elements POSITION:RELATIVE – hence the attached sample. Please run [login to view URL] in IE6, under 1280x1024 or similar resolution. You can see that the HTML page uses a CSS file which contains two elements positioned relatively:
#container {
POSITION: relative; …
}
#wrapper {
POSITION: relative; …
}
Removing these statements fixes the problem, but we cannot do that since we are just an include file in this file and don’t own the actual HTML.
For expert level javascript developer we estimate the task to be only a few hours long. Please provide a fixed bid cost and state wether the cost is for Part A or for Part B or both. For both parts we will definately pay more than $100. Please take a few minutes to read the attached document.
Dear Sir.
I'm pleased to bid on your project.
Our team is expert in javascript coding.
Now your needs are clear.
I'm sure we can complete this one for 1 or 2 days.
We are thankful if you pay about $150 for both parts.
Now we are getting to work with yours.
Thanks.
Best regards.