I'm trying to position a layer in relative fashion. I threw in a div in a table (to act as an 'anchor'), <tr><td><div id="pLayer" style="position:absolute"></div> </td></tr> and then wrote a function to grab that position of that 'anchor' function getPosition() { xPosition = DynAPI.document.all['pLayer'].getX(); yPosition = DynAPI.document.all['pLayer'].getY(); } and then created the layer layerName = new DynLayer(layerName, xPosition, yPosition, 800, 120, null,"visible");
This worked for IE, but failed for netscape :( Is there a better way to do this?? It seems kind of hack-ish, but I looked at some examples on the site http://www.richardinfo.com/examples/php/examples.html (relative_positioning.html), but they seemed a bit odd to me because it looked like a standard layer was being created DynAPI.onLoad=function() { var layer1 = this.document.all['layer1'] layer1.setBgColor('yellow') } and then a DynAPI method was being used resulting in a javascript error about that object not having the method. Anyway...any advice on relative positioning would be great...the table in question is going to move about (jsp page) depending on what's going on. Thank you in advance, Cheers, James _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help