If you are using Dynlayers, you can also use one of the layerpos extensions:
../Henrik_Vaglin_Examples
http://www.richardinfo.f2s.com/dynapi/php/examples.html



----- Original Message ----- 
From: "Williams, Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 22 May, 2001 05:00
Subject: RE: [Dynapi-Help] align IMG in a dynlayer


> Don't know if this helps....but this is a function I used to position a
> calendar object next to an image no matter where that image was.
> Perhaps you could adapt it for your purposes?
> 
> function getImgOffset(offsettype) {
> imgref = lyr10.doc.images["cal1"];
> if (offsettype=='left') {
>        if (is.ie) {
>     os = imgref.offsetLeft + imgref.width + 10;
>     while ((imgref = imgref.offsetParent) != null) {
> os += imgref.offsetLeft;
> } 
> 
> }
> else if (is.ns){
> os = imgref.x + lyr10.x + imgref.width + 10; 
> }
> }
> else if (offsettype=='top') {
> if (is.ie) {
> os = imgref.offsetTop - 15;
> while((imgref = imgref.offsetParent) != null) {
> os += imgref.offsetTop;
> }
> }
> else if (is.ns){
> os = imgref.y + lyr10.y - 15;
> }
> }
> return os;
> }
> 
> Cheers
> 
> Chris
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Michael Pemberton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 22 May 2001 1:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Help] align IMG in a dynlayer
> 
> 
> i think that the ing tage has an align parameter.  this should do the
> trick.
> 
> jirka wrote:
> 
> > thanks for the tips. they work fine. but i forgot to tell you i am
> working
> > on a gallery and i am inserting about a 100 pictures different in
> size.
> > i think this will work:
> > Image.top = dynlayer.h - picture.h
> >
> > but still am curious if it is possible to simply align it. i tried
> > experimenting with layer.setBgImage(), but faced compatibility
> problems...
> > (using 2001.01.25)
> >
> > cau,
> > :-j irka
> >
> > ::-----Original Message-----
> > ::From: [EMAIL PROTECTED]
> > ::[mailto:[EMAIL PROTECTED]]On Behalf Of
> > ::Digital Strider
> > ::Sent: Sunday, May 20, 2001 10:50 PM
> > ::To: [EMAIL PROTECTED]
> > ::Subject: RE: [Dynapi-Help] align IMG in a dynlayer
> > ::
> > ::
> > ::Just put the image in another DynLayer.  Then place that with pixel
> > ::perfection anywhere you want within its parentLayer.
> > ::
> > ::-----Original Message-----
> > ::From: [EMAIL PROTECTED]
> > ::[mailto:[EMAIL PROTECTED]]On Behalf Of
> > ::[EMAIL PROTECTED]
> > ::Sent: Sunday, May 20, 2001 1:44 PM
> > ::To: [EMAIL PROTECTED]
> > ::Subject: Re: [Dynapi-Help] align IMG in a dynlayer
> > ::
> > ::
> > ::Whoops missed part of it.. not sure how to align it INSIDE another
> > ::dynlayer..guess I only answered part of the question.. again
> sorry...
> > ::
> > ::
> > ::Vince Calendo
> > ::
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
> 
> 
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to