As far as I try it, the script returns the position of the layer given at its initialisation (like it was in absolute position).
When asking what is the location of the layer, it don't really if it's positionned in a relative or absolute way.
Help would be appreciate.
-------------------------------------
<html>
<head>
<title>Relative Layer Location</title>
<script language="JavaScript" src="../src/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('../src/');
dynapi.library.include('dynapi.api');
</script>
<script language="Javascript">
myLayer = dynapi.document.addChild(new DynLayer(null, null, null, 150,150,'red'));
dynapi.onLoad(init);
function init() {
}
</script>
</head>
<body bgcolor="#999999">
un peu de texte<br>
<form name="myform">
un jour, de la place<br>
ici ou l�
</form>
<table border=1>
<tr>
<td>un texte � gauche</td>
<td>
<script>
dynapi.document.insertChild(myLayer,'relative');
</script>
</td>
</tr>
</table>
<a href="javascript:alert(myLayer.getX());">test</a>
</body>
</html>
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help
