That's odd!

Well I guess we'll change it to only use topA. If you
can debug it to see what's causing the problem in
Opera then that would be cool.

--
Raymond Irving
 
--- Matthias Foschepoth <[EMAIL PROTECTED]> wrote:
> Hello!
> 
> I tried to use 'setAnchor'. All works fine in
> different browsers (NS4.7,
> NS7.0, IE6.0/SP1 and Opera 7.11, all in german
> version) when I use
> (complete code at the end of the email):
> 
>  
>
testlayer.setAnchor({anchorLeft:'test',anchorTop:'test'});
> 
> When I use:
> 
>   testlayer.setAnchor({leftA:'test',topA:'test'});
> 
> it seems to be almost the same but Opera shows a
> differece value for y
> position (-14 instead of 0 !).
> 
> So where is the difference between 'anchorTop' and
> 'topA'? 
> Is there only the example
> (dynapi.api.dynlayer-anchor-anchoring.html) or
> can I find some tutorials for the new features of
> DynApi3?
> 
> 
> Thank you for your answer,
> 
> Matthias
> 
> 
> 
> Here ist the complete code I used:
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN">
> <html>
> <head>
>       <title>Unbenannt</title>
> <script language="JavaScript"
> src="dynapi3x/src/dynapi.js"></script>
> <script language="JavaScript">
> <!--
>   dynapi.library.setPath('dynapi3x/src/');
>   dynapi.library.include('dynapi.api');
>   dynapi.library.include('dynapi.library');
>   dynapi.library.include('DragEvent');
> //-->
> </script>
> <script language="Javascript">
> <!--
>   testlayer = new DynLayer(null,0,0,2,2,'#ff0000');
>   dynapi.document.addChild(testlayer);
> //  testlayer.setAnchor({leftA:'test',topA:'test'});
>  
>
testlayer.setAnchor({anchorLeft:'test',anchorTop:'test'});
>   
>   function showPosition() {
>     x = testlayer.getX();
>     y = testlayer.getY();
>     alert('X: '+x+' Y: '+y);
>   }
> //-->
> </script>
> </head>
> <body bgcolor="#ffffff" text="#085f10"
> leftmargin="0" topmargin="0"
> marginwidth="0" marginheight="0">
> <a name="test" id="test"><img
> src="dynapi3x/examples/images/pixel.gif"
> width="1" height="1" alt="" border="0"></a><br>
> Some content<br>
> <br>
> ...<br>
> <a href="javascript:showPosition();">show layer
> position</a>
> </body>
> </html>
> 
> 
>
-------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built
> ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are
> available now.
> Download today and enter to win an XBOX or Visual
> Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to