From: Raymond I. <xw...@ya...> - 2003-10-26 16:00:51
|
Try using: lyr.setAnchor({centerV:0,centerH:0}) or lyr.setAnchor({centerV:lyr.getHeight()/2,centerH:lyr.getWidth()/2}) -- Raymond Irving --- Daniel Tiru <de...@ti...> wrote: > Okey, is there any way to acomplish this by using > anchor? > > Need to have a layer in the middle of the page that > is exactly 500,500 > pixels. > > Regards > Daniel > > -----Original Message----- > From: dyn...@li... > [mailto:dyn...@li...] On > Behalf Of Raymond > Irving > Sent: den 26 oktober 2003 16:42 > To: dyn...@li... > Subject: RE: [Dynapi-Help] Width and Height > > > > you can only call dynapi.document.getWidth/Height > after that page has been loaded > > -- > Raymond Irving > > --- Daniel Tiru <de...@ti...> wrote: > > This solution dont work for me, am i doing > something > > wrong, or are you > > completly sure? > > > > Try to make: > > alert(dynapi.document.getWidth()): > > After adding all childs ie: > > > > <body bgcolor="#000738" style="overflow:hidden" > > topmargin="0" > > leftmargin="0"> > > <script> > > dynapi.document.insertAllChildren(); > > alert(dynapi.document.getWidth()): > > </script> > > </body> > > > > This dont work for me... > > > > Regards > > Daniel > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...] > On > > Behalf Of Doug > > Melvin > > Sent: den 21 oktober 2003 17:41 > > To: dyn...@li... > > Subject: Re: [Dynapi-Help] Width and Height > > > > > > dynapi.document.getWidth() > > dynapi.document.getHeight() > > > > ----- Original Message ----- > > From: "António Godinho" <to...@ma...> > > To: <dyn...@li...> > > Sent: Tuesday, October 21, 2003 5:59 AM > > Subject: [Dynapi-Help] Width and Height > > > > > > > Hya, > > > > > > Been trying to get size of a document. On the > old > > version 2.5.7 it was > > > > > document.getWidth, document.getHeight I think. I > > wasn't able to make > > > this work now. Any help? > > > > > > Thanx > > > > > > Tó > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by OSDN developer > > relations Here's your > > > > > chance to show off your extensive product > > knowledge We want to know > > > what you know. Tell us and you have a chance to > > win $100 > > > > > > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > > > _______________________________________________ > > > Dynapi-Help mailing list > > > Dyn...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system > > (http://www.grisoft.com). > > Version: 6.0.528 / Virus Database: 324 - Release > > Date: 10/16/03 > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by OSDN developer > > relations Here's your > > chance to show off your extensive product > knowledge > > We want to know what > > you know. Tell us and you have a chance to win > $100 > > > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: The SF.net > > Donation Program. > > Do you like what SourceForge.net is doing for the > > Open > > Source Community? Make a contribution, and help > us > > add new > > features and functionality. Click here: > http://sourceforge.net/donate/ > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > __________________________________ > Do you Yahoo!? > Exclusive Video Premiere - Britney Spears > http://launch.yahoo.com/promos/britneyspears/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net > Donation Program. Do you > like what SourceForge.net is doing for the Open > Source Community? Make > a contribution, and help us add new features and > functionality. Click > here: http://sourceforge.net/donate/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net > Donation Program. > Do you like what SourceForge.net is doing for the > Open > Source Community? Make a contribution, and help us > add new > features and functionality. Click here: > http://sourceforge.net/donate/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ |