-
Nested Divs ok on Mac IE 5.0 but not Mac 4.5, Windows
hi. i have dynamically created nested divs: a Parent div and some some Child
divs. for ease of reading, i've edited down the code to as follows:
var str = '<DIV ID="Parent" STYLE="position:absolute; left:0px; top:0px;
width:100px; visibility:visible; z-index:100;"></DIV>'
document.body.insertAdjacentHTML('beforeEnd',str)
P = document.all['Parent']
str = '<DIV ID="Child0" STYLE="position:absolute; left:0px; top:0px; width:100px;
height:25px; visibility:inherit;">Child0</DIV>'
P.insertAdjacentHTML('beforeEnd',str)
str = '<DIV ID="Child1" STYLE="position:absolute; left:0px; top:25px; width:100px;
height:25px; visibility:inherit;">Child1</DIV>'
P.insertAdjacentHTML('beforeEnd',str)
P.style.posLeft = 500
P.style.posTop = 100
when I change the Parent's position, the nested Child divs automatically
move with the Parent div, or at least, this works properly on Mac IE 5.0
but not on Mac IE 4.5, or on Windows. can anyone help, or else point me to
any other references besides Microsoft's "DHTML References"?
http://msdn.microsoft.com/workshop/a.../dhtmlrefs.asp
tia alyson
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks